WordPress.org

Ready to get started?Download WordPress

Forums

Query string to be appended to search results for sorting (1 post)

  1. Ani7791
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic