Full Article Displaying, Not the_excerpt showing on Main Page
-
I’m sorry guys, I have honestly tried everything and have finally given up.. After much research (PS this is my VERY FIRST WordPress Site so I think I’m doing pretty good) I just can’t figure this out:
Ali Manek.com
<P>
I can’t get the main page/homepage to show only the Excerpt from my posts. Instead it’s the entire blog.So far i’ve figured out that the Index.php for my theme (intrepidity) is going directly for the Posts.php template…
Here is the Index.php template:
<?php get_header(); ?> <?php while (have_posts()) : the_post(); include(dirname(__FILE__).'/post.php'); endwhile; ?> <?php get_footer(); ?>
Now the Post.php is all funky… Can’t figure out what to do… I made some changes like replacing )the_content with the_excerpt but that got me a fatal error. And I tried some other things and then my whole page got turned upside down… It’s a mess… Just a mess…
<?php global $more; $template_url = get_bloginfo('template_url'); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry_header"> <p class="entry-date"><?php the_time('M y') ?><br /><span class="date"><?php the_time('j')?></span></p> <?php echo (is_home()) ? '<h2 class="home">' : '<h1>'?><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> <?php edit_post_link('Edit', '<span class="editpost">', '</span>'); ?><?php echo (is_home()) ? '</h2>' : '</h1>'?> <?php if (FALSE && $post->comment_status != 'closed'):?> <div class="comment-bubble"><span><?php comments_popup_link('<span class="nocomment">No Comment</span>', ' 1 Comment', '% Comments'); ?></span></div> <?php endif;?> <div class="recover"></div> </div> <div class="entry_content"> <?php $more = 0; the_content('<br /><br /><span class="readmore-icon">Read the rest of '. get_the_title('', '', false). '</span>', FALSE); wp_link_pages(); ?> </div> <div class="postedinfo"><?php the_tags('<span class="tag-meta">Tags: ', ', ', '</span><br />'); ?> <span class="categories"></span> </span>. <?php if (isset($options['tags'])) : ?><span class="tags"><?php the_tags('', ', ', ''); ?></span><?php endif; ?></div> </div>
Any help would be soooooooo appreciated!!
- The topic ‘Full Article Displaying, Not the_excerpt showing on Main Page’ is closed to new replies.