Questions tagged [screen-columns]
The screen-columns tag has no summary.
26 questions
0 votes
1 answer
78 views
Hide custom column in admin template screen (Elementor) [closed]
My plugin adds a custom column to admin posts and pages screens but it's also adding it to the Templates (Elementor) screen. I know users can hide this themselves, but I'd rather do it in my plugin. ...
0 votes
1 answer
463 views
custom filtering admin columns
i'm trying to add custom filters to a CPT job-offer, for example, i'm starting by locations. the filters works fine except when i try to filter by all locations. this is my code function ...
0 votes
1 answer
778 views
Wordpress not displaying columns to hide/show on screen options
I have installed Wordpress 5.8.3 which is at the moment the latest version available. I'm trying to hide certain columns within the posts dashboard, but for some reason I doesn't have the option to do ...
1 vote
1 answer
565 views
Sort CPT archive by order prevents sorting in admin
I've activated the Order feature for my 'portfolio' CPT and have managed to arrange my 'portfolio' posts according to respective Order values I've provided. Unfortunately, I've found that this code ...
1 vote
3 answers
2k views
Sorting taxonomy columns by meta value numeric
Slowly going crazy over trying to make taxonomy admin columns sortable by a custom field number. I have a custom taxonomy called "typer" and these taxonomies have a custom field called "prioritet". ...
6 votes
1 answer
375 views
Modify column_author in WP_Comments_List_Table
Is it possible to modify the values in the author column in the edit-comments.php section of the backend? A hook? I want to change the mailto field for the commenter's email to include a subject and ...
5 votes
2 answers
4k views
How to set default visible columns in posts list, for all users
Is there a way to set default visible columns in posts list, for all users?
1 vote
1 answer
2k views
Sorting custom admin column by value
I got a custom post type and link custom posts (issues of a magazine) to the main posts (articles) with relationship ACF. I registered a custom admin column to show issues linked to articles in the ...
9 votes
2 answers
10k views
How to make a custom column on the Users admin screen sortable?
I am in the process of adding an additional column to the Users admin screen to display the company for each user. I have been successful in getting this column to show in the table, but I am really ...
3 votes
1 answer
5k views
Add custom column at custom posts list
I want to have a column (e.g Send Email) in my custom posts (books) list. In each row there should be a button (Send) and when I click on it I want to send an email. I have seen is a hook ...
0 votes
1 answer
256 views
Problem with admin columns
The title is showing but the content is empty.. I tried following few tutorials time after time but i guess i miss something.. How can i get it to echo 'test' on each col please? // ADD NEW COLUMN ...
0 votes
1 answer
4k views
Getting error Parse error: syntax error, unexpected 'add_filter' (T_STRING), expecting function (T_FUNCTION)
I am getting error Parse error: syntax error, unexpected 'add_filter' (T_STRING), expecting function (T_FUNCTION) when i write the below code in my plugin class file. but this is the only easiest ...
1 vote
1 answer
97 views
Adding Page URL to the Pages Admin Table
I want to add the Page URL as a custom column to the Pages admin table. Here is where I am at with the code. Code is in the theme's functions.php. function lrh_modify_page_table( $column ) { $...
3 votes
1 answer
732 views
Add column for attachment file size
EDIT. I got this working, see my own answer below: Now, if someone has any clue as to how I can get this sortable, please chime in! :) ---------------- Original question ---------------- How can I ...
2 votes
1 answer
3k views
how to display "Edit | Quick Edit | Trash | View" in custom WP_List_Table column?
I have removed "Post Title" in admin column, and created a custom column. Is there any way to the display "Edit | Quick Edit | Trash | View" link?