The key is to use user-defined excerpts, rather than auto-generated excerpts. For example:
<div <?php post_class(); ?>>
<?php
// If post has defined excerpt, output it here
if ( has_excerpt() ) {
?>
<div class="first-paragraph-excerpt">
<?php the_excerpt(); ?>
</div>
<?php
}
// Now output the content
the_content();
?>
</div> <!-- .post -->
You’ll need to adapt to your needs, but this will output a div with the Excerpt, if it exists, and then output the content.
Related Posts:
- How can i display the content in plaintext
- the_excerpt(), get_the_excerpt() and the_content() all killing “the Loop”
- Content/Excerpt length control for a specific loop?
- Get excerpt using get_the_excerpt outside a loop
- Split Content and Gallery
- remove tags from the_content
- How to force excerpts / teasers in the loop
- the_content and wp_link_pages
- Add Incrementing ID to each paragraph in the_content
- Use the_content outside the loop
- get_the_content not working in loop?
- Exclude filter on front page
- Can I use both a custom excerpt and a trimmed excerpt?
- the_content() seems to block my ACF-code
- Removing the_content() from the page
- How to make post content from each post display within the same div
- Loop after page content
- the_excerpt not showing posts
- Using get_the_excerpt() Before The Loop
- Only display videos and images in the_content() within loop
- Styling text and images in the_content()
- Cannot retieve the_content() and the_author() – both returning empty strings
- Unable to change the “Read more” text inside the_excerpt
- How to get the excerpt for is_home() outside of the loop isn’t working
- How do I pull excerpts from pages?
- has_excerpt() not working inside wp_query
- How is WordPress changing the content markup?
- “the_excerpt” in loop just keeps repeating first post?
- Problem in replacing the_content with the_excerpt()
- Insert content above an embedded video inside Wordress’ php the_content
- Only Show Excerpt After First 3 Posts
- Excerpts not showing on main page
- Split Content and Gallery
- Excerpt isn’t working or am I missing something?
- the_content() keeps repeating itself
- Echo Most Recent Sticky Post in Loop?
- to get a little more content after ‘read more’ inside loop
- Limit article to 100 characters. Can’t use the_excerpt…
- Making a specific page wordpress compatable that is not index
- Return only content in excerpt field in loop
- how to use custom loop in the_content filter
- change the_content images for different sizes (Desktop, tablet, mobile)?
- Have multiple loops on a page appear after/between page content
- How to add excerpt in loop in Twenty Eleven theme?
- In Loop Output Place Custom Field Content In Between Paragraphs
- Help with add_filter(‘the_content’, ‘some_function’) and multiple matches
- Single Loop With Dual Content Area
- How to add custom HTML markup and classes to the_content()?
- Excerpt all post content Content Same Size without word cutting off
- the_content() “crashes” for single pages
- Hide old posts each year
- Show scheduled posts in archive page
- post__in – Placing content from a foreach loop inside of an array
- Custom page template
- Get posts that matches specific terms of multiple custom taxonomies
- How to hide and content from auto-generated excerpts?
- add_filter() doesn’t work in loop
- The Loop in Static Page
- How can I use get_permalink() outside the loop?
- Getting first 20 words without excerpt
- Problem the_permalink
- Multiple loops on the same page removing post tags
- Pages inside a page (with thumbnails)
- How to order posts by meta_value created inside loop?
- How to get_posts where ‘menu_order’ is more than 0/zero?
- WordPress Redirects on Install
- How to load all pages into one page with their templates
- Problems with loop
- Repeating Loop on my Posts Page
- Infinite Scroll and DFP
- Blog’s post count cause irratic behavior
- Pagination – works on local but not live dev!
- How to display pending posts on the homepage only for editors
- How can I improve the performance of this query_posts loop?
- WordPress Image Slider Looping Title Not Working
- Excerpt is being added above the content, but it should be after it
- Adding div after every two post on main loop! Why will first post not get counted?
- Second Loop Showing Only One Post on Single Post Page
- Pulling in featured image into default recent posts widget
- first paragraph of the_content as meta description
- Change position of entry title
- Why is the output of a call to the_excerpt different when the call seems to be identical?
- Override orderby to create list of users by custom meta_value
- Use ACF Category Image for all Taxonomy Archive Views
- Loop with custom posts, to include information from different custom post type
- the loop printing post in one grid
- Transient not working for external data
- How Can the_post Be Hooked Like the_content and the_excerpt?
- the_title() Returns the page title instead of the post
- How do I aproach this?(for sale, for lease, sold->move something from a category to another)
- How to fix pagination for custom loops?
- query_posts ignores the argument
- show posts from one category with comments only
- Loop from another WP site onto mine
- I need to update the post query? [closed]
- Wrap every 2 divs in row – for each loop [closed]
- How to add class to the last image of the last post in a loop
- Multiple loop with pagination in same page
- Divide loop into several columns based on post custom field and enable infinite scrolling
- Query Loop Block: possible to restrict just child pages?