WordPress.org

Ready to get started?Download WordPress

Forums

Only one post is displayed (10 posts)

  1. jwhitakr
    Member
    Posted 7 years ago #

    Hi -

    I recently started a blog and am having an issue where only the most recent post is getting displayed. Also, whenever I go to the category where I have multiple posts, only the most recent post is displayed. I am using the "In Business" theme.

    I have changed the Options -> Reading -> Show at most ... to a bunch of different values, but it doesn't make any difference and the most recent post is still the only post that is displayed.

    I tried the "Custom Posts Per Page" plugin, found at http://wordpress.org/support/topic/11211?replies=22, and it didn't make any difference.

    I have modified my index.php file, but I do not believe that I made any changes to The Loop, so I don't think that is the issue.

    My blog can be found at: http://www.topreviewshop.com/blog

    Any ideas for how to resolve this issue would be appreciated!

    Thank you.
    - Justin

  2. MichaelH
    Member
    Posted 7 years ago #

    If you change Themes, say to the Default Theme, does the problem 'go away'?

  3. jwhitakr
    Member
    Posted 7 years ago #

    Hi Michael -

    Thanks for the quick response. Yes, if I change back to the Default Theme, the problem does go away.

    That tells me there is something within the "In Business" that is causing the problem. I double checked the code for The Loop, and it looks the same to me.

    Any ideas or suggestions on what to check next?

  4. moshu
    Member
    Posted 7 years ago #

    Paste your Loop here:
    http://wordpress.pastebin.ca/
    and post back with the URI - maybe somebody can take a look at it.

  5. jwhitakr
    Member
    Posted 7 years ago #

    Thanks Moshu. Here is the link to my index.php code, which includes The Loop:
    http://wordpress.pastebin.ca/171844

  6. moshu
    Member
    Posted 7 years ago #

    1. I'd never use a theme where the author leaves this kind of things in the theme:
    <div style="visibility: hidden;"><a href="http://businessbroker.bizmp.com/businessbroker.html">Bsuiness Broker</a>

    2. That invisible div is NEVER closed... so everything after that is invisible :)

    3. Delete the line above from the code!

  7. jwhitakr
    Member
    Posted 7 years ago #

    A-ha! Removing that bit of code fixed it! Thanks so much Moshu for your help.

    I am a bit disturbed by the fact that the creator of this theme would try to put a hidden link within the index.php page. I am guessing he was trying to artificially inflate the number of links to his site, and thus improve his search engine rankings. Not cool...not cool at all.

  8. moshu
    Member
    Posted 7 years ago #

    I agree, about the theme.
    I can't agree about the "being fixed" :) Your sidebar in FF is displaced.

  9. jwhitakr
    Member
    Posted 7 years ago #

    Ahhh, yes, that is a good point. Should be fixed now. Thanks for pointing that out.

    Now, I have to take the time to go through each file within the theme to make sure there aren't any other "hidden links" or other such backdoors.

  10. Danjam100
    Member
    Posted 7 years ago #

    Hi,

    I seem to have a similar problem, but can't find any visibility tag problem, wondering if anyone out there might be kind enough to help - I'm very new to wordpress and have managed to customise the brajeshwar-v7-wp theme, but it's been fraught with difficulty.

    my site is at http://www.podfaster.com and you can see the problem there seems to be with the loop. It seems to be doing the loop, and showing the div which is after each post, but not actually displaying any of the post itself.

    the loop from the index.php as i have it at the moment is as follows...

    <div id="col-main">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <h3 class="sec-title"><?php the_title(); ?></h3>
    <div class="post" id="post-<?php the_ID(); ?>">
    <div class="post-body">
    <?php the_content(); ?>
    </div>
    </div>
    <?php endwhile; endif; ?>
    </div>

    As with jwhitakr, if i change to another theme it loops the posts ok.

    Please help! Thanks

    DJ

Topic Closed

This topic has been closed to new replies.

About this Topic