Display Custom Post Type in divs

You’ll want to move the row/columns inside the loop to do this. Perhaps even inside the template part. Seeing as I don’t know what’s in there, I’d suggest this: (notice I corrected your missing ” at the end of div classes and added php start/stop) <div class=”row”> <?php /* Start the Loop */ while (have_posts()) … Read more

Send email to author of the post when the custom post status changes to published

This should work — make sure to change my_custom_type to the correct CPT slug: add_action( ‘transition_post_status’, ‘notify_author_on_publish’, 10, 3 ); function notify_author_on_publish( $new_status, $old_status, $post ) { if ( ‘publish’ !== $new_status || $new_status === $old_status || ‘my_custom_type’ !== get_post_type( $post ) ) { return; } // Get the post author data. if ( ! … Read more