| 开发者 |
egolacrima
wppuzzle avovk |
|---|---|
| 更新时间 | 2026年8月30日 22:41 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[htmlmap].[htmlmap] shortcode accepts these optional attributes:
exclude: post or page IDs to omit, for example [htmlmap exclude="445,446"].exclude_cat: category IDs to omit, for example [htmlmap exclude_cat="1,34"].showpages: display the list of pages, for example [htmlmap showpages].hidecloud: hide category navigation, for example [htmlmap hidecloud].showdescription: display category descriptions, for example [htmlmap showdescription].hidedate: hide post publication dates, for example [htmlmap hidedate].hidecount: hide post counts in category headings, for example [htmlmap hidecount].[htmlmap exclude="3546,7398" exclude_cat="1,34" showpages hidecloud]
HTML structure and CSS classes
The shortcode preserves existing category heading IDs (cat_<term-id>), the
category navigation class (cat), and the empty-category class (null).
Additional classes are available for theme customisation:
htmlmap-post-list: each category's post list.htmlmap-post: each post list item.htmlmap-children: the list item containing child categories.htmlmap-empty-category: added alongside the legacy null class.htmlmap-category-description: a displayed category description.htmlmap-page-list: the optional pages list.htmlmap-page: each page list item.hierarchical-sitemap folder to /wp-content/plugins/.[htmlmap] to the page content.[htmlmap] in the block.hierarchicalsitemap_shortcode_html filter for the complete shortcode output.hidecount option that disables post counts in category names.hierarchicalsitemap_category_title_htmlhierarchicalsitemap_posts_list_htmlhierarchicalsitemap_pages_list_htmlshowdescription, which displays category descriptions.hidedate, which hides post publication dates.