Support

Account

Home Forums General Issues Conditional for tags

Solving

Conditional for tags

  • Hello to all

    i would like to create conditional fields for tags
    Problem is that i don’t need them all

    i want three dropdown fields for example which should be:
    Page 1
    Page 2
    Page 3

    with few tag inside each
    Page 1 has tags: custom1 custom2
    Page 2 has tags: custom3 custom4
    Page 3 has tags: custom5 custom6

    I hope someone will point me in right direction how is the best way to do this correctly

    Regards!

  • Hi @dnikola

    I’m afraid I don’t understand your query. Could you please explain it in more details and share some screenshots of the current state? Also, could you please let me know the example of your goal?

    Thanks 🙂

  • Hi thanks for your replay.

    Actually i have some pages and and position on them, in which are visible post taged with specific tags

    i want to enable users metabox in which they will have option to check tag and with that tag they will be able to position post on that position.

    Since they have 5-6 pages with few tags for each i would like to make them drop down menu for pages PAGE 1 / PAGE 2 and etc
    when is selected PAGE1 in check box area will be shown TAG 1 TAG 2 and etc
    when is selected PAGE2 in check box area will be shown TAG 5 TAG 10 and etc
    end for every page different tag

    I must say i would like to keep also current meta tag box

    Thanks!

  • Hi @dnikola

    If I get it correctly, I’m afraid you need advanced JavaScript code to do that. There’s an old tutorial that discusses this topic, but I’m not sure if it is still working or not. You can check it out here: https://www.bobz.co/dynamically-populate-select-fields-choice-in-advanced-custom-fields/.

    I hope this helps 🙂

  • Hi @acf-support

    Thanks for sharing this!

    I will take a look on this and come back to you!

    Thanks!!!

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

The topic ‘Conditional for tags’ is closed to new replies.