ThemeShaper Forums » Thematic

[closed]

Multiple loops to display related posts

(3 posts)
  • Started 4 years ago by roburdick
  • Latest reply from roburdick
  • This topic is resolved
  1. roburdick
    Member

    Hello,

    I am trying to get two loops working on a category template in order to show some related posts (posts from the same category). I have read the codex pages and tried the suggested loops but it doesn't work for me. It usually repeats the same post rather than listing several other relevant ones.

    Here is how my category-3.php template is looking without my attempts at adding the second loop:

    '
    <?php

    // calling the header.php
    get_header();

    // action hook for placing content above #container
    thematic_abovecontainer();

    ?>

    <div id="container">
    <div id="content">

    <?php

    // displays the page title
    thematic_page_title();

    // create the navigation above the content
    thematic_navigation_above();

    // action hook for placing content above the category loop
    thematic_above_categoryloop();

    // action hook creating the category loop
    thematic_categoryloop();

    // action hook for placing content below the category loop
    thematic_below_categoryloop();

    // create the navigation below the content
    thematic_navigation_below();

    ?>

    </div><!-- #content -->
    </div><!-- #container -->

    <?php

    // action hook for placing content below #container
    thematic_belowcontainer();

    // calling the standard sidebar
    thematic_sidebar();

    // calling footer.php
    get_footer();

    ?>
    '

    Any help would be great. I have tried various plug-ins mostly not working for me.

    Thanks

    Posted 4 years ago #
  2. roburdick
    Member

    http://wordpress.org/support/topic/383891?replies=4#post-1464471

    I have raised this problem at wordpress.org as well.

    Posted 4 years ago #
  3. roburdick
    Member

    It's sorted for me now, if you are stuck in a similar situation you can see my thought process where I have posted and replied to myself lots of trial and error!
    http://wordpress.org/support/topic/383891?replies=4#post-1464471

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.