• Resolved zionfm

    (@zionfm)


    Hey peeps, we have a blog that was set to “Summary” only on the home page, yet the blog keeps showing full posts and looks like a complete mess on the front page… any advice on how to get the front page to show only a brief summary???

    Thanks!!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • do you use the_excerpt() instead of the_content() in your front page ?

    That “Summary” is for feed / rss. It’s either u use the_excerpt() replacing the_content() in your theme’s index.php or use <!--more--> to cut the post.

    Hi,

    You need to edit the index.php file of your theme and find this code:

    the_excerpt();

    Replace with:

    the_content():

    Thanks,

    Shane G.

    Thread Starter zionfm

    (@zionfm)

    I”m gonna try..

    -Jeremiah
    https://www.zionfm.net
    Christian Hit Music that Rocks!

    Thread Starter zionfm

    (@zionfm)

    Ok, so i’m not so smart… it looks to me that the code already uses “content” rather than “excerpt”

    <?php get_header(); ?>
    
    								<div id="featured">
    									<div class="featured-content">
    										<?php query_posts('showposts=1'); if (have_posts()) : while (have_posts()) : the_post(); ?>
    											<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    												<?php the_content(''); ?>
    											<div class="post-meta">
    													<a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>" rel="bookmark" title="Read More of <?php the_title_attribute(); ?>" class="btn btn-orange">Read More</a> <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?> &nbsp; | &nbsp;  Posted by <span class="orange weight-normal"><?php the_author_link(); ?></span>
    											</div>
    										<?php endwhile; endif; ?>
    									</div>
    								</div>
    							</div>
    							<div class="left-content">
    							<?php
    								// Fixes for post offset
    								add_filter('post_limits', 'my_post_limit');
    								global $myOffset;
    								$myOffset = 1;
    
    								$temp = $wp_query; $wp_query= null; $wp_query = new WP_Query();
    								$wp_query->query('offset=1'.'&paged='.$paged);
    
    								while ($wp_query->have_posts()) : $wp_query->the_post();
    							?>
    
    									<div class="post">
    										<div class="post-date"><span class="month block"><?php the_time('M'); ?> </span><span class="day"><?php the_time('d'); ?> </span></div>
    										<h4><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
    										<?php the_content(''); ?>
    										<div class="post-meta">
    													<a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>" rel="bookmark" title="Read More of <?php the_title_attribute(); ?>" class="btn btn-<?php echo $style; ?>">Read More</a> <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?> &nbsp; | &nbsp;  Posted by <span class="<?php echo $style; ?> weight-normal"><?php the_author_link(); ?></span>
    										</div>
    									</div>
    
    								<?php endwhile;  ?>
    
    								<div class="clearfix pagination bluegray">
    									<?php next_posts_link('Previous Page') ?> <span class="extralarge"><?php echo $paged; ?> of <?php echo total_pages(); ?></span> <?php previous_posts_link('Next Page') ?>
    								</div>
    
    								<?php /* Fixes for post offset */ $wp_query = null; $wp_query = $temp; remove_filter('post_limits', 'my_post_limit'); ?>
    							</div>
    						</div>
    						<div id="right-col">
    							<?php get_sidebar(); ?>
    						</div>
    					</div></div>
    <?php get_footer(); ?>

    am i not seeing something?

    Heh? Did u understand what the others are replying? They’re all repeating the same solution.

    Just replace <?php the_content(''); ?> with <?php the_excerpt(); ?>.

    btw, next time please use pastebin.com to paste source code okay? Hope that helps.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Front Page Showing Full Posts’ is closed to new replies.