Support » Fixing WordPress » Query string to be appended to search results for sorting

  • Ani7791

    (@ani7791)


    Hi all,

    I have order result by function in my theme which sorts the results.

    The code writtern for this is

    if(isset($_GET['search-class'])){
    				$sitelink = curPageURL().'&orderby='.$key.'&order='.$value.$extra;
    				}else{
    				$sitelink = get_option('siteurl').'/index.php?cat='.$GLOBALS['premiumpress']['catID'].'&orderby='.$key.'&order='.$value.$extra;
    				}

    This code helps me sorting on page http://www.godfathercoupons.com/category/cafes-and-coffee

    But on the page http://www.godfathercoupons.com/?search-class
    its not working.

    I think i need to change the query appended in some way.

    Can anyone suggest what can be done.

    Thanks,
    Anisha

  • The topic ‘Query string to be appended to search results for sorting’ is closed to new replies.