How to add nofollow to all blogroll in WordPress
Filed under Labs
By adding below code to your functions.php you can make a nofollow links to your WordPress blogroll bookmarks.
<?php
function no_follow_links( $links ) {
foreach($links as $link) {
$link->link_rel .= ' nofollow';
$link->link_rel = trim($link->link_rel);
}
return $links;
}
add_filter('get_bookmarks', 'no_follow_links');
?> |
Posts you may like:
Delete records within a specific Range from MySQL table
If you want to delete a range of records from MySQL table then you can …
php pagination code example using MySql database
Here is a working code for pagination using PHP and MySql database. Its is tested …
How to include php headers on html site
PHP is a powerful language for web development, it have many in built functions. Here …
Meta refresh tag HTTP-EQUIV “REFRESH”
The refreshing time of a webpage can be define by using html tag HTTP-EQUIV “REFRESH”. …
Open link in a new window
Here is some ways to make html links for a webpage, it will be useful …