• Resolved nmottet

    (@nmottet)


    Thanks for the great plugin – we use it a lot!

    Question: we use the plugin to display all related posts with the same tag as the tag of the post where the shortcode is inserted.

    For example, on a page about “dog panting”, we manually insert this code at the end of the post to display all other posts related to dog panting:

    [display-posts tag=”dog-panting” include_excerpt=”false” image_size=”thumbnail” (…) exclude_current=”true”]

    However, we have to manually do this on every single page and we have over 1,000 posts. We would like to do this automatically. Is it possible for the shortcode to “display-posts” of the same tag as the tag used on the current page?

    Our pages have the tag info in the HTML:
    <div class=”entry-tags clearfix”><i class=”fa fa-tag”></i><ul><li><a href=”sitename.com/tag/panting/” rel=”tag”>Panting</a></li></ul></div>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible to display posts that have the same tag as current post?’ is closed to new replies.