Display the first paragraph of article
-
Hello everyone,
I’m currently making my personal blog, yet I’m getting stuck on what seems to be a pretty simple issue.
My question is: I’ve created a post, with around five paragraphs, yet I don’t want to display all these paragraphs on the front page, I just want one paragraph for each article on the index page. How do I do this?
If anyone has any idea on how to do this, I would be very grateful for your support and kindness.
My current code is:
<?php if ( is_archive() || is_search() ) : ?> <?php the_excerpt(); ?> <?php else : ?> <?php the_content(); ?> <?php endif; ?>
Code is located in file: “Loop.php”
Thanks.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Display the first paragraph of article’ is closed to new replies.