WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Related Posts by Category] display as row or grid?

[Resolved] [Plugin: Related Posts by Category] display as row or grid?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t exactly know what I’m doing but I got this to work, it shows post thumbnails and titles from the current category in a row instead of a list. I’m using it in loop.single, in the twentyten theme: after

    </div><!-- #post-## -->

    but before

    <?php endwhile; // end of the loop. ?>

    [code moderated – please use the pastebin]

    this is the css I peiced together:

    .header_thumbs {
        float: left;
        margin: 5px;
        overflow: hidden;
        width: 25%;
    }

    limiting the width forces a row.

    The problem is (other than extra mark up no doubt) ..it doesn’t omit the current post.
    Anyway, just wondered if anyone knows a way to use css to do the same with the plugin’s output, or perhaps make this code leave out the current post. I tried but I got lost quick, any help would be great.

    Here’s a link to a page using the above code, I’m using it as a way to get category specific navigation in the form of a thumbnail gallery below each post, doesn’t look so great as a list, hence my issue with the plugin.
    demo

    solved, I didn’t have the exclude right:

    <?php
    $header_thumbs = get_posts('numberposts=4&exclude=' . $GLOBALS['current_id']= $post->ID . '&category='. $category->term_id );
    ?>

    full code and demo:
    current-category-thumbnail-row

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Related Posts by Category] display as row or grid?’ is closed to new replies.