When I echo get_permalink() in a function that's called from archive.php, it reflects the permalink of the last post that's assigned to the category.
How can I echo the permalink of the category page instead?
|
When I echo get_permalink() in a function that's called from archive.php, it reflects the permalink of the last post that's assigned to the category. How can I echo the permalink of the category page instead? |
|||
|
|
|
Here you go mate:
http://codex.wordpress.org/Function_Reference/single_post_title |
|||
|
|