| 开发者 | desparza |
|---|---|
| 更新时间 | 2026年11月5日 21:40 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Tags with the slug featured or destacado in the taxonomies registered for the selected content types (for example post_tag, product_tag or non-hierarchical custom taxonomies).
By default WordPress does not add tags or categories to pages. To enable them, add this code to the functions.php file of your theme or to a small plugin:
function fpct_enable_tags_for_pages() {
// Add post_tag to pages
register_taxonomy_for_object_type( 'post_tag', 'page' );
// Add category to pages
register_taxonomy_for_object_type( 'category', 'page' );
}
add_action( 'init', 'fpct_enable_tags_for_pages' );