Why does ‘showpost=1’ give me two posts instead of one?
-
Hi,
I would like to feature one latest post and for this, I’ve set the .php to read:
query_posts(‘showposts=1&cat=3’); //selects 1 article of the category with ID 1 ?>
The problem is that even though I set showposts=1, two of the latest entries come up. As an example, the lead article box on my main website: https://iam.subhumour.us/ as well as the Travels, Travails section below it. The only time it comes up as one post is if there is only just one post in the category.
It isn’t the theme as this has happened a few times while I’ve been switching themes. I have a feeling it is something elementary that I have overlooked. Please help!
Many thanks
IdlanApologies for cross-posting, I’ve posted the same issue in the How-To forum
- The topic ‘Why does ‘showpost=1’ give me two posts instead of one?’ is closed to new replies.