Support » Plugins » Help me out with the Related Posts Plugin

  • Hello, I am pretty new at all this – so my experience is limited. Regardless, I have been trying hard to educate myself and learn. So please bear with me, or point me in the right direction! Anyway –

    I am trying to get the Related Posts plugin working, and I am using the K2 theme.

    I put the following code in my single.php file, and the related posts are appearing where I want below the content when a single story is selected. But they are not aligning how i expect them to.


    Related Entries:

    <?php related_posts(); ?>

    So, what I am trying to do is bullet lists tabbed in like they should be on a normal <ul> list.

    Here is a pic:

    How do I get this working?? Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Nobody can see code on an image 🙂
    Perhaps try to give a class? I don’t know what the code generated by the plugin looks like and I’ll not download + install + check just to give you an advice – it would be much easier if I can look at your source code…

    Sorry, I wasn’t sure exactly how much code would be necessary – i kind of figured this was a fairly well used plugin. Anyway, I’ll just post the code out of the single.php file. If you want to take a look at some of the plugin source let me know.

    <?php get_header(); ?>
    <div class="content">
    <div id="primary">
    <div id="current-content">
    <div id="primarycontent" class="hfeed">
    <?php include (TEMPLATEPATH . '/theloop.php'); ?>
    Related Entries:
    <?php related_posts(); ?>
    <?php comments_template(); ?>
    </div> <!-- #primarycontent .hfeed -->
    </div> <!-- #current-content -->
    <div id="dynamic-content"></div>
    </div> <!-- #primary -->
    <?php get_sidebar(); ?>
    </div> <!-- .content -->
    <?php get_footer(); ?>

    Sorry.. like I said I am not used to PHP. I am ‘trying’, please bear with me

    I never succeed when I am trying to be nice 🙂
    Give a live link to your blog, man!

    Hey! thanks for trying. Actually, with a bunch of fussing (granted I really have no idea what I am doing), I almost got what I want!! Anyway, its the css causing the issue, i’m sure of it. Alright, so check it out – this is what I got working:

    Here is the code that displays the plugin (same as above):

    <div class="navcontainer">
    <h3>Related Entries:</h3>
    <?php related_posts(); ?>


    Here is the code I put in the css:

    .navcontainer ul {
    margin: 20px;
    padding: ;

    So, its pretty close as far as what I am looking for, but whats up with the big space in between the title and the list?

    Am I on the right track here? I don’t just want a fix really, but want to understand what is happening here as well. Thanks for your help! (and patience).

    Oh, and the blog isn’t online yet, so I can’t link you. Hopefully this is enough for some guidance, now.

    hey, i got it – thanks. sorry for my confusion!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Help me out with the Related Posts Plugin’ is closed to new replies.