Show custom post archive when custom post not specified
Try to rewrite the taxonomy url in the .htaccess RewriteRule ^produce_category(.*)$ /$1 [L] (Not tested)
Try to rewrite the taxonomy url in the .htaccess RewriteRule ^produce_category(.*)$ /$1 [L] (Not tested)
Modify your code as below: /********************************************** * Add featured video to REST API ***********************************************/ function add_featured_video_id() { register_rest_field( array(‘post’, ‘project’), ‘featured_video_id’, array( ‘get_callback’ => ‘get_featured_video_id’, ‘update_callback’ => null, ‘schema’ => null, ) ); } Visit here, for more details on method register_rest_field,
The problem could be related to how you register the custom post type. Did you add the “taxonomies” argument in the register_post_type? If yes, is it a string? Try to convert it in an array of strings. See the the example below… register_post_type( ‘custom_post_type_slug’, array( ‘labels’ => array ( /* … */ ), ‘public’ => … Read more
Regex with a possible hyphen
Yes, I think you could add the deadline / expiration date for your custom post type as a meta value, which would be set in a custom meta box. For automating the expiration you could add a custom wp-cron event with a daily schedule. So the event would fire once a day, do a meta … Read more
Filter term taxonomy metabox in custom post type
custom-taxonomy/post_name instead of the default post_type/post_name
get_the_category returns posts only with the default taxonomy “category”, if you are trying to display posts from a custom registered taxonomy you should use get_the_terms Also get_posts argument category doesn’t support custom taxonomies, you should use WP_Query‘s Taxonomy Query mostly.
How can achieve this permalink perfectly? domain.com/%category%/%post-name%
Limit amount of posts made within a custom taxonomy