Support

Account

Home Forums Feature Requests Conditional taxonomy

Solved

Conditional taxonomy

  • Hello,
    Is it possible to have taxonomies that are different or not visible depending on another taxonomy selected in my edit page ?

    For instance, i have two taxonomies TYPES and PIECES :

    TYPES
    1. type#1
    2. type#2
    3. …
    4. type#10

    PIECES
    1. pieces#1
    2. pieces#2
    3. …
    4. pieces#20

    If i select type#2 , only piece#3 to piece#7 should be visible and selectable.

    thanks

    • feyfey

    • December 29, 2018 at 9:08 am

    Hi Pipoulito,

    You have two solutions i’m familliar with to do it dynamically:

    • Using Javascript to change the “PIECE” choice by using the WP ‘admin_footer’ action to put some javascript in backend.
    • Create several “PIECE” fields and use the logical condition in the field settings to display the good one depending on the “TYPE” value.

    It depend on you.

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

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.