Single content with categories / tags in template "Blog X"
-
- 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.
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.
- Edi
- Site Admin
- Posts: 3121
- 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:
How this can be done shows for example the theme "Keep It Simple":
https://github.com/bludit-themes/keep-i ... ge.php#L33
Code: Select all
if ($page->category() ==! "") {
echo '<li><a href="'.HTML_PATH_ROOT.$url->filters('category').'/'.strtolower($page->category()).'">'.$page->category().'</a></li>';
}
https://github.com/bludit-themes/keep-i ... ge.php#L33
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets