How to show the current catorgy and tags for a page - php
Posted: Sat Nov 17, 2018 9:55 pm
How can I show the current catorgy and tags for a page?
I found something like this in the docs:
<?php
$items = getCategories();
foreach ($items as $category) {
// Each category is an Category-Object
echo 'Category name: ' . $category->name();
But obviously it will show all categories and just the onces that belong to a page.
I found something like this in the docs:
<?php
$items = getCategories();
foreach ($items as $category) {
// Each category is an Category-Object
echo 'Category name: ' . $category->name();
But obviously it will show all categories and just the onces that belong to a page.