Articles of wp admin

Subscribers become Authors after Upgrade? / Mass Update of Users?

I have a site with ~30K users, and the vast majority have role ‘subscriber’ on the main blog. After upgrading from WPMU 2.9.2 to WordPress 3.0.1 I noticed that all 30,0000 users are appearing in the main blog’s “Author” dropdown in post-new.php. (Well, that is if it manages to load without crashing the browser…). To […]

Execute script only on certain admin pages

To solve this problem i’ve used this in my js file: var location = String(window.location); //only runs in post.php and post-new.php if(‘post.php’) != -1 ||‘post-new.php’) != -1 ) { } But it’s does not seem like i solid solution. Are there any other way?

Why can't I exclude private posts from this query?

My WP query to fetch some custom posts should exclude private posts, but this query is returning all posts, not just public ones: $wp_query = new WP_Query( ‘post_type=listing&post_status!=private&posts_per_page=9&meta_key=location_level1_value&orderby=location_level1_value&order=ASC&paged=’.$paged); I’ve also tried using post_status=-private, but that didn’t work either… What have I done wrong?

WordPress and bbPress Login conflicts?

For some reason, if I log into my WordPress dashboard, I get logged out of my bbPress forum. When I log into my bbPress forum, I get logged out of WordPress. I followed all of the instructions correctly, and the installation told me it validated my information and it’s all correct, so why is it […]

Add a panel to edit post

I would like create a plug in that adds a panel of options to edit post page like the one added by All in One Seo but i cant find any good tutorial of any information about what is the correct action of filter tu use. Could you point me in the right direction? snippet?

How to add wordpress blog to Windows 2008 R2 site

One way is to install php and wordpress on server following WordPress Windows 2008 Web Server R2 IIS 7.5 setup. Is it possible to reroute url like to another ip address and use linux host to do job?

How to display multiple custom columns in the wp-admin users.php?

I’m using the manage_users_columns to display a custom field I create in the usermeta database called company. My code is as follows: function mysite_column_company( $defaults ) { $defaults[‘mysite-usercolumn-company’] = __(‘Company’, ‘user-column’); return $defaults; } function mysite_custom_column_company($value, $column_name, $id) { if( $column_name == ‘mysite-usercolumn-company’ ) { return get_usermeta($id, ‘company’); } } add_action(‘manage_users_custom_column’, ‘mysite_custom_column_company’, 15, 3); add_filter(‘manage_users_columns’, […]

WordPress disable 'Install Themes' tab

Can someone help me disable the Install Themes link from the WordPress back-end?

Creating a theme options page

I’m currently using Ian Stewart’s A Sample WordPress Theme Options Page trying to create an inputfield and two textareas. Probably overlooking something somewhere I seem to be having some difficulties adding the second textarea. Does someone know what I’m doing wrong perhaps? Here’s the code I’m currently using: <?php add_action(‘admin_init’, ‘theme_options_init’); add_action(‘admin_menu’, ‘theme_options_add_page’); /** * […]

Moving wp-admin to a different to a subdomain

I am trying to move just the wp-admin side of things to a different server, in order to not have admin traffic impact end-user activity. Any best practices for handling this. I’ve actually done this already, I just want to see if someone has a better way to do this.