WordPress.org

Ready to get started?Download WordPress

Forums

How-to: Using the Post_Class (1 post)

  1. Digital Raindrops
    Member
    Posted 2 years ago #

    I answered a couple of topics where the post class was a suggested solution.

    Using the post_class() we can style the post content in a page or list.

    I thought it may help to put some examples into a post with a child theme download, for me it is better to look at a working example rather than a topic page or post with code snippets.

    The post with the download can be read over on my website, the child theme is only meant to be a working example and not a full solution.

    Using post_class( $class )we have four Layouts:

    • Simple Template Page with styled content area
    • Switched thumbnails left and right
    • Post List with seven colored backgrounds
    • Simple Magazine two posts over three posts

    I hope this might help others looking for post_class idea's

    Read the post with the download

    David

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Digital Raindrops
  • This topic is not a support question
  • WordPress version: 3.3.2