I have been using Query Post for a newsticker which I have created so that the user navigate through the number of news by simply pressing Next & Previous buttons.
But in case if there is only 1 news (i.e, only 1 post returned then there is no point of having Prev and Next button).
I will simply assign css attribute Display: none to the prev and next button if there is only 1 post. But how to find out if the query post returned just 1 post.
query_posts('post_type=post&cat=20&post_status=publish&order=DESC'); while (have_posts()): the_post();