• Resolved arbak3

    (@arbak3)


    I recently installed a new theme for my blog. However, the new template shows summaries of the posts on the main page instead of the full post. I want to be able to show the Full Post and not just a summary on the homepage.

    This is my blog URL: https://www.thefitnesssource.net

    And this is the code for the index

    <?php get_header(); ?>
    
    	<?php if(!is_paged()) { ?>
    
    	<?php } ?>
    
    	<div id="bottom" class="clearfloat">
    
    	<div id="front-list">	
    
    	<?php
          $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
          query_posts; ?>
    
    	<?php while (have_posts()) : the_post(); ?>		
    
    	<div class="clearfloat">
    	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
    
    <div class="spoiler">
    	<?php	$values = get_post_custom_values("Image");
    	if (isset($values[0])) { ?>
          <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    	<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_option('home'); ?>/<?php
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=150&h=150&zc=1&q=100"
    alt="<?php the_title(); ?>" class="left" width="150px" height="150px"  /></a>
          <?php } ?>
    
    	<?php the_excerpt(); ?>
    	</div>
    
    	</div>
    
          <?php endwhile; ?>
    
    	<div class="navigation">
    		<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    			else { ?>
    
    			<div class="right"><?php next_posts_link('Next Page &raquo;') ?></div>
    			<div class="left"><?php previous_posts_link('&laquo; Previous Page') ?></div>
    			<?php } ?>
    
    	</div>
    
    	</div>
    
    	<?php get_sidebar(); ?>
    
    	</div>	
    
    <?php get_footer(); ?>

    Could someone please help me and tell me how to fix this so that on my homepage, it shows 5 FULL posts and not just the summaries…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Change <?php the_excerpt(); ?> to <?php the_content(); ?>
    Then in your Settings > Reading, Blog Pages Show At Most= 5

    Thread Starter arbak3

    (@arbak3)

    Thank you. But I have one more problem. Now that i changed it so it shows the full article. For some reason its not showing the spaces in between paragraphs.

    For example if you look at the first post on the main page, then click the title to see the actual article page ull notice that there is spaces inbetween paragraphs… how come does spaces don’t show on the homepage?

    – thanks for the help

    Because your front page was originally formatted to show only the excerpt without paragraph space, that’s why.

    Look for this section in style.css

    #front-list p, #archive p {
    	margin:0px;
    	padding:0px;
    	}

    separate the declarations of #front-list p and #archive p because you will change the declaration of #front-list p

    #archive p {
    	margin:0px;
    	padding:0px;
    	}
    #front-list p {
            margin-top: 0px;
            }
    Thread Starter arbak3

    (@arbak3)

    Thank you for all the help. Everything worked perfectly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Showing Full Article On Main Page’ is closed to new replies.