Tagged Questions
1
vote
1answer
282 views
Auto sort the wp-admin post list by a meta key
I am using this following code in my functions file to hide and add some custom columns to my post-edit screen in wp-admin.
I am now trying to get the post list to sort by a post meta field (last ...
1
vote
1answer
147 views
How do I sort a custom post type admin column using two meta keys?
I have created a custom post type along with custom columns. One of my columns displays a date range such as "12/05/2012 - 11:00 am to 12/15/2012 - 1:00 pm". This is a concatenated string using a ...
5
votes
2answers
302 views
Can the Next/Prev Post links be ordered by menu order or by a meta key?
I have a series of posts that are ordered by a meta_key value. They could also be arranged by menu order, if necessary.
The next/prev post links (generated by next_post_link, previous_post_link, or ...
0
votes
2answers
498 views
Sort custom posts in archive by multiple values: date AND meta key
I have a post type and I want to sort posts in its archive according to two values:
by a meta value called "artwork_year" which contains a 4 digit number (year)
by post publish date
what the query ...
1
vote
2answers
483 views
Wordpress Menu Disappears when $query->query_vars['meta_key'] is set
I've set some meta variables on my WP posts. I want to be able to sort by these variables, and everything is working great except when I sort by either "views" or "likes". When I sort by either of ...
0
votes
1answer
486 views
How can I sort my loop based on meta data, using a form?
I've created a custom post type called 'properties' with custom meta boxes of 'price' and 'rooms'.
I have a custom loop-property-archive.php to display the properties.
What I would love to have is a ...
0
votes
3answers
492 views
Sort taxonomy page alphabetically by meta rather than default post date
The user starts at a page showing posts of custom post type, "agent".
Each post displayed shows a region/custom taxonomy it belongs to and links to a page that shows all posts in the region the user ...