So, I am using this to get the URL:
<a href="/category/<?php foreach((get_the_category()) as $category) { echo $category->cat_name . ' '; } ?>">
Which is outputting:
http://ift.tt/15QSrDw
instead of:
http://ift.tt/15LRk6X
How can I make it do the latter?
Much thanks.
Aucun commentaire:
Enregistrer un commentaire