generateblocks icon indicating copy to clipboard operation
generateblocks copied to clipboard

Query Loop - current-post-item class

Open diggeddy opened this issue 2 years ago • 0 comments

Description

Users are displaying lists of posts in there single posts. With GB Pro we have the option to exclude the Current Post As an alternative users would like to add a current-post-item class to that post to allow for different styling.

References:

User request seen here with post_class filter solution:

https://generatepress.com/forums/topic/query-loop-and-current-page-item/#post-2378668

diggeddy avatar Oct 19 '22 15:10 diggeddy