WordPress.org

Support

Support » Plugins and Hacks » Hacks » PHP Query in Classipress Theme – SIMPLE PROBLEM!

PHP Query in Classipress Theme – SIMPLE PROBLEM!

  • I am uing the following query to show only one post per page in the “blog” category of my classipress themed wordperss site –

    <?php global $query_string; ?>
                    <?php query_posts( $query_string . '&posts_per_page=1' ); ?>

    This causes the following problem however – http://www.farmads.ie/new/category/farm-videos/page/49/
    It shows Page 49 of 7. It is calculating the number of pages based on what I have the classipress settings set to.

    Below is the piece of code that sets the pagination function. How can I include some of it in my query in order to overcome this problem?

    [Code moderated as per the Forum Rules. Please use the pastebin]

  • The topic ‘PHP Query in Classipress Theme – SIMPLE PROBLEM!’ is closed to new replies.
Skip to toolbar