• Resolved Jackie Chan

    (@jackie-chan)


    Hi I want to display posts with certain tags on different pages. For example I have posts with the tag “exotic food” how can I display all the posts with the tag “exotic food” on a page?

    Thanks

    P.s to be clear this is NOT about post categories.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi!

    I’d say you should be able to view the archive page of your particular tag by viewing the <your site.com>/tag/<your tag>

    That’s probably the best way to see a listing a of posts related to a perticular tag.

    If you need to view the posts on a page specifically, there are a few options. something like this might work: https://www.ads-software.com/plugins/display-posts-shortcode/

    if you need more control, I’d go the route of a new page template for each specific case, which would give you the ability to make more comprehensive markup changes. You’d need to my a custom query with your desired args, and loop through the entries.

    let me know if you have questions –
    Bryan

    Thread Starter Jackie Chan

    (@jackie-chan)

    Perfect thanks. I installed the plugin “Display-posts-shortcode” (as stated above) and inserted this shortcode into my page’s visual editor: [display-posts tag=”exotic food”]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to display posts with the same tag on a page’ is closed to new replies.