This is a community support forum where you can ask questions and interact with other PremiumPress Customers.
I think I brought this topic up a while ago: http://www.premiumpress.com/forums/topic/custom-advanced-query/ The main issue is the theme already sets the default post type and parameter support for anything other than the default post type is lacking with wordpress in general. Eg you cannot exclude a tax in your query the same way as a cat or a tag – even though they are both taxonomies.
Eg you cannot exclude a tax in your query the same way as a cat or a tag – even though they are both taxonomies.
In a standard WP you can.
Richard it would be better if you explain with examples how its ‘screwed up’, the queries all follow WP formatting otherwise it wouldnt work full stop.
If you have followed those many threads that discuss all those ordering issues, you would know what I am talking about. I have tried it myself on my clean install of latest responsive themes and am getting the same results as those posted by many other users.
I have already mentioned it earlier in this thread, but here it is again:
1) when ordering by featured – non-featured posts appear amongst them (when they should appear after the featured)
2) when ordering by starrating (asc or desc) – it does not follow the order at all, you get the results mixed all over the place
3) ordering by price – same as the starrating
4) Radius search does not seem to work either
5) if you use the Recent Listings object and would like to display latest blog posts, even though you use the correct query, it will not work (while the same query works fine in tabs object).
This is just a collection of issues reported by other customers on the forum (and confirmed to not work)
I would like to add that Mark sent me a version of the class_white_label_themes.php file, and it made the OrderBy Price work properly. I haven’t tried any of the others because I don’t need them, except for the star rating, which doesn’t work. It does show results that are all rated (doesn’t show anything with no rating), but they aren’t in any discernible order.
I’ve been trying to interpret what Mark meant when he said in a tech support response that “you can only order by values which are present in the search query so the basics would be title, date and one or two mea tags such as hits and price.”
Does this mean that there’s some set of “fixed” WP search query options? I can’t find evidence of that when I read the WP codex. Besides, one of the supposedly searchable, order-able items that Mark’s coded into the class_white_label_themes.php file I was sent includes “bidwinner” and that doesn’t seem like any kind of native WP option. If we can orderby bidwinner, why not starrating?
If I even knew which areas of the code to examine to work this out, I’d do it. I’m just totally out of ideas right now, but still learning PHP with the hopes that I’ll eventually figure it out.
Post the class_white_label_themes.php here then we can see what changed.
Here it is.
Hmm. it’s not posting, and I can’t tell why. It says this file type is not permitted for security reasons.
Zip it up and try again.
ok, here we go
No you can’t, to exclude a category in query_posts you simply use -345 where 345 is the cat number. Support for Taxonomies and custom post types is limited compared to the default ‘out of the box’ post types. You need to create a custom array, WP_Query or get_posts which a simple query string will never support.
Recent Listings has the Post Type hard coded.
GDStar Query Posts Examples:
Does this mean we should be able to use this code as a model to get the built-in star ratings sorting to work? Please explain. Thanks.
Those queries are only if you are using GDstar rating, I haven’t used the built in ratings at all yet.
It’s hard coded in Tabs as well but the different query method that Tabs uses must allow it to be over-ridden