Implementing this in Oblique theme
-
Hi, I’ve installed the plugin and have been reading the documentation and this support forum, but since php is pretty new to me I’m not sure how to exactly adjust the code in order to show the images.
The theme has a template-tags.php which seems to be used to retrieve the category name and create a link to it.
That code looks like this:
$category = get_the_category(); if($category){ $cat = '<a href="' . esc_url(get_category_link($category[0]->term_id )) . '">' . esc_attr($category[0]->cat_name) . '</a>'; }
How should I change this in order for it to show the image I associated with a category instead of the name?
- The topic ‘Implementing this in Oblique theme’ is closed to new replies.