Having issues with edit-tags.php not saving $_POST values for custom post_types including woocommerce product_cat
Having issues with edit-tags.php not saving $_POST values for custom post_types including woocommerce product_cat
Having issues with edit-tags.php not saving $_POST values for custom post_types including woocommerce product_cat
How to call parent and child category name in separate div?
Custom templates based custom url structure in wordpress
Cannot set custom taxonomies when creating post
Unwanted redirection to homepage after turning taxonomy to ‘public’=>false
How can I list all the meta in a custom taxonomy?
Adding Category to Child Posts Permalink
next/previous stays within specific taxonomy term when in single post
I decided to do what I suggested at the end of the post: public => false in the taxonomy settings Add add_rewrite_tag/add_rewrite_rule to ‘unit_num’ and add a pre_get_posts action to tweak the query when get_query_parm(‘unit_num’) is set. This is all working well now. (Often when you write a problem out on a forum it triggers … Read more
Try this in your functions.php file: add_action(‘save_post’, ‘wpb_autogenerate_events_title’, 10, 3); function wpb_autogenerate_events_title($post_id, $post, $update) { // Check if it’s the ‘events’ CPT and if the title is empty. if (‘events’ !== $post->post_type || !empty($post->post_title)) { return; } // Fetch terms from ‘category’ and ‘nameselection’ taxonomies. $category_term = wp_get_post_terms($post_id, ‘category’, [‘fields’ => ‘names’]); $nameselection_term = wp_get_post_terms($post_id, … Read more