How to use manage_$post_type_posts_columns with underscore in post type?

I had this exact same issue, but it’s a problem with the Jobroller theme (seeing as the custom post type is job_listing, I’m guessing you’re using Jobroller as well). The Jobroller theme adds the custom columns to the job_listing custom post type using the function jr_edit_jobs_columns in the file jobroller/includes/admin/admin-post-types.php: function jr_edit_jobs_columns( $columns ){ $columns … Read more

List of Posts and Categories

Hey @neoian – what you need is a 2 step process. Loop the categories / terms Then inside each category / term, query the posts. . $terms = get_terms(“some_taxonomy”); $count = count($terms); if ( $count > 0 ){ foreach ( $terms as $term ) { $term_link = get_term_link( $term, ‘some_taxonomy’ ); echo ‘<h4 class=”termTitle”><a href=”‘.$term_link.'”>’ … Read more

Can slugs from posts and custom post types conflict?

Once you are using POST method, so url is not visible (and search engines don’t take is into account), send the request using query string: add_query_var( array(‘post_type’ = ‘flyers’, ‘post_name’ = ‘flyer-01’), home_url() ); In this way the url generated is something like http://example.com?post_type=flyers&post_name=flyer-01 is ugly to see, but no one have to see it… … Read more

PHP Code to Display Term URL & Name of a Post Under a Custom Post Type

Use get_object_taxonomies to get all of the taxonomies registered to a particular post type. Also, don’t use query_posts for secondary queries. or ever, actually. Use WP_Query. $args = array( ‘posts_per_page’ => 1, ‘post_type’ => ‘movies’, ‘orderby’ => ‘post_date’, ‘meta_key’ => ‘featured_movie’, ‘meta_compare’ => ‘=’, ‘meta_value’ => 1, ); $movie = new WP_Query( $args ); if( … Read more