WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] Using shortcode multiple times on one page (3 posts)

  1. tbadorrek
    Member
    Posted 2 years ago #

    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/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 2 years ago #

    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"]

  3. tbadorrek
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic