How to change custom post type permalink structure
How to change custom post type permalink structure
How to change custom post type permalink structure
Having unique constraints for custom fields in a custom post type
WordPress post_where & posts_join not working only for custom post type
I’ve ‘fixed’ my problem with the code below. This is a function that checks the post-type settings. If query_var has been set to false, the view button is removed from the post-type archive in the back-end. For my use-case, this solves the problem. There are no links to the posts anymore. The reason why both … Read more
Display as tree terms of taxonomy and custom posts for each term of taxonomy
Custom post types as sub menu pages and role capabilities issue
Taxonomy custom post type URL
retrieve Meta field value from CPT and set those values as Image Meta Field “Title”
This will display the ad on all posts belonging to the categories listed in the array: <?php global $post; if ( in_category( array(‘news’, ‘cats’, ‘dogs’), $post->ID ) ) { get_template_part( ‘template-parts/ads/below-head’ ); } ?>
What is the recommended / best way to do this: Event calendar post/type in a block-based theme?