An open API service indexing awesome lists of open source software.

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

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





My Category