All Questions
8
questions with no upvoted or accepted answers
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
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 ...
1
vote
2
answers
519
views
Sort by site/blog column in Multisite
I use WordPress Multisite and made a plugin that adds columns with some data. My code is based on this WP Engineer article.
The key function in WordPress Multisite is manage_sites_custom_column. And ...
0
votes
1
answer
227
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'] = ...
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 ...
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 ...
-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['...