Ready to get started?Download WordPress


Using the plugin on search results page (1 post)

  1. ThomasLG
    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:

    (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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.