Support » Plugins and Hacks » Tag group name replace
3 years, 2 months ago
I hope you’re…
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:
Sh/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,
EDIT: forgot to add my code
echo bloginfo('url') . '/' . $tag->term_group . '/' . $tag->name;
echo bloginfo('url') . '/' . $tag->term_group_name . '/' . $tag->name;