hallowebsite Navigation Shortcodes
Flexible shortcodes for subpage navigation, post and CPT lists, category posts, taxonomy term trees and WordPress menus. The output is clean, unstyled markup with current-item highlighting and an optional accessible nav wrapper.
Download v2.1.3Overview
hallowebsite Navigation Shortcodes is a set of flexible shortcodes that output lists and navigations from your content: child pages of the current page, posts of a category, entries of any custom post type, taxonomy terms, or a WordPress menu. The output is a clean, unstyled list with an optional <nav> wrapper and highlighting of the current item. You can style it freely, e.g. with your Kadence palette. It's ideal for sidebars, sub-navigations, related-content blocks and sitemaps.
Features
[pages_nav]: subpages of the current (or any) page, with depth control.[post_list]: posts, pages or any CPT, filtered by taxonomy terms or IDs.[category_posts]: posts of a category (shortcut).[term_list]: categories, tags or custom taxonomy terms as a tree.[wp_menu]: a WordPress menu by name or theme location, as a flat list.- Highlights the current item, can exclude the current item, and offers an optional accessible
<nav aria-label>. - Aliases:
[post-list],[cat_list],[cat-list].
Examples
[pages_nav]
[pages_nav parent="42" depth="1" exclude_current="true"]
[post_list post_type="leistung" orderby="title" order="ASC"]
[post_list post_type="post" taxonomy="category" terms="news" per_page="5" show_date="true"]
[category_posts category="news" per_page="5"]
[term_list taxonomy="category" hide_empty="true" nav="true" label="Themen"]
[wp_menu menu="footer"]
[post_list]: attributes
| Attribute | Default | Description |
|---|---|---|
post_type | post | Any post type. |
parent, depth, first_layer_only | – / 0 / false | Hierarchy: current or an ID, depth (0 = unlimited). |
include_ids / exclude_ids | – | Comma-separated IDs. |
taxonomy, terms, term_ids, include_children | – / – / – / true | Filter by terms (slugs or IDs). |
per_page | 0 | Limit (0 = all). |
orderby / order | date / DESC | Sorting. |
show_date | false | Show the date. |
highlight_current / exclude_current | true / false | Mark or hide the current entry. |
nav, label, class | false / Navigation / – | <nav> wrapper, its aria label and a CSS class. |
Other shortcodes
[pages_nav]:parent(defaultcurrent),depth,first_layer_only,include_ids,exclude_ids,exclude_current,orderby(menu_order),order,label,class,nav(defaulttrue).[category_posts]:category(slug),category_id,include_ids,include_children,orderby,order,per_page,show_date,highlight_current,exclude_current,class.[term_list]:taxonomy(defaultcategory),parent,depth,hide_empty,orderby(name),order,class,nav,label.[wp_menu]:menuortheme_location,depth,class.
Styling example
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav a { color: var(--global-palette4); }
.sidebar-nav .current a { color: var(--global-palette1); font-weight: 700; }
The full reference with all CSS classes is under Settings → WP Navigation Shortcodes.
Changelog
Changed: - Rebranding: neuer Name „hallowebsite Navigation Shortcodes“, Autor hallowebsite, Plugin-URI https://hallowebsite.de/plugins/navigation-shortcodes/ - Keine funktionalen Änderungen.