How can I list all the meta in a custom taxonomy?
How can I list all the meta in a custom taxonomy?
How can I list all the meta in a custom taxonomy?
Adding Category to Child Posts Permalink
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
but can’t figure out the best way to ‘setup_postdata’ for that term so that my template functions like the_archive_title will work. No equivalent function exists. I’m passing the term id and taxonomy to a function hooked into register_rest_route and returning the content of a PHP template. In that template I would ordinarily have access to … Read more
I don’t have enough time to test the full code, but you can get the idea from my code. Taxonomies themselves don’t have a direct association with authors. So there is no easy way to do it. You can add custom meta fields to custom taxonomies also. So you can store the current user ID … Read more
Change taxonomy key of existing and future taxonomy posts
Set Variant options/attributes values on WooCommerce
Using Custom Taxonomy in Default Post Slug
Issue with WordPress Automatically Assigning Terms to Multiple Posts
You could consider using the wp_insert_post_empty_content hook. This hook determines if a post is considered empty and if so, prevents it from being saved. For example: /** * Checks whether some post types have a topic. * * @param bool $maybe_empty Whether the post should be considered “empty”. * @param array $postarr Array of post … Read more