Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134772

Ani7791 on "Query string to be appended to search results for sorting"

$
0
0

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


Viewing all articles
Browse latest Browse all 134772

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>