W
W
Web Lizard2016-01-20 16:40:29
WordPress
Web Lizard, 2016-01-20 16:40:29

How to include ACF field group in subcategories?

There is a nested rubric structure

Category 1
--subcategory 1
--subcategory 2
Rubric 2
--subcategory 1
--subcategory 2

So, how to make the ACF field group apply to all subheadings?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2016-01-20
@HeadOnFire

Not possible with standard methods. There are 2 options:
1. Use a conditional field. Accordingly, on the category page, if fields are needed, check the box and they are included.
2. Create a custom location rule. Here is a similar question in support of ACF and a related tutorial . Create your own rule with $category->parent check. If the value is not 0, return true.
PS: I would do the second way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question