[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 /]
- ALICE
- Caterpillar
- Caucus-Race
- CHAPTER1
- CHAPTER2
- CHAPTER3
- CHAPTER4
- CHAPTER5
- CHAPTER6
- CHAPTER7
- Lewis Carroll
- Mouse
- Pepper
- Pig
- Plugins
- Pool
- Rabbit
- Suddenly
- Uncategorized
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'
/]
- Lewis Carroll (5) 1
- ALICE’S (6) 5
- A Caucus-Race (9) 3
- A Mad Tea-Party (12) 2
- Down the Rabbit-Hole (7) 0
- Pig and Pepper (11) 5
- The Pool of Tears (8) 2
- The Rabbit (10) 6
- The hunting of the Snark (30) 0
- Through the looking glass (29) 1
- Looking-Glass house (31) 3
- Looking-Glass Insects (33) 0
- The Garden of Live Flowers (32) 2
- Tweedledum and Tweedledee (34) 0
- ALICE’S (6) 5
- Plugins (4) 4
- Uncategorized (1) 1
Sort categories by number of posts without hierarchy:
[wk_terms orderby=count order=ASC show_count=1 hierarchical=0 /]
- Tweedledum and Tweedledee
- Looking-Glass Insects
- The hunting of the Snark
- Down the Rabbit-Hole
- Through the looking glass1
- Uncategorized1
- Lewis Carroll1
- The Garden of Live Flowers2
- The Pool of Tears2
- A Mad Tea-Party2
- Looking-Glass house3
- A Caucus-Race3
- Plugins4
- ALICE’S5
- Pig and Pepper5
- The Rabbit6
Collapse categories
[wk_terms collapse=1 hierarchical=1 /]
for this example add css code!
1 2 3 4 5 6 7 8 9 |
.widget_wk_terms_widget ul{ border-left: dotted 1px #DEDEDE; padding-left: .2em } .widget_wk_terms_widget ul.childs { margin-left: 0.5em; } li.cat_item>a:before{ content:' ' } li.cat_has_children>a:before { content:'+' } li.current_cat > a:before { content:'-' } li.current_cat > a {text-decoration: underline} li.current_cat_ancestor > a:before { content:'-' } .widget_wk_terms_widget li sup { font-size: 9px; margin: -5px 0 0 5px; vertical-align:top !important; } .widget_wk_terms_widget li a{ vertical-align:bottom !important; margin-top: 5px;} |
Pingback: Whale-kit – YStepanov/wpEn