Why doesn’t ‘post__not_in’ work with ‘cat’?
Why doesn’t ‘post__not_in’ work with ‘cat’?
Why doesn’t ‘post__not_in’ work with ‘cat’?
You can save term meta using update_term_meta: update_term_meta( int $term_id, string $meta_key, mixed $meta_value, mixed $prev_value=”” ) https://developer.wordpress.org/reference/functions/update_term_meta/
Found a solution: // redirect on homepage to taxonomy add_action(“template_redirect”, function() { if (is_front_page()) { return wp_redirect(get_term_link(‘type1’, ‘event_type’)); } });
tax_query not working on custom post type
Url leading to archive page, no matter what
wp_insert_post_data is applied before the post data are inserted to the database. use the save_post hook instead to set the custom taxonomy terms. That was it. Thanks Sally for the recommendation.
Rewrite Search URL Permalink For CPT Custom Taxonomies
How to show only first, second, third Custom taxonomy conditionally
If Term Name Exists, Append a Unique ID to Slug
The only way I could think to achieve this would be to query the DB and build a list of ids, then check to make sure none of the ids match, but that might be a very taxing query. You would also need to change the way the id’s for each table would be updated … Read more