Support

Account

Home Forums General Issues Create a sort order for each post taxonomy

Helping

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.

    I could do this, but it's a pain in the butt
    I could do this, but it’s a pain in the butt

    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?

  • 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.

    I could do this, but it's a pain in the butt

    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?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.