• I am trying to change the # of posts that appear on the main page.
    What I have done thus far:
    – Reading is set to 0 though 30+ posts are showing
    – I can’t find a custom query posts code anywhere
    – I’ve tried just hacking it with a plug-in, nothing.
    – adding query posts to the existing code- nope.

    I haven’t made any drastic code adjustments that would affect anything.
    Here is what is going on in the page.php , Here is the code from that
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <h1 class=”pagetitle”><?php the_title(); ?></h1>
    <div class=”entry page clear”>
    <?php the_content(); ?>
    <?php edit_post_link(__( ‘Edit’, ‘titan’)); ?>
    <?php wp_link_pages();?>
    </div><!–end entry–>
    <?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
    <?php comments_template( ”, true); ?>
    <?php else : ?>
    <?php endif; ?>

    Any help would be much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter oisaj_dude

    (@oisaj_dude)

    Here is the relevant code in the index:

    <div class=”entry clear”>
    <?php if ( function_exists( ‘add_theme_support’ ) ) the_post_thumbnail( array(250,9999), array( ‘class’ => ‘ alignleft border’ )); ?>
    <?php the_content(__( ‘read more…’, ‘titan’)); ?>
    <?php edit_post_link(__( ‘Edit’, ‘titan’)); ?>
    <?php wp_link_pages(); ?>
    </div><!–end entry–>
    <div class=”post-footer”>
    <div class=”comments”><?php comments_popup_link(__ ( ‘Leave a comment’, ‘titan’), __ ( ‘1 Comment’, ‘titan’), __ngettext ( ‘% Comment’, ‘% Comments’, get_comments_number (),’titan’)); ?></div>

    Thread Starter oisaj_dude

    (@oisaj_dude)

    expresniks, It doesn’t look as though you responded? Does any one have an idea on how to go about this?
    Jas

    – Reading is set to 0

    there should be a number, for instance 5; 0 zero stands for all posts.

    page.php is definitively the wrong template to edit for posts on the front page; index.php is more likely –

    adding a query with the ‘posts_per_page’ parameter before the ‘if(have_posts())’ line should influence the number of the posts on the front page (however be aware that just having the ‘posts_per_page’ in the query will mess with pagination);

    although there is no reason to assume that the settings – reading should not work.

    have you tried to switch theme to Twenty Eleven to see if this is a theme issue?
    have you tried to deactivate all plugins to see if the problem might be caused by a plugin interference?

    a link to your site might help to illustrate the problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adjusting # of posts in Titan Theme’ is closed to new replies.