• Here, I read this feature:
    “Conditional content based on field value, login status, etc.”

    I tryng display results filtered by field value (Education). I have a CPT called “Playlist” , a selection field (advanced custom field ) called “category” and an option called “Education”

    I’m using advanced custom fields 4.4.11 – It’s not the pro version

    I trying this, but doesn’t work:
    [loop type=playlist field=category value=”Education”]
    [field title-link]
    [/loop]

    and

    [loop type=playlist field=category value=Education]
    [field title-link]
    [/loop]

    Where am I going wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think it’s something to do with the name of the custom field “category”. Because of “category” is a default taxonomy of WordPress, maybe the plugin is looking for a category term “Education”.

    Did you try to add custom=true to the shortcode? Maybe it will fix the issue…

    BTW: Isn’t it easier for you to create a custom taxonomy “playlist_category” and add terms you need?

    Thread Starter habrone

    (@habrone)

    Hi, Peter
    Thanks for your help
    I really need custom fields instead taxonomy, because I must use Condition option to show fields

    I trying with custom=true, but still not works:

    [loop type=playlist field=categoria value="Education" custom=true]
    [field title-link]
    [/loop]
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show content filtered by field value’ is closed to new replies.