Missing category class in page source

Posted in: Newspaper
Post count: 5

Hi,
I have problem that don’t know how to solve.

When I add a new post there is an additional class with the name of the categories to which the post is assigned.


<article id="post-1234" class="post-1234 post type-post status-publish format-standard has-post-thumbnail hentry <strong>category-news</strong> <strong>category-sport</strong>" itemscope itemtype="https://schema.org/Article">

It allows me to add custom CSS to posts in specific category.

The problem is that when I now create a new category and assign it to post, category class is not showing in page source.

<article id="post-1234" class="post-1234 post type-post status-publish format-standard has-post-thumbnail hentry" itemscope itemtype="https://schema.org/Article">

Post count: 35449

Hi,

I just test what you say, and all is working fine, the new category is appearing in the article
https://www.screencast.com/t/3nCuWClqMP8
Please make sure that you have the latest version of theme, clear all cache and try again.
Also is possible to be a plugin conflict, please deactivate all non theme plugins, clear all cache and try again.

Thank you for your understanding.

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.