Timeline for Dynamically output a class to an anchor tag depending on what tag is chosen
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 19, 2011 at 12:44 | comment | added | CookiesForDevo | Sure thing, instead of $tag->name use $tag->slug | |
Dec 19, 2011 at 1:51 | comment | added | Mr.Brown | One question: Is it possible to amend this piece of code to allow the use of the tags "slug" rather than the tag name itself? | |
Dec 19, 2011 at 0:44 | comment | added | Mr.Brown | Thanks for the help, this worked great and I like the flexibility of using both tags & custom taxonomies. | |
Dec 19, 2011 at 0:40 | vote | accept | Mr.Brown | ||
Dec 17, 2011 at 11:12 | history | edited | CookiesForDevo | CC BY-SA 3.0 |
added 8 characters in body
|
Dec 17, 2011 at 11:11 | comment | added | CookiesForDevo | This will work with the default tags and custom taxonomies — which is a bit more future proof. For the default tags, use 'post_tag'. | |
Dec 17, 2011 at 4:50 | comment | added | Mr.Brown | Is there any way to use actual tags rather than a custom taxonomy though? Id like to reserve those for my product categories. | |
Dec 17, 2011 at 4:46 | comment | added | Mr.Brown | Hmm...I will have to try this tomorrow morning, thank you for the response! | |
Dec 17, 2011 at 3:00 | history | answered | CookiesForDevo | CC BY-SA 3.0 |