Results 1 to 2 of 2

Thread: display only one specific post

  1. #1
    sf23103 is offline Hello World
    Join Date
    Jul 2011
    Posts
    5

    Default display only one specific post

    Hello!

    For my wordpress site, I have a category heading on the left with all posts in that category listed below. When the user clicks on a specific post, I want that post (and that post only) to display.

    I used I used query_posts($query_string.'&posts_per_page=1'); but when you click on a specific post in that category, only the most recent post shows up.
    How can I just display the selected post, and that post only?


    Thanks!!

  2. #2
    Jeffro's Avatar
    Jeffro is offline WPTavern Forum Admin
    Join Date
    Jan 2009
    Location
    Ohio
    Posts
    2,359

    Default

    I'm a little bit confused because I thought the default behavior out of something like this should show the post in the single page view when clicked on so only that post is displayed. From what your describing, it sounds like when someone clicks on a post from that category listing, they are seeing all posts in that category instead of the one they clicked on. Does that sound about right?

    Wouldn't it be easier to show a list of recent posts using a widget and have that widget only show a specific category instead of all recent posts?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •