Page 1 of 1

Single content with categories / tags in template "Blog X"

Posted: Thu Jan 03, 2019 9:54 pm
by blooditbloggus
Hello,
it is actual:
all categories and / or tags in the sidebar.
Request:
in a single content page the categories / tags belonging to this content should be shown.
Place: e.g. below the content.
Is there a plugin which does so ?
Thx in advance for your hints.

Re: Single content with categories / tags in template "Blog X"

Posted: Fri Jan 04, 2019 10:43 am
by Edi
You can add the following to the file page.php of the theme:

Code: Select all

if ($page->category() ==! "") {
    echo '<li><a href="'.HTML_PATH_ROOT.$url->filters('category').'/'.strtolower($page->category()).'">'.$page->category().'</a></li>';
}
How this can be done shows for example the theme "Keep It Simple":

https://github.com/bludit-themes/keep-i ... ge.php#L33