Custom taxonomy/category order
Custom taxonomy/category order
Custom taxonomy/category order
next_post_link and previous_post_link order not working properly
Order posts with a custom field but also without
I would edit the SQL database directly, changing category IDs based on my desired order. Then I would use ‘orderby’=>’id’ to sort. You could also add an integer to the slug (i.e., 1-fish, 2-chips, 3-dips, etc.) and order by slug, but those would appear on the front end.
Ordering custom post type by multiple custom fields
Any way for get_next_post() to use the actual post order instead of publish order?
I ended up implementing my idea. I’ve described the creation of the custom input field on the Site Info Screen unter Network in this Post. Here is the complete code again: <?php // Create custom Input Field on the WP-Admin > Network > Site Info Screen // for the possibility to order sites manually add_action(‘admin_footer’, … Read more
EDIT (Please see the original answer for full explanation of the code) The code in my original answer works as expected, but triggers a known bug with usort (Check the bug report here #50688) WARNING Error: [2] usort(): Array was modified by the user comparison function This bug is triggered only when the fields parameter … Read more
meta_value_num not ordering all items
Why does pre_get_posts() return “date” as the orderby parameter for every sortable column?