I understand how to use this template tag as shown here:
If I use it twice with that  changed to something else (like 1 or 2) it will give me the other category names. Fine till here.
Now, I was wondering if I would like to put dynamically a link (anchor) around the last part:
$cat->cat_nameso that it will become actually a link to that category… what code do I need? I can do it “hardcoded” but I would like to use something like the bloginfo(url)/cat_name – is it possible?
- The topic ‘need PHP help for get_the_category’ is closed to new replies.