Tag group name replace
-
I hope you’re…
Hi everyone,I’m completely bogaged with (what I assumed would be fairly easy) string replace query.
I have a bunch of tags that I would like to link to posts rather than tags page. So the url reads:
url_address/%tag_category_name%/whateverinstead of:
url_address/tag/whateverSh/Could I use a string replace with this?
$tag->term_group outputs the tag category number which I would like to replace with the tag_group_name ($tag->term_group_name is not a valid argument).
Hope my ramblings make sense to someone out there.
Thanx for looking,
SamEDIT: forgot to add my code
echo bloginfo('url') . '/' . $tag->term_group . '/' . $tag->name;
to…
echo bloginfo('url') . '/' . $tag->term_group_name . '/' . $tag->name;
- The topic ‘Tag group name replace’ is closed to new replies.