All Questions
9
questions
17
votes
3
answers
26k
views
Make custom column sortable
I have a added custom column to a custom post type, and it works fine. I just want it to sort the names by title, so I tried this,
function sortable_custom_columns( $columns ) {
$columns['...
1
vote
1
answer
704
views
Order a custom post type admin screen by a second custom post type title
I have two custom post types: Products and Brands. The Product slug is 'eproduct'. The Brand slug is 'brand-listing'. On the Product admin page, I have added a custom column that lists the Brand ...
0
votes
2
answers
2k
views
Make a custom column sortable by a value from a different custom post type
I've created some custom columns to display my custom post types more attractively in the admin section - the columns are mostly custom fields. Mostly, this works absolutely fine, and I can sort by ...
16
votes
1
answer
19k
views
How do I set the default admin sort order for a custom post type to a custom column?
SOLUTION AVAILABLE HERE
I've set up a custom post type called clientarea, and set up several custom columns for it in the admin area - the custom columns are all custom meta fields, as you can see ...
4
votes
1
answer
744
views
Column sorting with emtpy meta values
I am trying to sort my custom post type columns in the admin area. There's two ways I found to do this:
At first this was my way to do it, however I got some strange behaviours. If a meta value is ...
0
votes
3
answers
2k
views
Make custom post type column sortable
My site has two custom types: Auction and Lot. Lots are connected to an Auction via the post_parent field. I added an Auction column to the Lots list in the admin area.
function ...
2
votes
1
answer
639
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 ...
0
votes
1
answer
1k
views
Sorting custom post types in edit.php : Post disappear
I've got a few custom post types with different taxonomies and I have a function that adds certain categories to post list view in edit.php admin screen. Everything good there. I've also added a ...
7
votes
1
answer
9k
views
Custom sortable columns ordered by meta-value?
I have no idea why my sortable function does not sort my "events" my a custom post-meta. I have a custom-post-type named wr_event… I have my custom columns set up and my post-meta is shown in the ...