Articles of screen options

Add simple field column to the posts screen

I know that manage_posts_columns is the hook for managing the column in post screen. I can add a column with following code, // add new column hook add_filter(‘manage_posts_columns’, ‘add_new_column_in_posts’); function add_new_column_in_posts($columns) { $columns[‘premium’] = ‘Premium’; return $columns; } My question is, how can I feed the simple_field value for that column?

'Screen Options' is missing. Where should I start troubleshooting?

My plugins are updated, my WordPress core is upgraded, and I don’t have anything too fancy on the website. Yet ‘Screen Options’ is missing. Where should I begin troubleshooting?

WordPress Screen options does not show any fields

I have a WordPress installation with a modified TwentySeventeen theme. When on any page of the admin I can click the “Screen options” tab and it expands but it is completely empty. Nothing in my theme is disabling this feature as far as I can find. If I read the WordPress manual pages correctly, it […]

Remove Category description textarea

For a custom taxonomy I have created. For each new item, the description field is showing. I would like to hide the description textarea ( Since you can see from the image that I am using an advanced custom field for the description ). I know there is a way to do it. Can anyone […]

Recognising a screen size change

I trying to understand what is happening with the WordPress theme that I am using. The menu is found on the right hand side of the page and when the window size is made smaller it changes to a single drop down from the middle (for smaller devices). On inspection I can see that there […]

Sorting editor screen items

When new users log into our site they have to organize a number of screen options in order to begin creating custom fields and editing the site. I would like to force a specific order in which these are displayed. Is there a way to force the sort on the edit screen?

get_current_screen() inside add_action('admin_menu')

I am successfully using get_current_screen(); to get the post_type to decide whether to manipulate a meta box or not. I also need to use it in: add_action(‘admin_menu’, ‘infographicMetaBox’); function infographicMetaBox() { // … $screen = get_current_screen(); if(‘post’ != $screen->post_type) return; // … } however it doesn’t seem to be available in that hook function (maybe […]

Issue with contextual help overwriting existing content

I’m missing something here: function page_help($contextual_help, $screen_id, $screen) { if ($screen_id == ‘page’) { $contextual_help = ‘ <h5>Shortcodes</h5> <p>Shortcodes help</p> ‘.$contextual_help; return $contextual_help; } elseif ($screen_id == ‘post’) { $contextual_help = ‘ <h5>Post help</h5> <p>Help is on its way!</p> ‘.$contextual_help; return $contextual_help; } } add_filter(‘contextual_help’, ‘page_help’, 10, 3); The code is inserting into the correct […]

WordPress custom setting page – add flashing message

I have a custom settings page for my plugin that has in the same page a submit button and a link like By now I can check the wpnonce successfully as well as show the message. The problem is: when I click the link to perform it’s action and then submit my form, the […]

Where did the screen options menu go?

Where did the screen options menu go? I can’t seem to find it anywhere in the new “improved” admin interface. Screenshots from the dashboard page: