WordPress: How to use post_class() in an echo
I am working on a foreach loop in WordPress and want to add ‘post_class()’ to a div within it. Currently the code looks … Read more
I am working on a foreach loop in WordPress and want to add ‘post_class()’ to a div within it. Currently the code looks … Read more
I have added this code to my child theme’s functions.php file and use the new class but it styles the entire site, not … Read more
I’ve only just realised that custom post types don’t appear to output the category as a class in the loop, via post_class and … Read more
In the following code I would like to remove the div that wrap all the code and pass its class to article, but … Read more
If anyone can help that’d be great. I’ve found a snippet of code that I’ve used which is pretty much doing what I … Read more
I would like to add a class to my gallery short code, this is how I have added my class: . Now the … Read more
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 … Read more