Show only specific category | WordPress.org

[ad_1]

@rapx21

The original topic has been closed, so I’ll start a new one.

As described at https://developer.projectdmc.org/reference/functions/wp_list_categories/
you need to specify the option include and the category ID.

[categories include=’12’]

For a clear example, see the following page (Japanese):
https://wp-design.jp/template-tags/311.html#index_id10

However, if 12 is the parent category and that has 13, 14 and on are child categories, and you want to display all categories, you must write
[categories include=’12,13,14′]and all categories. If the number of categories increases, you will need to manually add categories as they come up.

I(ChatGPT) created a plugin that does the same thing , listing only the categories you specify. I’ve made it so that you can easily specify options. No warranty. (Japanese)
[specific-cat-list parent-cat=”nihil” option=”list”]https://pinefield.asia/portforio/wordpress-plugin-that-displays-a-list-of-specified-categories/

  • This topic was modified 11 minutes ago by genepine.
  • This topic was modified 3 minutes ago by genepine.
  • This topic was modified 2 minutes ago by genepine.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer