Site logo

Archived topic

get_post_class returns some custom classes??

1 reply · Started by Marco on April 1, 2019

Viewing posts 1–2 of 2

hello
In some custom markup I'd like to add the "standard" classes to a post - however, I'm getting the following classes using get_post_class:
`Array
(
[0] => 71
[1] => post-71
[2] => post
[3] => type-post
[4] => status-publish
[5] => format-standard
[6] => has-post-thumbnail
[7] => hentry
[8] => category-usa-2009
[9] => tag-parks
[10] => tag-utah
[11] => generate-columns
[12] => tablet-grid-50
[13] => mobile-grid-100
[14] => grid-parent
[15] => grid-33
)'

I'm ok with all the classes until [10] - is there a filter to remove the custom added GP classes?

Hi there,

Those are added when you turn on columns in Customize > Layout > Blog. If you disable columns, they will go away.

Let me know if you need more info :)

This archived topic is closed to new replies.