Loop.php editing for main blog page help needed
-
I’m trying to edit a site someone else created.
The loop code is in the index.php page and is apparently working, because the main blog page renders with 3 posts as it’s set, but I can’t get it to show content or excerpts.
The blog main page is here.Below is the code on loop.php which I know works, because I added the link to the title which is working and I put paragraph tags around the code that should give me the excerpt, but it doesn’t render, though it did add some space.
` <!–post –>
<div class=”post”>
<a href=”<?php the_permalink();?>”><h6><?php the_title();?></h6></a>
<div class=”meta-post”>Posted on <?php echo get_the_date();?> | <?php the_author_meta( ‘first_name’); ?> <?php the_author_meta( ‘last_name’); ?> </div>
<p><?php if ( is_category() || is_archive() ) {
the_excerpt();
} else {
the_content();
} ?></p> <p><a href=”<?php the_permalink();?>”>read more >></a></p>
</div>
<!–post –>`I appreciate any help someone can give.
- The topic ‘Loop.php editing for main blog page help needed’ is closed to new replies.