[resolved] Replacing Series Titles with Thumbnails? (2 posts)

  1. llaughy
    Posted 5 years ago #

    I am using the Series plugin by Justin Tadlock and would like to find a way to have the sidebar widget display thumbnails instead of post titles. I am using Yet Anothor Photoblog to generate thumbnails, but I imagine this could also be achieved using WordPress post-thumbnails.

    Does anyone familiar with this plugin have a suggestion as to how I can implement this customization. I have a pretty good familiarity with WP and PHP, but not so good that I can figure this out for myself. Any help will be greatly appreciated. Thanks!


  2. llaughy
    Posted 5 years ago #

    I scrapped the Series plugin and went with the WP post thumbnail option. I used get_posts() by category slug and replaced the_title() in the usual setup with the_post_thumbnail(). Here's one example that I implemented on my category.php page to show thumbnails of all the images from a particular category:

    <ul class="my_style">
                $cat_slug = get_category(get_query_var('cat'))->slug;
                $postslist = get_posts('numberposts=-1&order=ASC&category_name=' . $cat_slug . '&orderby=date');
                foreach ($postslist as $post) :
                <li><a href="<?php the_permalink(); ?>" rel="bookmark" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail(array(80,80));?></a></li>
                <?php endforeach; ?>

    I'm not sure this is the most elegant solution, but it was easier for me than trying to figure out the same sort of thing using custom taxonomies.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Series
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic