https://github.com/tredmann/wp-portal-shortcodes
Set of shortcodes to add some portal navigation feature
https://github.com/tredmann/wp-portal-shortcodes
Last synced: about 1 month ago
JSON representation
Set of shortcodes to add some portal navigation feature
- Host: GitHub
- URL: https://github.com/tredmann/wp-portal-shortcodes
- Owner: tredmann
- License: mit
- Created: 2014-09-08T18:19:53.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-09T14:40:59.000Z (almost 12 years ago)
- Last Synced: 2025-01-13T20:40:55.553Z (over 1 year ago)
- Language: PHP
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
WP Portal Shortcodes
====================
Set of shortcodes to add some portal navigation feature
## Category-based Sitemap
With this shortcode you can build a sitemap grouped by categories.
### Usage
[category_sitemap/]
### Parameters
**`header`**
(default: `h3`) Tag for headings
**`header_class`**
(defaukt: `''`) Class for heading, when empty string no class output will be generated
**`list`**
(default: `ul`) Tag for list of posts
**`list_class`**
(default: `''`) Class for list, when empty string no class output will be generated
**`item`**
(default: `li`) Tag for list items
**`item_class`**
(default: `''`) Class for list items, when empty string no class will be generated
**`exclude`**
(default: `''`) Comma-seperated list of category ids to exclude
**`hide_empty`**
(default: `1`) Whether to show empty categories true (1) or false (0)
**`orderby`**
(default: `'name'`) Order key for category orderung. Available keys: id, name, slug, count
**`order`**
(default: `asc`) Sort order. Values: asc, desc regarding to `orderby`
### Example 1
[category_sitemap/]
Will generate something like
My Category