page not updating with database

Maybe instead of using a tag, you could use get_post_meta() to retrieve a custom field? Set a meta field like featured and test to see if it’s set to one or something. $featured = get_post_meta($post->ID, ‘featured’, true); if ($featured === ‘yes’) echo ‘selected’; I hope I understood your question the right way and that this … Read more

Modifying the built-in behavior of ajax tag type-ahead functionality of WordPress

Very difficult. The value is hard coded in wp-admin/js/post.js. See wp-admin/js/post.dev.js tagBox.init() for more readable code: $(this).suggest( ajaxurl + ‘?action=ajax-tag-search&tax=’ + tax, { delay: 500, minchars: 2, multiple: true, multipleSep: postL10n.comma + ‘ ‘ } ); The only solution I can see: Unregister the script with the handle ‘post’ (see wp-includes/script-loader.php) and register a custom … Read more

Fixed layout for admin section

This is still to be confirmed but so far so good: What I did is open all the minified css related to the admin section and deleted theses parts @media only screen and (max-width:xxx px){…} whenever I found one. It seems to work and doesn’t mess with anything else, as far as I know. Of … Read more

WordPress Remove Submenus

Replace all occurrences of $current_user->user_login == ‘username’ with in_array(‘editor’, $current_user->roles). And you can remove the call to get_currentuserinfo(); as for the user information is available from the global variable $current_user. Here’s a code swap: add_action(‘_admin_menu’, ‘remove_editor_submenu’, 1); function remove_editor_submenu() { global $current_user; if(in_array(‘editor’, $current_user->roles)) { remove_action(‘admin_menu’, ‘_add_themes_utility_last’, 101); } } add_action(‘admin_init’, ‘remove_theme_submenus’); function remove_theme_submenus() { … Read more