Home › Forums › General Issues › Create a sort order for each post taxonomy › Reply To: Create a sort order for each post taxonomy
Hi all;
I’m creating a staff page: https://divipaint.wpengine.com/about/about-aca/staff/
Right now, each staff member has a “sort_order” field.
However, it turns out that some staff members might be listed in multiple teams.
Therefore, I need a “sort_order” for each taxonomy assigned to the post.
I’d like to do this with ACF as I already rely on it heavily in the code.
The “dumbest” way I can think to do this would be to create a different field group for each taxonomy, and conditionally show it if that taxonomy is assigned.
That would work, but that’s a lot of Field Groups, and it would be a pain in the butt to ever update if we add or subtract or rename teams.
Is there any eater way to add fields to a post depending on / for each taxonomy assigned?
tl;dr: What’s the easiest way to add a field for each taxonomy assigned to a post?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.