Include a metabox in the ‘home’ screen of a custom post type? If not, then the dashboard page?

Try something like this. I haven’t actually done this yet, it is something I was looking into, so please let me know how it goes. add_action(‘wp_dashboard_setup’, ‘custom_dashbox’); function custom_dashbox() { global $wp_meta_boxes; wp_add_dashboard_widget(‘widget_slug’,’Widget Name’, ‘widget_display’,’widget_submission’); } function widget_display() { echo ‘<input type=”text” name=”youtube_id” /><br/> <input type=”submit” name=”submit_youtube” />’; } function widget_submit() { //Do what you … Read more

Extending post by email

If you dig into the code of postie (plugin), you’ll probably find your answer. In particular, see the filter sample files, and then trace backwards from there. From the FAQ: Can I add special text to the body of the post when using postie?, Yes. You can create your own function, and use the postie_post … Read more

How can I sort the order of multiple custom field values in a custom post type?

the function the_meta() formats the data into an unordered list and you have no control over the order. Instead you should use get_post_custom() and echo out only the fields you want and in the order you want. change: <?php echo(the_meta()); ?> to : $post_custom = get_post_custom($post->ID); echo ‘<ul>’; echo ‘<li>’.$post_custom[‘Height’].'</li>’; echo ‘<li>’.$post_custom[‘Fueled_By’].'</li>’; echo ‘<li>’.$post_custom[‘Favorite_Quote’].'</li>’; echo … Read more

How to create Custom Taxonomy Search Drop Down for specific Post Type

First create a function to display your search form function display_custom_search_form($atts){ $return = ‘<form role=”search” method=”get” id=”searchform” action=”‘.home_url( “https://wordpress.stackexchange.com/” ).'”> <div><label class=”screen-reader-text” for=”s”>Search for:</label> ‘.wp_dropdown_categories(array(‘name’ =>’taxTerm’, ‘taxonomy’ => ‘TAXONOMY_NAME’).’ <!– this is the magic field you will need to change in order for this to work with each post types—> <input type=”hidden” name=”post_type” value=”post” /> … Read more

Related “custom post type” using “custom taxonomy”

Assuming that you are on a taxonomy or term page then you can simply use: //get current term $term_slug = get_query_var( ‘term’ ); //get current taxonomy $taxonomyName = get_query_var( ‘taxonomy’ ); $loop = new WP_Query( array( ‘post_type’ => ‘work’, ‘posts_per_page’ => 10, ‘orderby’ => ‘ASC’, $taxonomyName => $term_slug); while ( $loop->have_posts() ) : $loop->the_post();