Get category link and title outside of the Loop

Radi se o fajlu category.php, single_cat_title(); samo prikaze naziv kategorije bez linka. Ovaj kod prikazuje i link i naziv kategorije

$categories = $wp_query->query_vars;
$this_category = get_category_by_slug( $categories['category_name'] );
echo '';

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.