• Resolved tbadorrek

    (@tbadorrek)


    I’m trying to use the shortcode multiple times on one page. Basically, I’m trying to categorize all my posts of a single category into each of their custom taxonomies as further segmentation.

    When I use the shortcode twice in a row, it only displays the first one. I’m using it like this:

    [display-posts taxonomy=”article-type” tax_term=”a” include_excerpt=”true” image_size=”thumbnail” posts_per_page=”-1″ order=”ASC” orderby=”date”]

    [display-posts taxonomy=”article-type” tax_term=”b” include_excerpt=”true” image_size=”thumbnail” posts_per_page=”-1″ order=”ASC” orderby=”date”]

    Can I not do this, or is there another way to achieve this?

    Thanks!

    http://wordpress.org/extend/plugins/display-posts-shortcode/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    That should definitely work. Can you confirm that you have terms in both “a” and “b”?

    I just did it with standard categories and it worked fine:


    [display-posts taxonomy="category" tax_term="a" include_excerpt="true" image_size="thumbnail" posts_per_page="-1" order="ASC" orderby="date"]

    [display-posts taxonomy="category" tax_term="b" include_excerpt="true" image_size="thumbnail" posts_per_page="-1" order="ASC" orderby="date"]

    Thread Starter tbadorrek

    (@tbadorrek)

    OK, thanks. A and B were actually examples. I was actually using the terms “theology” and “work”, and for whatever reason, when I use “work” nothing will show up. There’s something off with that keyword I guess.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Display Posts Shortcode] Using shortcode multiple times on one page’ is closed to new replies.