2012 readersBy default, WordPress automatically converts all links from the post content to nofollow. If you prefer your links to be dofollow, just read and use the following recipe.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!How to automatically remove the Nofollow from your posts
4768 readersA useful tool to have in in your WordPress toolbelt is the ability to quickly and easily search for, find, and replace specific strings of text directly from the MySQL database. We can do this by entering SQL queries either directly or through one of those handy interface applications like phpMyAdmin, which seems like one
4211 readersBy default, when the blog admin left a comment on his blog, WordPress use the name in the comment css class. This is useful for styling, but it will also let people know about your admin login name. If you want to hide this info, read this recipe.Looking for WordPress hosting? Try WP Web Host.
3326 readersHTML in comments can be a good things, but many times people abuse it, for example by inserting links. In this recipe, I'll show you how you can automatically get rid of any HTML entered in your post comments.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it
4357 readersBy default, WordPress automatically turns urls left in the comment form into links. This can be useful, but as there's lots of spammers on the internet, you might want to remove this feature. Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!WordPress hack: Remove autolinks
6041 readers
PHP
add_filter('nav_menu_css_class', 'my_css_attributes_filter', 100, 1);
add_filter('nav_menu_item_id', 'my_css_attributes_filter', 100, 1);
add_filter('page_css_class', 'my_css_attributes_filter', 100, 1);
function my_css_attributes_filter($var) {
return is_array($var) ? array_intersect($var, array('current-menu-item')) : '';
}
Visit wpsnipp.com for details on how to setup this WordPress snippet. Share this post. Facebook | StumbleUpon | Delicious | Tweet It | Digg This | DesignBump-It | DesignPoke-it
8280 readers
PHP
add_filter( 'ngettext', 'wps_remove_theme_name' );
if(!function_exists('wps_remove_theme_name')) {
function wps_remove_theme_name($translated) {
$translated = str_ireplace('Theme %1$s with', '', $translated );
return $translated;
}
}
Visit wpsnipp.com for details on how to setup this WordPress snippet. Share this post. Facebook | StumbleUpon | Delicious | Tweet It | Digg This
3668 readersStrings are a very important kind of data, and you have to deal with them daily with web development tasks. In this article, I have compiled 10 extremely useful functions and code snippets to make your php developer life easier.Like CatsWhoCode? If yes, don't hesitate to check my other blog CatsWhoBlog: It's all about blogging!10
1549 readersThere will be a new function in the coming 3.0 version, which will create a shortlink to a post. At default it will be in the header of your frontend. A shortlink would always be with ?p= syntax and the ID of the post. <link rel='shortlink' href='http://bueltge.de/?p=717' /> To use the shortlink in your theme,
8307 readersWhen building a site for a client, it can be useful to be able to modify the dashboard footer text. This recipe is going to show you how you can easily do it using a hook.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!WordPress tip