Detect more than 1 published post?
-
I’m currently using get_posts – https://wiki.www.ads-software.com/?pagename=get_posts to get a list of recent posts on my Retrospotive theme and it works fine except when someone only has one published post, as I’ve set the offset to 1.
I was wondering if there a simple if statement that I could add, so the list doesn’t display unless there’s more than 1 published post? PHP unfortunately isn’t my strong point, so any help would be much appreciated ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Detect more than 1 published post?’ is closed to new replies.