Multi-site: removing /blog from posts

Let see if I remember this correctly. Go to http://yoursite.com/wp-admin/options.php Find permalink_structure. By default, the value should be /blog/%year%/%monthnum%/%postname%/ Change the value manually to whatever value you like. e.g /pressreleases/%year%/%monthnum%/%postname%/ or just /%year%/%monthnum%/%postname%/. Then Save Changes. Now visit http://yoursite.com/wp-admin/options-permalink.php and DON’T click Save Changes. It should flush the rules. If you click Save Changes it … Read more

Search post in all blogs in WPMU?

Take a look at WPMU Global Search plugin which can easily search through all blogs into your WordPress MU posts by post title, post content or post author. and if you are not looking for a plugin then just take a look at the code and see how it’s done.

wp_signon( $creds, false ); not working

Hope this helps someone else. After hours of debugging, I found out that under multisite setup, wp_signon ($creds, false) will not log you in. So you should either do: $user = wp_signon ($creds, false); wp_set_auth_cookie($user->ID); or $user = wp_signon ($creds, true);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)