Ready to get started?Download WordPress


Small Business
[resolved] Only showing two excerpts on home page (8 posts)

  1. cbhsoloist
    Posted 1 year ago #

    Although I have reading set to show 10 posts on the home page (as excerpts), the small business theme will only show two excerpts, leaving a huge white space left unfilled. Do I adjust this in the index.php file? I am lost. The site is set up on a test page right now at http://www.test.gospelconcersn.com.

    Here is some code from that page, although I no no clue if this is what I need to be chaging.

    [please remeber to mark any posted code - http://codex.wordpress.org/Forum_Welcome#Posting_Code - the code below is partially broken]

     <?php if (have_posts()) : while (have_posts()) : the_post();?>
    <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
     <p class="postmetadataw">Posted by: <?php the_author_posts_link() ?> | on <?php the_time('F j, Y'); ?></p>
     <h3 class="subtitle"><?php echo get_post_meta($post->ID, 'sb_subtitle', 'true'); ?></h3>
     <h2 class="post-title"><a>"><?php the_title();?></a></h2>
     <div class="content-ver-sep"> </div>
     <div class="entrytext">
     <?php the_post_thumbnail('thumbnail'); ?>
     <?php the_content('<p class="read-more">Read the rest of this page »</p>'); ?>
     <div class="clear"> </div>
     <div class="up-bottom-border">
     <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php the_tags('Tags: ', ', ', ''); ?></p>
     <?php endwhile; ?>
    <div id="page-nav">
    <div class="alignleft"><?php previous_posts_link('« Previous Entries') ?></div>
    <div class="alignright"><?php next_posts_link('Next Entries »','') ?></div>
  2. cbhsoloist
    Posted 1 year ago #

  3. the corresponding template is front-page.php;

    the limitation is set in functions.php:

    function smallbusiness_ppp() { return array( 'post_type'=> 'post', 'ignore_sticky_posts' => 1, 'posts_per_page' => 2 ); }

  4. cbhsoloist
    Posted 1 year ago #

    Wow. That was easy! Thanks so much. Did the trick. Quick last question although different question ...

    On the right hand sidebar some of the recent articles posted are displaying their titles as full justification, giving too much space between some of the words. It looks horrible. Can this be fixed?

  5. this alignment is inherited from:

    #content-full {
    	font-size: 14px;
        text-align: justify;

    overwrite it by adding a new style for instance to the end of style.css;


    #right-sidebar { text-align: left; }
  6. cbhsoloist
    Posted 1 year ago #

    Again ... PERFECT. You have been so hjelpful to me a rookie. Last question if you can ... how do I get CATEGORIES to appear on indivudual post pages in the right sidebar. Right now, it only displays ARCHIVES. Thanks again.

  7. cbhsoloist
    Posted 1 year ago #

    Thank you

  8. how do I get CATEGORIES to appear on indivudual post pages in the right sidebar

    in dashboard - appearance - widgets: try and drag a 'Categories' widget and an 'Archive' widget into the 'Main Sidebar' section

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic