WordPress.org

Ready to get started?Download WordPress

Forums

Counting queried posts results? (1 post)

  1. kennethjaysone
    Member
    Posted 4 years ago #

    I've queried a post and asked that it returns posts with the tag promotion like so:

    <?php
         $slider = new WP_Query;
         $slider->query('tag=Promotions');
    ?>

    Is there a way? to count the queried results that were returned (posts with the tag of Promotions)?

    Thanks everyone

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by kennethjaysone
  • This topic is not resolved
  • WordPress version: 2.8.4