Articles of wp admin

How can I remove the “Add New” button in my custom post type?

I have many custom post types that need the Add [custom post type] feature but I have a custom post type of “About” and I do not need to “Add New” about to the about custom post type. So I want to remove the button on top that says “Add About” This is what I […]

remove_meta_box for all post types doesn't seem to work

To remove a metabox from all post types at once, using a foreach seems like the logical thing to do. However it doesn’t always work and I don’t understand why. For examlple viewing the “Post” post type the following only removes the trackbacksdiv : function remove_metabox_from_all_post_types() { $post_types = get_post_types(); foreach ( $post_types as $post_type […]

WordPress address URL keeps dropping the www

My WordPress Address (URL) in general settings keeps losing the www from the URL – I type in and it saves and works fine. Next time I go in the address has changed to So again I change it, I get logged out and I log back in and it looks fine until […]

Why does the My Site dropdown show only a single domain?

I ran a Network Update today from Network -> Update Network, and since then all the sites, and all the links to sites within my Admin area reference the same domain. The domain it uses is relative to the domain I’ve logged into. In one example I logged into my primary domain, and now WP […]

Admin pages have no content

Not the usual white screen of whatever horror, my site is shown normally until you go to the admin dashboard. While the dashboard (or the admin menu if you will) is visible and responds accordingly, the content is not shown for any of the sections/pages. Except for one two things: adding a post and editing […]

Invalid post type when click “Filter” or “Apply” button in WordPress admin Post list

I need your help to resolve 1 Issue in WordPress admin page. I’m using WP 3.7.1 and twentytwelve template. I have some posts and pages. Currently, when I click Filter or Apply button in Post/Page list, it always shows the error “Invalid Post Type” and the URL looks like this . post_type=&_wpnonce=54fb54b00f&_wp_http_referer=%2Fwp-admin%2Fedit.php&action=-1&m=0&cat=0&paged=1&mode=list&action2=-1 I tried to […]

WP-Admin not working properly at WordPress multisite with subdirectories

I have recently installed a WordPress Multisite Blog on my domain. Everything is working fine, except for wp-admin of the subsites: I can access wp-admin of a subsite, but css is not loaded and when I try to click on a navigation link I get the wordpress “File not found” error. That is because it […]

How can I delete all inactive widgets?

I want to cleanup all inactive widgets. I tried following snippet as suggested by this answer Script to remove all inactive widgets?. $sidebars_widgets = get_option( ‘sidebars_widgets’ ); $sidebars_widgets[‘wp_inactive_widgets’] = array(); update_option( ‘sidebars_widgets’, $sidebars_widgets ); I also tried deleting option sidebars_widgets directly from the options table. But after page is refreshed, old value is restored with […]

Plugin: How to make links in admin page open up inside of the admin panel

In writing my plugin, I have added my menus and submenus to the admin page. The pages load and function as intended. What I am trying to do is create some links inside of these pages that will pass a parameter to a new page. I am close to accomplishing this but the page always […]

WP-Admin edit.php & post.php slowdown after import of 10k users

Situation: Clean wordpress install No plugins VPS server 5.2ghz / 4gb RAM (Default Directadmin) Import of 10k users Problem: WP-Admin edit.php and post.php take >4sec to load. A custom post type without the ‘Author’ support loads quickly What I tried:, didn’t work Question: What to do to get it fast again?