WP ACF: hide/display terms of taxonomy on conditional logic - wordpress

Using ACF in Wordpress, my form has ACF taxonomy field (based on a custom taxonomy).
In the ACF taxonomy list, I need to hide or display some specific taxonomy terms depending of what has been previously choosen in the form.
Terms be displayed or hidden would have been set in arrays with ID.
The best would have been a plugin that allows in ACF to add manually the terms but it does no exist.
Thanks for help.

Related

WordPress - Toggle metabox visibility on post type edit screen using Gutenberg and its REST_API

I have some difficulties to interact with my metaboxes using REST_API.
In a post type, I have a taxonomy called JOBS (with terms like webdesigner, developer, seo, etc.) and each job has its own taxonomy (Webdesigner, Developer, Seo, etc.).
Now I want to show the metabox of the job taxonomy only when the term of the job is checked in the JOB taxonomy.
Example : When I check the term "Webdesigner" of the JOBS taxonomy, I want to show the metabox of the Webdesigner taxonomy.
Have you an idea how to do that ?
Thank you ! :)
You can use JavaScript to toggle the taxonomy meta boxes based on some attributes (class, id...) that you can map these 2 types of taxonomies.
If you don't have enough data in the HTML output of the taxonomy meta boxes in which you can map them together, then you can search for the hook (or filter) that runs when displaying the HTML markup of a meta box to add for example an attribute that contains the IDs of the associated terms of the other taxonomy.

Use Taxonomy ACF to affect Custom Taxonomy post count

Is there a way to use an "ACF Taxonomy Field" to affect "Custom Taxonomy" post count? Right now I am using ACF Taxonomy Field, but my Custom Taxonomies have 0 posts assigned.
I want to use ACF to assign Custom Post to Custom Taxonomy:
Instead of the default way:
Is this possible? I'm trying to do this way because it is more friendly to the end-user and ACF is more flexible; I can restrict it if I need the user to select only one taxonomy and make other restrictions.
Very big and basic mistake... Taxonomy ACF has a checkbox:
Thats make the Taxonomy ACF affect the Custom Taxonomy post count.

How to change custom taxonomy terms order per post in Wordpress without plugin

I have to order my custom taxonomy terms per post. So, I have to change order of taxonomy terms that related custom post type posts while post displaying.
I have a custom post type that called "article" and I have a custom taxonomy that called "article-author". So an "article" can have more than one "article-authors". No problem so far.
But when display an article, related article-authors order by name. But I have to sort article-authors by custom order and I have to define it's order before the article saved (if possible... or not, can change it after saved).

WordPress - Filter by Custom Taxonomy

I created a custom taxonomy using Custom Post Type UI. How can I get this taxonomy to available in the sidebar/ widgets so that I can sort by it?
You'll have to look into Creating your own Widget, or hardcoding into your sidebar your own WP_Query to filter and sort according to whatever criteria you need.

How to auto-assign custom meta boxes based on post category in WordPress?

I have several post categories and the heavily use meta boxes, and those are varying from each other. Is there a way, so I can choose a category of the post and corresponding meta boxes are automatically set in the correct order, so I can quickle fill them out?
Try the Advanced Custom Fields plugin. It will let you create custom metaboxes and assign them to show up on certain types of posts dependent on a variety of criteria, including category.

Resources