Filter by price not working https://www.premiumpress.com/forums/topic/filter-by-price-not-working/feed/ Wed, 10 Sep 2025 17:06:27 +0000 https://bbpress.org/?v=2.6.4 en-US https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2267 <![CDATA[Filter by price not working]]> https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2267 Thu, 11 Jul 2013 23:58:08 +0000 Pablo I have created a search field “price” and would like to filter the results in descending order but it is not working. Maybe something wrong with the parameters added when clicking on the filter: “&orderby=meta_value&key=price&order=desc”

This is the entire query: ?search-class=PPT_S-ppt_s&cs-all-0=&cs-price-1=&cs-price-2=0-200000&orderby=meta_value&key=price&order=desc

Any suggestion?

]]>
https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2297 <![CDATA[Reply To: Filter by price not working]]> https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2297 Fri, 12 Jul 2013 06:12:11 +0000 Mark Fail &orderby=meta_value&key=price

this is wrong, it should be;

&orderby=meta_value&meta_key=price

]]>
https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2316 <![CDATA[Reply To: Filter by price not working]]> https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2316 Fri, 12 Jul 2013 08:02:39 +0000 Sean Also why don’t you set up the search for price so you have a minimum and maximum price?

Then your visitors can search more specifically and the search results will return faster.

]]>
https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2335 <![CDATA[Reply To: Filter by price not working]]> https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2335 Fri, 12 Jul 2013 10:47:32 +0000 Mark Fail 🙂

]]>
https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2450 <![CDATA[Reply To: Filter by price not working]]> https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2450 Fri, 12 Jul 2013 17:26:14 +0000 Pablo Hi Mark, Actually I took a look in the Shopperpress Demo and noticed the filter by price is exactly the same as used in Realtorpress theme:

https://shopperpress.premiumpresslimited.com/index.php?cat=6&orderby=meta_value&key=price&order=desc

I don’t want to use Min/Max price fields because it is easier to customers searching the property using one field instead of two in my opinion.

I am using realtorpress 7.1.4 and WordPress 3.5.2 and was wondering if it can be related to:

1. The mask used to the price. Example: R$458.950,00
2. Some htaccess rewrite configuration

I also noticed that when using the parameter “&order=asc” at the end it is sorting the property “Title” instead of “price”. Example: &orderby=meta_value&meta_key=price&order=asc.

I appreciate any suggestion.

Thanks.

]]>
https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2753 <![CDATA[Reply To: Filter by price not working]]> https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2753 Sun, 14 Jul 2013 13:52:53 +0000 Pablo Hi – I have opened a support ticket for investigation.

thanks

Pablo

]]>
https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2784 <![CDATA[Reply To: Filter by price not working]]> https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-2784 Sun, 14 Jul 2013 16:14:52 +0000 Mark Fail Hi Pablo

Price values must be stored as numeric values to be searched correctly, so the price needs to be 100 not $100 (example)

]]>
https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-3100 <![CDATA[Reply To: Filter by price not working]]> https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-3100 Mon, 15 Jul 2013 21:37:30 +0000 Pablo Hi Mark,

In order to fix this I had to change the file class_design.php and replace the parameter “key=” by “meta_key=” in the following lines as your suggestion:

1) $cat.”&meta_value=yes&meta_key=featured&orderby=rand&posts_per_page=50″;
2) meta_key=featured&orderby=rand&order=rand”;

Also I have reviewed the prices values and deleted all comma and dot symbols.

Thanks for the tips.

Regards,

Pablo

]]>
https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-3120 <![CDATA[Reply To: Filter by price not working]]> https://www.premiumpress.com/forums/topic/filter-by-price-not-working/#post-3120 Tue, 16 Jul 2013 02:09:30 +0000 Mark Fail Pablo nice work thanks for letitng me know

]]>