Support » Plugin: Display Posts - Easy lists, grids, navigation, and more » How to show Posts with Tag and Id

  • Resolved Xaibi Aslam


    I am using plugin and its great. I have question that how I can display tag posts and id post in single short code.

    I try this

    <b>[display-posts tag="army" posts_per_page="5" id="56636"]</b>

    But its not working. Is it possible to show both in a single shortcode and also want to know that how I can add Image after title. For Example I want to show a (NEW) gif image after title, so it possible also or not?

    • This topic was modified 2 years, 8 months ago by Xaibi Aslam.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson


    What are you trying to do with the ID field? It is for specifying a specific post by ID. [display-posts id="56636"] displays the post with an ID of 56636.

    There’s no need to specify a tag or posts_per_page since you are saying “display this specific post”.

    If you’re trying to say “show me 5 posts in the ‘army’ tag AND include post #56636” that won’t work – they need to be two separate queries.

    [display-posts id="56636"] [display-posts tag="army" posts_per_page="5"]

    I know that but I thought may be it will work but you said it will not. So thanks for this brother.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to show Posts with Tag and Id’ is closed to new replies.