Whale-kit examples

By | January 13, 2022

[wk_terms/]

Show children in Lewis Carroll category, Lewis Carroll category has id = 5, hide_empty=0 – show empty categories:

[wk_terms hide_empty=0 child_of=5 /]

All categories and tags, font size depending on the number of items:

[wk_terms hide_empty=0 taxonomy='array("category","post_tag")' size_of_count=1 /]

Exclude a category The Rabbit id=10 and all childs:

[wk_terms exclude_tree=array(10)]

All categories numbered list with stamp id:

[wk_terms hierarchical=1 taxonomy=category
lv_tmpl='<ol>$elements\\n</ol>'
el_tmpl='<li> <a href="$href">$name</a> ($id) <sup>$count</sup>$childs</li>\\n'
/]

  1. Lewis Carroll (5) 1
    1. ALICE’S (6) 5
      1. A Caucus-Race (9) 3
      2. A Mad Tea-Party (12) 2
      3. Down the Rabbit-Hole (7) 0
      4. Pig and Pepper (11) 5
      5. The Pool of Tears (8) 2
      6. The Rabbit (10) 6
    2. The hunting of the Snark (30) 0
    3. Through the looking glass (29) 1
      1. Looking-Glass house (31) 3
      2. Looking-Glass Insects (33) 0
      3. The Garden of Live Flowers (32) 2
      4. Tweedledum and Tweedledee (34) 0
  2. Plugins (4) 4
  3. Uncategorized (1) 1

Sort categories by number of posts without hierarchy:

[wk_terms orderby=count order=ASC show_count=1 hierarchical=0 /]

Collapse categories

[wk_terms collapse=1 hierarchical=1 /]

for this example add css code!

One thought on “Whale-kit examples

  1. Pingback: Whale-kit – YStepanov/wpEn

Leave a Reply

Your email address will not be published. Required fields are marked *