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

Post Reply
Jr. Bludit
Posts: 2
Joined: Wed Jan 02, 2019 7:08 pm
Location: Munich

Thu Jan 03, 2019 9:54 pm

it is actual:
all categories and / or tags in the sidebar.
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.
User avatar
Site Admin
Posts: 1486
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich

Fri Jan 04, 2019 10:43 am

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": ... ge.php#L33
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply