WordPress.org

Ready to get started?Download WordPress

Forums

single.php showing all posts (12 posts)

  1. hoopsavenue
    Member
    Posted 6 years ago #

    I haven't modified single.php at all so that can't be it. could it be that I installed in a directory, then manually moved everything to the root directory? I have no clue. Here is the site: http://www.hoopsavenue.com

  2. iridiax
    Member
    Posted 6 years ago #

    Your single.php is not in your theme's directory (or is renamed), so your theme is using index.php as a last resort. Put single.php back into your theme's folder, or if it is missing, redownload your theme and upload that single.php.

  3. hoopsavenue
    Member
    Posted 6 years ago #

    I took out Recent Posts from the left sidebar and it fixed it, but I want to have Recent Posts there! Why would this code I took out screw it up:

    <li class="widget">
    <h2>Recent Posts</h2>

  4. iridiax
    Member
    Posted 6 years ago #

    Uh oh, I just noticed that you are using only /%postname%/ as your permalink structure, which can cause problems.

  5. hoopsavenue
    Member
    Posted 6 years ago #

    moved recent posts to the right sidebar and it works fine, i don't know why i can't have it on the left sidebar

  6. hoopsavenue
    Member
    Posted 6 years ago #

    i am using that, but the same issue was occuring with the month/year option and default option as well. it's a new site though, would you recommend i use some numeric data?

  7. iridiax
    Member
    Posted 6 years ago #

    Use this instead to show recent posts:

    <?php wp_get_archives('type=postbypost&limit=10'); ?>

  8. iridiax
    Member
    Posted 6 years ago #

    I'd recommend the Day and name permalink option.

  9. hoopsavenue
    Member
    Posted 6 years ago #

    nice! it isn't messing up single.php, but it is listing all posts twice in recent posts?

  10. iridiax
    Member
    Posted 6 years ago #

    It shouldn't be. Is it nested in some sort of loop? All that query_posts and endwhile; endif; stuff should be removed from the that part of the sidebar.

  11. iridiax
    Member
    Posted 6 years ago #

    I just checked and it looks fine to me. Try refreshing your browser and/or emptying your browser cache.

  12. phantacid
    Member
    Posted 5 years ago #

    Not sure if anyone still needs to know but I'm pretty sure this will be an issue related to using multiple loops. You cant always just reuse the loop without either resetting it or assigning your loop queries to variables first. This should help:

    http://codex.wordpress.org/The_Loop

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags