I managed to make the filters work based on my custom taxonomies, that’s cool, but I am having problem with the SORT BY
I want to be able to SORT BY a custom taxonomy or the CABIN SIZE one for example. On the cabin size which meta key is “aircraft_cabin_size” and which inner categories are “Heavy, Medium, Small” it’s not working, I can see SMALL cabin sizes mixed with the heavy and medium ones.
So I tried creating a new taxonomy just for sorting purpose which meta key is “ordenanza” and I put 3 inner categories being AAA, BBB, CCC so that it’s easier to se if it works, but on that case I get a blank page result: https://wordpress-259574-5283223.cloudwaysapps.com/aircraft/?ordr=mordenanza
The Aircraft posts have the AAA, BBB , CCC added to them… what am I doing wrong and how would I have to apporach it to accomplish the simple thing I am trying to accomplish?
And on the other hand I wanted to know if it’s possible to have a custom default sort order based on 3 combinations being “aircraft type, cabin size, year”. So that the default items come arranged first the Jets, and those jets first the heavy, then medium then small; after that the turboprops, heavy, medium, etc… is that possible with filter everything or should I have a custom code snippet for that?
Thanks in advance!
]]>I am working with a current WP and Pods installation (WP 6.6.2, Pods 3.2.7.1). According to the docs (https://docs.pods.io/displaying-pods/pods-blocks/) there should be a “Where” and “Order By” field in the Block “Pods Item List” to restrict the output to e.g. a specific category. However I do not see these fields in the Options tab. Am I missing something?
Thanks,
Georg
On the above page, it has a box that says “Want it by…. xxxxx? Order within xxxxxxx”
How can we do this on WordPress? I can’t find any plugin that’s the same. Their website uses Shopify
]]>error_log( print_r( $search_args, true) );
$sessions_query = new WP_Query();
$sessions = $sessions_query->query( $search_args );
error_log( $sessions_query->request );
The search args logged are:
Array (
[post_type] => wc_appointment
[post_status] => Array
(
[0] => complete
[1] => confirmed
[2] => conflict
[3] => cancelled
)
[posts_per_page] => -1
[post_parent] => 124036
[orderby] => ID
[order] => ASC
)
However, on the logged request, I got this (note the ORDER BY):
SELECT wp_posts.ID
FROM wp_posts
WHERE 1=1 AND wp_posts.post_parent = 124036 AND wp_posts.post_type = 'wc_appointment' AND ((wp_posts.post_status = 'conflict' OR wp_posts.post_status = 'complete' OR wp_posts.post_status = 'confirmed' OR wp_posts.post_status = 'cancelled'))
ORDER BY wp_posts.menu_order , wp_posts.post_date DESC
When I disable the plugin, I get (as expected) the following :
SELECT wp_posts.ID
FROM wp_posts
WHERE 1=1 AND wp_posts.post_parent = 124036 AND wp_posts.post_type = 'wc_appointment' AND ((wp_posts.post_status = 'conflict' OR wp_posts.post_status = 'complete' OR wp_posts.post_status = 'confirmed' OR wp_posts.post_status = 'cancelled'))
ORDER BY wp_posts.ID ASC
The settings for the plugin are:
Thanks
]]>I have a list of the latest reviews and ratings, and I use that per post well through the site, however, I want to make list of the latest reviews and ratings from ALL posts (like https://gptdecide.com/latest-reviews-and-ratings/ ) , but I want to have a link back to the Post it came from.
Additionally I like to be able to order them by date or by rating, but I can’t find that option either.
P.S. – I love this plugin!!!
]]>Happy 2024
The order of docs in our TOC doesn’t match with the category archive.
https://share.wppopupmaker.com/Jru5lknW
I’ve already set Layout > Documentation Page > Order By:
Is there another setting I’m missing for the TOC order? If not, do you have a hook to force that order to match?
Thanks!
]]>Is it possible to sort categories/archives/search results by number of post views with most viewed posts displayed first?
thanks
]]>Order by: Meta Value (also tried Meta Value Num)
Ascending order is true.
Meta key: date_of_event (Note: the value for this field is stored in Ymd format)
Meta value: (empty)
Would you be so kind as to tell me what I’m doing wrong?
Thank you for your help!
]]>