WordPress SEO 本领:内镣居呕化
return str_replace('<a href='chinaz/web/2011/0125/, '<a rel="nofollow" href='chinaz/web/2011/0125/, $text); //给标签云里的链接减上 rel="nofollow" //给 the_tags() 死成的链接 减上 rel="nofollow" add_filter('the_tags', 'cis_nofollow_the_tag'); function cis_nofollow_the_tag($text) { return str_replace('rel="tag"', 'rel="tag nofollow"', $text); function cis_nofollow_wp_list_categories( $text ) { } return $text; //给 wp_list_categories() 死成的链接减上 rel="nofollow" add_filter( 'wp_list_categories', 'cis_nofollow_wp_list_categories' ); $text = stripslashes($text); $text = preg_replace_callback('|<a (.+?)>|i', 'wp_rel_nofollow_callback', $text); } //给 the_category() 死成的链接减上 rel="nofollow" add_filter( 'the_category', 'cis_nofollow_the_category' ); function cis_nofollow_the_category( $text ) { $text = str_replace('rel="category tag"', "", $text); $text = cis_nofollow_wp_list_categories($text); function cis_nofollow_tag_cloud($text) { return $text; //给 comments_popup_link_attributes() 死成的链接减上 rel="nofollow" //给 the_author_post_link 死成的链接减上 rel="nofollow" (滥觞:bolo的专客) add_filter('the_author_posts_link', 'cis_nofollow_the_author_posts_link'); add_filter('wp_tag_cloud', 'cis_nofollow_tag_cloud'); function cis_nofollow_the_author_posts_link ($link) { return str_replace('</a><a href='chinaz/web/2011/0125/, '<a rel="nofollow" href='chinaz/web/2011/0125/, $link); } add_filter('comments_popup_link_attributes', 'cis_nofollow_comments_popup_link_attributes'); function cis_nofollow_comments_popup_link_attributes () { } echo ' rel="nofollow"'; } |
利用讲具 告发
疙証屏
论坛元老
|
沙收
揭晓于 2016-7-8 10:29:58
|
只看该做者
|