How add Filter by Tags and by categories to custom post type in Gutenberg block

I need to add Filter by Tags and by categories to custom post type in Gutenberg block. I have created a CPT called "newsfeed" and it is displayed correctly in the page editor as shown in the following image.


but does not have the options Filter by Categories and by Filter by Tags like in the post type "Posts".

What can I do to enable these options?


This is the code I use to create the newsfeeds

function add_tags_categories_taxonomy_x5642() {     $  labels = array(         'name'              => _x( 'Feed Tags', 'taxonomy general name' ),         'singular_name'     => _x( 'Feed Tag', 'taxonomy singular name' ),         'search_items'      => __( 'Search Feed Tags' ),         'all_items'         => __( 'All Feed Tags' ),         'edit_item'         => __( 'Edit Feed Tag' ),          'update_item'       => __( 'Update Feed Tag' ),         'add_new_item'      => __( 'Add New Feed Tag' ),         'new_item_name'     => __( 'New Feed Tag' ),         'menu_name'         => __( 'Feed Tags' ),     );     $  args = array(         'labels' => $  labels,         'show_ui' => true,         'show_in_rest' => true,         'show_admin_column' => true,         'query_var' => true,     );     register_taxonomy('feeds_tags', 'newsfeed', $  args);          $  labels = array(         'name'              => _x( 'Feed Symbols', 'taxonomy general name' ),         'singular_name'     => _x( 'Feed Symbols', 'taxonomy singular name' ),         'search_items'      => __( 'Search Feed Symbols' ),         'all_items'         => __( 'All Feed Symbols' ),         'edit_item'         => __( 'Edit Feed Symbols' ),          'update_item'       => __( 'Update Feed Symbols' ),         'add_new_item'      => __( 'Add New Feed Symbols' ),         'new_item_name'     => __( 'New Feed Symbols' ),         'menu_name'         => __( 'Feed Symbols' ),     );     $  args = array(         'labels' => $  labels,         'show_ui' => true,         'show_in_rest' => true,         'show_admin_column' => true,         'query_var' => true,     );     register_taxonomy('feeds_symbols', 'newsfeed', $  args);      register_taxonomy_for_object_type('category','newsfeed'); } add_action('init', 'add_tags_categories_taxonomy_x5642');  function add_feed_post_type_x1234($  query) {     if ( is_home() && $  query->is_main_query() ) {         $  query->set('post_type', ['post', 'newsfeed']);     }     return $  query; } add_action('pre_get_posts', 'add_feed_post_type_x1234'); 

remove SLASH on single_post but KEEP on categories and parent pages

My current permalink structure is  /%category%/%postname%/  which produce urls as:
(category_base removed using "FV Top Level Categories" Plugin)

category:    ◀▬ SLASH is GOOD for directories & ↙ parent pages     page:      post:    ◀▬ but BAD for single_post, ↖ child pages &     page:     page:    ◀▬ standalone pages 

So, I want to
keep TRAILING SLASH "/" on:

  • categories and child categories
  • parent pages

remove TRAILING SLASH "/" on:

  • single_posts
  • standalone page (who don’t have any child pages)
  • child pages

AND "301" Redirect  "/"  version of these ↖ pages to NON  "/"  version pages

How to get all post categories without custom post type categories?


I am creating a Blog in wordpress.

I have a list of categories: Technology, Art, fashion, Home, Lifetime, Education, Business, Religion, Design and home, Marketing

In which some of these categories I am using only in Custom Post Type (Technology, Art, Fashion) and others only in Normal Posts (Home, Life, Education, Business, Religion, Design and home, Marketing).

When I created the custom pos type, I used the CPT UI plugin.

Now I need to get the list of categories that are only being used from normal posts to show them on my blog (). I tried to do the following but it returns all categories including CPTs:

$  categories = get_categories();   foreach($  categories as $  category) {     echo '<li class="cat-name"  . '>' . $  category->name . '</li>'; } 

I just need to show the categories: Home, Life, Education, Business, Religion, Design & Home, Marketing.

And exclude those that are being used in CPT. Please Help!

WordPress categories endpoint giving error 404

I have a WordPress blog, Librarier.


It’s giving me an error when we try to access some of the categories. But it works perfectly on others categories.

for example, these categories don’t work:

this category does work:


  1. Change category base on permalinks setting As some articles told me to do so enter image description here

Others When I tried to change only the case sensitivity on the endpoint, it works. (error 404) (working)

NOTE WordPress: 5.7.1

(Theme) Veen: 2.1.1


All-in-One WP Migration: 7.4.2

LiteSpeed Cache: 3.6.4

Site Kit by Google: 1.31.0

Veen Theme Functions: 2.1.4

WPForms Lite: 1.6.6

WPS Hide Login: 1.8.5

Yoast SEO Premium: 15.5

Schema markup for product categories and subcategories – how to?

I’ve been wondering about which Schema should I use for an e-commerce site of one of my clients’ website. Can’t show proper code and sensitive information, but I’ll try to explain what I’ve been thinking about.

Right here:

The author says that for category pages I should use ItemList Schema

<script type="application/ld+json">  {  "@context":"",  "@type":"ItemList",  "ItemListElement":  [    {   "@type":"ListItem",    "position":0,    "url":""   },    {    "@type":"ListItem",    "position":1,    "url":""    },    {    "@type":"ListItem",    "position":2,    "url":""    }   ]  } </script> 

Does anyone have an example of how it would look? For example, if I have a category with electric guitars with 5 subcategories that contain certain electric guitar models which would be listed in the schema ListItem. Is that the best schema type for this instance?

Second question – when it comes to subcategories, should I use ItemList Schema?

<script type="application/ld+json"> {     "@context": "",     "@type": "ItemList",     "url": "",     "numberOfItems": "2",     "itemListElement": [           {             "@type": "ListItem",             "position": 1,             "item": {               "@type": "Product",                   "image": "",                   "url": "",                   "name": "Product One",                   "offers": {                       "@type": "Offer",                       "price": "13.00",                       "priceCurrency": "USD",                       "url": ""                   }             }           },           {             "@type": "ListItem",             "position": 2,             "item": {               "@type": "Product",                   "image": "",                   "url": "",                   "name": "Product Two",                   "offers": {                       "@type": "Offer",                       "price": "12.00",                       "priceCurrency": "USD",                       "url": ""                   }               }           }     ] } </script> 

I know that it’s a bit of a gray area for Google when it comes to adding product information on category pages – does that apply also for the subcategory pages?

I would be so thankful for Your help and guidance <3 Cheers

WooCommerce Hidden Categories? 4 Categories Shown “18 items” shown on Categories page

I am having a weird issue with WooCommerce… When viewing my product categories, It shows that I have 18 total, but it only shows 4 of them.

The other categories show up when I go to create a product, I can see and select those categories on that page. But I have no items in those categories, no attributes attached to them, no tags, etc. I just cannot seem to remove them, or understand what is keeping them around.

Any ideas would be helpful. I am using the LUSION theme, with the elementor builder.

4 Total Categories, with 18 Items shown

enter image description here

Categorisation advice for SEO in order to rank categories [closed]

This is sort of long but probably an easy question for you all. Don’t let the text scare you, it’s an easy read.

I’m a webmaster who’s trying to set up a music store webpage. Reading about different SEO concepts and tips, and most importantly John Mueller’s famous quote on page juice, I’m currently contemplating how I may set up a long-term SEO plan for the shops webpage. Since user experience, ease of navigation and backlinks are extremely important, I have decided to implement the following for causes that will be later stated:

STEP ONE: Set up the webpage so that different categories are set up for each instrument, except an instrument of selection

STEP TWO: The page that will be getting the backlinks will be something by the line of musical instruments, which is going to be set as a category. The instrument of selection will be set as a subcategory of musical instruments, which will also be receiving lots of backlinks in itself.

STEP THREE: As the shop takes on more visitors, other instrument categories will be added to the "musical instruments" category, which will be receiving backlinks from then on. This process is repeated until most categories are taken under the umbrella of musical instruments, from which point on, the category musical instruments will be redirected to the homepage, and the instrument subcategories under it made into categories of the homepage, thus just categories in themselves.

The rationale is as follows:

Backlink building will be most focused on the main keyword, which is quite a long process, given the seo competition being very harsh where I live at, I found it would be the best of my interest to start popping up different categories ranks up one by one. I wish to gradually work my way up to the main keyword while still earning from the specific instrument categories which are easier to rank for.

Moving this way will allow me to rank for these instruments on the way to building up the main keyword backlink profile, as category pages will generate seo for subcategories and increasing subcategory numbers one by one would make it so that the umbrella term which is musical instruments isn’t too spread over the place

My issues comes into play here: How effective will this strategy be? Given that people want to view musical instruments and not "pianos" per se when they view musical instruments, I can see why people would gravitate towards the homepage, lowering screentime on page (Analysis shows "musical instruments" pages are where most people spend time and money) and thus ranks, which I PRESUME WILL LOWER RANKS FOR SUBCATEGORIES (keep in my mind early game plan is profiting from specific instruments, since ranking for musical instruments is hard in the first place). However, categorising each instrument under musical instruments would be beneficiary for the the m. inst. rank.


  1. Is there any fallicious logic behind what is written above
  2. Would screentime play part in ranking for subcategories/links that take place at the page
  3. Would category seo even help subcategories at all, does google take the websites word for what the backlink profile popularity of the page is going to affect or simply care about where users are directed towards when they visit the webpage? 4.What alternative strategies would you recommend given I want to rank for instruments as I’m gradually building up for the main keyword