Set class if a meta value is set within post archive
I’m attempting to add a class to posts when the meta key ‘checkbox’ is clicked. Here’s what I have:
I’m attempting to add a class to posts when the meta key ‘checkbox’ is clicked. Here’s what I have:
I’m working on a WordPress site for my band and I’d like to mark every 3rd post on our blog page to have a special class applied to it, anybody have any pointers on how to achieve this? Any help is very very appreciated, thanks! rock n roll.
essentially I need to be able to add a class to a post when it show in the list (say index.php) so when in the back end you can say oneCol, twoCol, threeCol and it will then output this within the loop post class.