Archives for February, 2012
Another conditional tags you can use to redirect user with specific role to specific page after login. Insert this code to your function.php
Open your .htaccess file in your wordpress root folder and add this rewrite rule to change yourblog.com/wp-login.php in yourblog.com/logins or somethings else
When you create new page's template you can decide to limit the access to user with specific role; for exaple author, when unregistered user or user with different role try to access to that template will be kicked our to the "error.php" page. Funny!!!
If you are planning to develop a mobile version of your blog, you may think this is a usefull function, you just need to use it directly in your template such as a conditional tag.
21
Feb
How to move Wp Admin Bar
This is a cool snipped, using this code you'll be able to move at the bottom the newest wordpress admin bar (i hate), just apply code in your function.php
21
Feb
How to Create a Postroulette
This hack for wordpress will redirect user to a random post, after saving this snippet in your function.php go on menu and create a link yourblog.dotcom/random, and people will be redirect to a random post called on the database.