Is it possible to compare values while searching weblog fields?
For example:
{exp:weblog:entries custom_field:price="> 100" custom_field:price="< 150"}
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
May 25, 2010 11:34am
Subscribe [2]#1 / May 25, 2010 11:34am
Is it possible to compare values while searching weblog fields?
For example:
{exp:weblog:entries custom_field:price="> 100" custom_field:price="< 150"}
#2 / May 25, 2010 3:25pm
I am afraid that’s not an option, natively. You’d need some PHP, perhaps a custom query for that.
#3 / May 25, 2010 3:30pm
Is it possible to add something like this to the query via an extension, or is that query protected and I will need to build my own query?
#4 / May 25, 2010 3:38pm
It’s not protected, but the simplest way would probably be a simple SQL query. Moving to Howto.