How to allow html5 tag in WordPress

Just FYI… WordPress 3.2 includes an updated TinyMCE which allows HTML5 tags. It’s still under development but is fairly stable if you want to take the risk of running it now. The alternative is to write any posts requiring the tag with the visual editor turned off. As long as you don’t turn the editor … Read more

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);