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

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

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.
User avatar
Edi
Site Admin
Posts: 3120
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply