Add Custom Post Type of specific Custom Taxonomy to regularly blog loop
Add Custom Post Type of specific Custom Taxonomy to regularly blog loop
Add Custom Post Type of specific Custom Taxonomy to regularly blog loop
How to change permalink to include custom post type
How to update post meta on uploaded image from a custom form?
Include related custom fields from one post type in another post type’s JSON feed
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
CPT’s with landing page instead of archive – Url Rewrite?
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
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
What you could use to prevent bots filling your site with SPAM: Post to your blog using email This functionality used to be in the Core but has since been deprecated. You can use Post By Email Plugin but that hasn’t been update since 9 years ago. Or, you can use Post by Mail in … Read more
Adding a metabox on a CPT’s submenu page