Template for all categories of a custom post type?

The name you are using for taxonomy isn’t allowed. register_post_type() $taxonomy parameter says $taxonomy (string) (required) The name of the taxonomy. Name should only contain lowercase letters and the underscore character, and not be more than 32 characters long (database structure restriction). Default: None So, you need to change the name cat-listings to something else( … Read more

Next Post links not working in custom post type shortcode

OK, thank you to ialocin, the $gbquery->max_num_pages solve it! So there is the clean code : function livredor_function($atts,$content=””){ extract(shortcode_atts(array( id => ” ), $atts)); ob_start(); function create_guestbook() { $current_page = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 0; $gbquery = new WP_query(“post_type=inliguestbook&showposts=10&paged=” . $current_page); while($gbquery->have_posts()) { $gbquery->the_post(); ?> <div class=”guestbook”> <h3><?php the_title(); ?> <span><?php the_time(‘j F Y’) ?></span></h3> … Read more

Custom post type submenu capabilities – custom plugin

So to answer my question… I don’t know if it is the best approach: In the custom post type I added capabilities to which only admin has priviliges like so: ‘capabilities’=>array( ‘edit_post’=>’update_core’, ‘read_post’=>’update_core’, ‘delete_post’=>’update_core’, ‘edit_posts’=>’update_core’, ‘edit_others_posts’=>’update_core’, ‘publish_posts’=>’update_core’, ‘read_private_posts’=>’update_core’ ), And then I also did that for custom taxonomies like so: ‘capabilities’=>array( ‘manage_terms’=>’manage_options’, ‘edit_terms’=>’manage_options’, ‘delete_terms’=>’manage_options’, ‘assign_terms’=>’manage_options’, … Read more