Forums

[resolved] How do I add more posts to frontpage (custom theme)? (7 posts)

  1. mybenson
    Member
    Posted 3 months ago #

    I finally got my theme working, but it is only showing 6 posts, and I would like to show the first 15. I'm assuming it's something PHP to fix this, but not sure how to do it.

    The page is at: http://www.bensonreport.com/wordpress/

    Any help would be greatly appreciated. Thanks so much!

  2. jleuze
    Member
    Posted 3 months ago #

    It depends on your theme, what theme are you using?

  3. banless
    Member
    Posted 3 months ago #

    Go to Settings/Reading once there you will see this option "Blog pages show at most" there you input the amount of post you want to show on the page.

  4. mybenson
    Member
    Posted 3 months ago #

    I've gone to the settings and changed it to 15, but it still only shows as 6 on the site. I modified the Magazine Basic theme because I needed to 3 posts horizontally, but for some reason, I'm only getting 2 rows, instead of 5. I'm very new to php and can't figure where in the code this needs to specify 15 posts on the home page.

    I think it has something to do with this php, but I'm not sure:

    <?php while (have_posts()) : the_post(); ?>
    <?php $x++; ?>
    <?php if($x == 2) { $i=1; ?></div><div id="contentwrap"><div id="content"><?php } ?>
    	<div class="post post<?php if($i==16) { $i = 15; } echo $i; $i++; ?>">
    		<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
    
    		<div class="storycontent">
    			<?php if(get_option('uwc_excerpt_content') == 'content') {
    					resize(85,85);
    					theme_content('(more)');
    				} else {
    					resize(85,85);
    					theme_excerpt(get_option('uwc_excerpt_three'));
    				}
    			?>
    		</div>
    	 </div>
    <?php endwhile; ?>
    <?php if($x>16) { echo "</div>"; } ?>
    </div>
  5. jleuze
    Member
    Posted 3 months ago #

    I don't think that the number of posts is hard coded into this theme, it looks like there is a control panel for this.

    Are you changing the number of posts in the regular "Settings" menu, or in the "Magazine Basic" menu?

  6. mybenson
    Member
    Posted 3 months ago #

    Thank you so much!!! I didn't realize that control panel was there. I feel like a fool, but I really appreciate you pointing me towards the right solution. Thanks!

  7. jleuze
    Member
    Posted 3 months ago #

    No problem mybenson! Every theme is different, there's no standard, often themes will include a menu under the Appearances section, but very few have their own top level menu, so don't feel bad for not spotting it ;)

Reply

You must log in to post.

About this Topic

Tags

No tags yet.