• Resolved mhairilongmuir

    (@mhairilongmuir)


    Hi there,

    I am trying to show content that is filed under two custom taxonomies and terms – eg. matches both of these (the first is the taxonomy, the second is the term):
    – chapter > 1
    – media type > audio

    (then all audio in chapter 1 would be shown)

    This is what I have at the moment:

    [raw]
    [block class="table-of-interactions"]
    [loop type="Interaction" count="999" term="1,audio"]
    [fourcol_three]
    <h4 style="margin-bottom: 10px;">[field title]</h4>
    <p style="margin-bottom: 10px;">[field short_description format="true" length="365"]</p>
    <!--[image-url] - [image-title] - [image-link] - [image-link-out]-->
    <a class="button small" href="[field url]">view</a>
    [/fourcol_three][fourcol_one_last]
    <a style="float: right;" title="[title]" href="[image-url]" rel="lightbox">[field image="thumbnail" size="thumbnail"]</a>
    [/fourcol_one_last]
    <hr />
    [/loop]
    [/block]
    [/raw]

    https://www.ads-software.com/plugins/custom-content-shortcode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    To match terms from two taxonomies:

    [loop type="interaction" taxonomy="chapter" term="1" taxonomy_2="media_type" term_2="audio" compare="and"]

    Please note that the names must be exact. In the above example, I set the post type to “interaction” because usually post types are in lowercase. Similar with taxonomy_2, I set it to “media_type” because taxonomy slugs cannot have a space in them. To check the exact names to use, you can go to Dashboard -> Content.

    Thread Starter mhairilongmuir

    (@mhairilongmuir)

    Thank you very much for that, it’s working perfectly for me ??

    Plugin Author Eliot Akira

    (@miyarakira)

    Glad to hear it. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display content that matches two taxonomies and terms’ is closed to new replies.