Hello,
For listing a taxonomy like category, you can use the [for each] shortcode. I just made an update that includes a new parameter to include all descendants like children, grandchildren, etc.
[for each=category term=parent-cat children=true]
[each name]
[/for]
For details, please see the documentation under Main Features -> Taxonomy -> For/Each. In addition to the method above, you can create nested loops to list each child level separately.
lovely!
it works like charm…
thanks for your quick response and update
uhm…
sorry for reopening the thread
but i tried to make the categories appear as links
in a simple form i used this code :
<ul>
[for each=category term=cat-name]
<li><a href="[each url]">[each name]</a></li>
{/for>
</ul>
it gave me a link that shows the name of category but the url of links is something like that :
http://localhost/wordpress/%5Beach url]
meaning that it doesn’t render the shortcode in link and exactly outputs the [each url]
did i something wrong or something else?
thanks
You could try like this:
<ul>
[for each=category term=cat-name]
<li>[each link]</li>
[/for]
</ul>