• Resolved tkhan

    (@tkhan)


    Hi Eyal another quick question I have modified the search-functions.php

    Basically I have several versions of the $gmw_query_args section each is excecuted if a particular ‘$get(“order”)’ value is present in the url, these values are simply added to the end of the query by hyperlink when clicked by a user.

    I have run into a slight problem, if the user searches again using the form the order is reset as the value is stripped from the url,
    I had intended to check the $get values in the search form and repost them using hidden fields, this however does not work as they get urlencoded.

    ‘&orderby=title&order=ASC’ becomes ‘%26orderby%3Dtitle%26order%3DASC’

    Is there anywhere I can test for and echo back these values in the plugin itself, or a way round the url encoding issue posting via the form.

    Thanks again

    Tkhan

    https://www.ads-software.com/plugins/geo-my-wp/

Viewing 1 replies (of 1 total)
  • Thread Starter tkhan

    (@tkhan)

    sorted added order as the name and the meta key as the value…

    ‘<input type=”hidden” name=”order” value=”favourited”>’

    Tkhan

Viewing 1 replies (of 1 total)
  • The topic ‘Sort Order’ is closed to new replies.