Follow Us On


    6
Boost

This is a trending featured post

  • Posted on December 15, 2015 at 8:37 am
    Watched 68 times, 1 today
  • icanhazgiraffe
  • icanhazgiraffe administrator
  •  

    rick-ross-arrestedWith WordPress 2.7 came the post_class function. This gives a set of CSS classes to a post, depending on what’s in the post (e.g. based on what category it is in).

    The code that you use in your template to use this is simply like this:

    Be the first to leave a comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *