How can I tell if I am in a “single post template
-
I want to link to previous post … next post.
The docs say for previous_post() or next_post():Displays a link to the previous post(s). (Generally you might want to use this only in single-post templates)
Great advice, but how do I tell if I’m in a single-post template? I’ve always ever hacked on index.php. Please tell me there’s a simple if statement within which I can couch my prev link .. next link navigation.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How can I tell if I am in a “single post template’ is closed to new replies.