Single post!
-
Complex logic of WP continues to elude me.
I need to display one single post (title and content) on a page. File “single.php” is supposedly dedicated for this. So, when user goes to page “site.com/p=85”, he should see the post with id of 85. And that’s all! Only ONE post.
If I’m insterting “the loop” in this page, ALL posts are listed.
If I’m not inserting “the loop”, I cannot access “the_title()”, “the_content()”, and other post data.
How I am to display single post in single.php ? ALL examples of single.php on the Internet for some unknown reason include “the loop”, and all of them display ALL posts! Why ??
How I am to get current post and it’s data (title, content) that should be displayed according to the current URI “/p=85” ???
The topic ‘Single post!’ is closed to new replies.