Front-end Web Developer | Tampa, FL

Posts Tagged ‘tags’

How to create button tags in WordPress

Posted on: September 14th, 2010 by admin No Comments


Log in on your server and find folder: /wp-includes/ ,  “the_tags” located in file category-template.php about line 840


The string must looks like:


{CODE type:php;}
$term_links[] = ‘<a href=”‘ . $link . ‘” rel=”tag”>’ . $term->name . ‘</a>’;


Now you can add any HTML code for you tags links. For example add < span > inside tag < a >


{CODE type:php;}
$term_links[] = ‘<a href=”‘ . $link . ‘” rel=”tag”><span>’ . $term->name . ‘</span></a>’;


How to create stretch buttons view my last lesson.


I hope this small lesson will help you. 🙂