WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostViews
Using the plugin on search results page (1 post)

  1. ThomasLG
    Member
    Posted 1 year ago #

    I'm trying to use this plugin to sort search results by most viewed. Running the get_most_viewed function works, so the plugin itself seems to work correctly. However, when adding "&v_sortby=views&v_orderby=desc" to the URL, it doesn't seem to have an effect.

    The full url looks something like this:
    http://www.site.com/?s=cleverguy&v_sortby=views&v_orderby=desc&v=4

    (where I'm using the v variable for something else).

    The search results page loops through the posts, as any default search results page... and it works for other variables, like orderby=post_title. Any idea why this doesn't work with wp-postviews? Or is the variables only working for normal post queries, not search queries?

    http://wordpress.org/extend/plugins/wp-postviews/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.