|Template: List Categories Links|
Categories are core to WordPress and their intended use are to organize blog posts. Xidipity extends this functionality to include the contents of the media library. WordPress categories are hierarchical and they are assigned a role of parent or child. Assume the following category list.
The categories assigned to the role of parent are as follows.
Nature Photos is a parent without children.
The categories assigned to the role of child are as follows.
Museum and Art Gallery share both parent and child roles. They are a child to Vacation Photos and a parent to their children. This understanding is important when categories are created and is important when a category is a parameter of a template. Multiple categories are acceptable but must be separated by a comma.
The purpose of this template is to display a filtered hierarchical list of category titles.
<!-- wpX:LIST/CATEGORIES --> <div class="bdr:bas-2 bdr:lt-so-3x bkg:tint-bas-1 cnr:arch-sm fx:r fxa:1 fxc:3"> <div class="pad:hrz+0.5"> <span class="fnt:siz-lg-5x sm)fnt:siz-lg-6x"><i class="icon:tb_lst_unordered"></i></span> </div> <div class="pad:hrz+0.5"> <h5>Category List</h5> <div> <span class="pad:rt+0.125"><i class="icon:paperclip"></i></span> <span class="fnt:wgt-500">#title#</span> </div> </div> </div> <div class="mce[dsp:none]">[clst css='#css#' bullet='#bullet#' depth=#depth# active='#active#']#category#[/clst]</div> <!-- /wpX:LIST/CATEGORIES -->
Template may scroll horizontally in some circumstances.
The icon tag used in this demo is from Google.