All Questions
25
questions
0
votes
1
answer
225
views
Sorting Users page admin column with ACF field
I have a CPT called Companies. I created an ACF relationship field called user_company that gets displayed in the Users profile page.
When a user registers, I have to go in and assign them to a ...
0
votes
0
answers
25
views
make two custom columns sortables
I have 2 custom columns, typeconsole and console:
add_filter('manage_edit-post_sortable_columns', function( $columns ) {
$columns['typeconsole'] = 'typeconsole';
$columns['console'] = ...
1
vote
1
answer
732
views
Admin multiple column sorting
This question seems simple enough, and I'm surprised that I don't find much while searching Google to find an answer. The only thing I've found is a pro plugin, so far.
I'd just like to be able to ...
0
votes
0
answers
216
views
How to sort custom posts including null meta-values in admin columns with meta_query?
SQL REQUEST
SELECT post.ID, month.meta_value, year.meta_value FROM wp_posts post
LEFT OUTER JOIN wp_postmeta month
ON month.post_id= post.ID AND month.meta_key='mcv_end_month'
LEFT OUTER JOIN ...
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['...
2
votes
0
answers
597
views
Custom column sorting in WordPress admin post table
I have made a custom column in user administration panel showing user meta data and registered it as sortable. Made a query action to sort it by the meta numerical value (the stored user meta data is ...
1
vote
1
answer
3k
views
Advanced Custom Fields: Sorting custom columns with custom fields sorts only by date
I have a custom post type – “members”. With help of Advanced Custom Fields(AFC) I’ve created a Field Group with 5 fields and assigned that group to my “members” post type.
I followed this article to ...
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 ...
0
votes
1
answer
127
views
display wordpress user who published a pending post of another user
I have a custom post type, when I view my posts of this type in the dashboard I see:
Title Author Date Added as well as a few more I have added
My question is how can I display (like the author ...
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 ...
0
votes
1
answer
1k
views
Custome column sort by date not title
I've created a custom column. Currently they are automatically sorting by title however i want them to sort by date. I've tried adding a "query_post" like:
query_posts('&post_type=project&...
5
votes
1
answer
3k
views
initial sort order for a sortable custom column in admin
I have created a number of 'views' column in the admin area of my posts. There are several tutorials for this and I did in fact use a number of these to arrive at my end result.
It works as expected ...
-1
votes
1
answer
605
views
Can't sort custom column on user.php by number / meta_value_num?
Everything else works fine but it's still not sorting by number.
Would just like to know what I'm doing wrong here
Here's the code
function add_user_columns( $defaults ) {
$defaults['...
1
vote
1
answer
1k
views
Vertical alphabetically post columns
I need to create a 9 column list that outputs posts sorted vertical and alphabetically. I'm getting closer, but still not there. I have two separate loops I'm working with.
The first loop I have the ...