WordPress.org

Ready to get started?Download WordPress

Forums

WP Search
Query Overriding (1 post)

  1. thehen2
    Member
    Posted 2 years ago #

    Hi,

    Thanks for the great plugin.

    In my sidebar I have a number of post listings (latest posts, most commented posts etc).

    When using this plugin the search overrides these and orders them the same as the search results.

    $r = new WP_Query(array('post_type' => $post_type, 'showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'offset' => $offset));

    I've tried wp_reset_query(); and wp_reset_postdata(); to no avail :(

    Any help would be greatly appreciated.

    http://wordpress.org/extend/plugins/wpsearch/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic