• Resolved Doobeedoo

    (@doobeedoo)


    Hello,

    I usually use ACF & CPTUI, now trying pods, it’s nice!

    Question: I created a new custom taxonomy associated with posts

    How to apply this custom taxonomy to only posts from a specific category?

    It’s not as straightforward as ACF, in the tab “Connections” there is only a list of the post types, but no category to choose from

    In “Components” I found “Advanced Relationships” and enabled it, but it did not add the option

    Thanks in advance for your help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @doobeedoo

    I’m not sure I 100% follow what you are trying to do.
    A custom taxonomy can be linked to a custom post type but I’m not aware of other type of connections for this?

    Cheers, Jory

    Thread Starter Doobeedoo

    (@doobeedoo)

    Hello Jory,

    Thank you for your answer

    In fact, it’s custom fields that we can link to posts from only a specific category (in ACF), and not custom taxonomies. Illustration : https://imgur.com/a/cEStVFG

    Use case: I have posts categories “Music” and “Movies”

    I created a custom taxonomy “Music artists” linked to posts

    Problem: in posts from category “Movies”, the field “Music artists” is displayed, and this is misleading

    What structure would you recommend to solve this ?

    I don’t create a CPT “Music” and another CPT “Movies”, because some posts can be in multiple categories (“Music” AND “Movies” for this simplified example)

    Thanks in advance

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @doobeedoo

    Ah, you are referring to conditional logic.
    WordPress taxonomy relationships do not allow conditional logic, however, our relationship fields do. Though this is a very new feature (released since 3.0) and might not be as complete as you are used to in ACF.
    We currently only support conditionals on Pods fields, not general object information. See this topic for more information: https://github.com/pods-framework/pods/issues/7113

    More info about our supported conditionals can be found here: https://pods.io/2023/09/13/pods-3-0-feature-release-conditional-logic-for-fields/

    Cheers, Jory

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom taxonomy for posts from a specific category’ is closed to new replies.