sage-directives
sage-directives copied to clipboard
Post Class
Can't see directive for 'post_class()'? eg.
<article <?php post_class() ?>>
There seems to be one for body_class() though. Just wondering am I missing it?
Thanks.
It doesn't exist. I'm not HUGE on the @bodyclass directive as-is– but seeing as it's already here, I'll add @postclass too when I get a chance.
Thats great, thanks.
Is this correct directive:
'postclass' => function ($expression) { return "<?php post_class({$expression}); ?>"; },
yeah thats more or less it + adding reference in the docs