If my blog is set up for only one post displayed at a time do I need "the loop"?
-
Yes, yes, mark this question absurd, and showing my misunderstanding of the glorious \o/ //**LOOP**\\ \o/. All due respect and reverence aside, I’ve done my best to display only one post at a time. The visitor selects “older” or “newer post” to select the next in time either raw-time or, if a tag is being searched, the newer or older in that tag. A home link is also provided, always to allow navigation to the most recent post.
Now. Let’s get to it. I have the familiar “if we have any posts, while there are any, loop through them one at a time…” structure. Followed by the usual “else display GO FISH”. Is there any reason I could not rewrite my template to, instead of looping, simply “if have posts, display a post (with appropriate next/prev links)”… [and eliminate the while loop]?
I like simplicity.
- The topic ‘If my blog is set up for only one post displayed at a time do I need "the loop"?’ is closed to new replies.