Forums

Relevanssi - A Better Search
[resolved] Sort results by Meta Key? (2 posts)

  1. mattbarry
    Member
    Posted 4 months ago #

    Hey there,

    I have a search page set up and that shows search results - fine. I would like to add a link/button to this page that will sort the results by meta_values OR taxonomy terms.

    For example - If I had a meta_key called 'Year' - and the values were 2001, 2002, 2003 etc...I would like to order them starting with the oldest first.

    I tried using '&meta_key=year&orderby=meta_value&order=ASC' but it seems to have no effect.

    Would meta_keys or taxonomies be best for this? What is the easiest way to do this?

    Hope that makes sense!

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

  2. msaari
    Member
    Posted 4 months ago #

    This was covered and answered in the comment thread on Relevanssi.com. Quick answer: yes, it's possible, but not like that.

Reply

You must log in to post.

About this Plugin

About this Topic