WordPress.org

Ready to get started?Download WordPress

Forums

Show a thumbnail under each category? (4 posts)

  1. perpetualjon
    Member
    Posted 4 years ago #

    I'd like to implement the new thumbnail feature added to WP recently. I've seen premium themes in the past that had their own version of this but basically the idea is that clicking on a category shows just a thumbnail for each post as opposed to the posts themselves. It looks like this theme will do something like that but I can't find any examples or help understanding how it works... Any ideas?

  2. Sayontan Sinha
    Member
    Posted 4 years ago #

    The thumbnail feature has nothing to do with what you are asking, I believe. Suffusion supports multiple methods of using thumbnails - the functionality introduced in 2.9, a custom meta field called "thumbnail", an embedded image from the gallery, or an embedded image from an external source. The thumbnail is displayed if you are looking at excerpts.

    What you are asking for is something different, akin to a photoblog I think. It is not something you can do directly with the theme since it is not meant for photo-blogging, but you can use a combination of tricks to achieve this without making any changes to CSS or PHP files. Here is how:

    1. Go to Suffusion Theme Options -> Blog Features -> Excerpts / Full Contents -> Excerpt Settings for Categories. Set this to display tiles. For the next option set it to display 0 posts with full content.
    2. Go to Suffusion Theme Options -> Blog Features -> Custom CSS, JavaScript & RSS, then put in this under Custom Styles:

    h2.suf-tile-title {
        display:none;
    }
    .suf-tile-text {
        display:none;
    }
    a.suf-mag-excerpt-full-story{
        display:none;
    }

    Mind you, this is not a part of the standard functionality of the theme, so there is a chance you will not get the look you want.

  3. perpetualjon
    Member
    Posted 4 years ago #

    Ok, how about if I modified the category.php file to create a 3-column table to list all posts by thumbnail that fall under a certain category? Would that work? Am I on the right track?

    Thanks so much for your quick responses!! You truly are a valuable help to the community here.

  4. Sayontan Sinha
    Member
    Posted 4 years ago #

    Are you looking to do this for a single category or for all categories? If it is for a single category then create a copy of category.php as category-your_category_id.php and make the changes you are proposing. If you want this for all categories then the approach I have suggested is the easiest. You can set the number of tiles per row in the "display tiles" option to 3 and get the results you want.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags