Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    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.

    Thread Starter patterenuslogic

    (@patterenuslogic)

    lovely!
    it works like charm…

    thanks for your quick response and update

    Thread Starter patterenuslogic

    (@patterenuslogic)

    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

    Plugin Author Eliot Akira

    (@miyarakira)

    You could try like this:

    <ul>
      [for each=category term=cat-name]
         <li>[each link]</li>
      [/for]
    </ul>
    Thread Starter patterenuslogic

    (@patterenuslogic)

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘nested category and subcategory list’ is closed to new replies.