Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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!!

share|improve this question
2  
Remove your query_posts and it should work by default – Bainternet Jul 22 '11 at 22:30
What is the current code that produces that post list + the category heading? – Bendoh Sep 19 '12 at 18:49

closed as too localized by toscho Dec 18 '12 at 23:34

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

create a separate category/tag for that particular post you need, add or remove the tag/category if you need to add another post.

query_posts( 'tag=selected' ); or query_posts( 'cat=selected' );

or query_posts( 'cat=featured&tag=selected' );

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.