Missing Title on custom post types

By declaring a value for the parameter ‘supports’, you override the default output which shows the ‘title’ and ‘editor’. http://codex.wordpress.org/Function_Reference/register_post_type I recommend removing the ‘supports’ parameter if you don’t need any other post fields (reduce clutter on the page) or just re-iterate the default (in case you want to easily add more fields like thumbnail … Read more

What hook should be used to programmatically create a post only when master post is updated?

you can use pre_post_update action hook like so: add_action(‘pre_post_update’,’post_updating_callback’); function post_updating_callback($post_id){ global $post; // verify if this is an auto save routine. // If it is our form has not been submitted, so we dont want to do anything if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) return; if ($post->post_status == “publish”){ //do update stuff … Read more

custom search result page

I have some recommendations for your question: First: stop using query_posts(). See the codex about this function to see why you shouldn’t use it in themes or plugins. Anyway, if you are in a some weird situation where you have not option and you need to use query_posts(), you should run wp_reset_query() after the loop. … Read more

Displaying a specific post in a wp query by post id

post_id is not a valid argument for query_post Change post_id to p, so you get: query_posts(‘p=40&post_type=homepage_video’); while (have_posts()): the_post(); ?> <div id=”video-panel-blue”> <?php get_custom_field(‘home-video-iframe’, TRUE); ?> </div> <?php endwhile; ?> to see the list of arguments you can use with query_posts take a look at this codex entry