I do not know why the WordPress powers that be decided to do it the way they did but they don’t consider the part before the <--more-->
to be the same as the excerpt. Whether that makes sense or not is probably an irresolvable matter of perspective. I’d accept it and make do. The distinction actually adds flexibility to your content management so long as you are aware of what is happening. If you want to use the <--more-->
just do this…
if ( !empty( $post->post_excerpt ) ) the_excerpt();
else the_content();
The code that parses the <--more-->
is hard-coded into get_the_content
so it isn’t just a matter of removing/adding a filter, though certainly you could juggle filters, or create one, to make this work. That is a more complicated solution and is in my opinion not worth it.
Related Posts:
- How to add an admin function only to posts, not pages?
- Custom wp_trim_words() function not trimming right
- How to Display Post View Count
- Auto Refresh Post List after X seconds
- Converting a dynamic piece of code using WordPress Loop into a static one using Post ID
- Why content_arr[‘extended’] removes paragraph tags?
- Exclude category from
- How do I display some posts fully on the homepage, and some as an excerpt only?
- Change all author links in Blog roll
- Trying to edit archive.php to only show post extract, with featured image
- How to only publish posts with image in it
- Page and post loop same template
- Add custom text automatically on each post
- the_content() Not Grabbing All Content
- Optimize CPT-function with a loop
- content summary of a post disappears If an images added at the beginning of the post. how to solve it?
- How to Remove HTML Elements from Post Excerpt?
- Related post not showing table of content
- Moved a website and excerpts don’t work for old posts
- Get post id outside loop : Notice: Trying to get property of non-object
- Show post excerpt
- Show author bio box
- Trim excerpt to first paragraph
- Nothing appears using get_the_excerpt() in category.php
- How can i show only 30% of the “the_content(“More…”)”?
- Getting rid of the blog page entirely
- How to use wp_editor(); in functions.php then retrieve content in the template
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- wp trim function not working
- What function does the loop of displaying posts?
- Stop WordPress automatically adding tags to post content
- Print Current Post Index number within Loop
- rewind_posts() – what actually the use of it, and where using is required or preferred?
- How to show list of posts by author and category?
- How to publish a post with empty title and empty content?
- How do I use element instead of tags in WordPress post content having webP support?
- WordPress Number of Posts Not Changing With posts_per_page
- Add default content to post (for specific category)
- Find most recent authors
- Human Time Diff, change mins to minutes
- Remove double space after a period
- Displaying the number of posts in a custom loop (without including the number of posts of a loop below)?
- How to link up “read more” on excerpts hack from WP Recipies
- Allowing the SoundCloud player to appear in a post excerpt
- Converting multiple loops into one single loop with pagination
- How would I get 1 latest post from a query for 5 posts?
- Run a function when post is deleted?
- Alternating post layout
- Check to see if specific loop has less than certain amount of posts
- Batch process: remove first image from post content
- Add icon/badge next to posttitle of specific category
- is there a way to show the the post title after the image?
- Error when adding excerpt to the content through functions.php
- Blog post per page setting conflicting with custom WP_Query?
- get_the_excerpt() is not working as expected – returns wrong text
- Post Loop Missing Most Recent Post
- Start WP Pagination From Number 1 in URL
- Force authors to Preview a post before publishing
- Use two different post_per_page limits with infinite scroll
- Wrong post title displayed from loop
- Get the amount of posts on a current page
- How to get posts published on the latest date?
- WordPress Query Posts From Category Post on Static Page
- Loop through posts? Want to remove extra newlines in actual post HTML/content on backend
- WP_Query: Show 10 posts in date order, first three random
- How include css class based on post ( in loop ) slug?
- WordPress Loop: How to display recent posts in multiple divs
- Cannot implement byline into posts container in single.php
- How to check if there are posts with the same tag
- WP_Query of Category Not Showing First Post
- saving/reading custom field value does not work – no value gets POSTed
- How come this loop is not working? [closed]
- Internal linking to posts permalink fail because of spaces and stripe at postname
- How to exclude the word “class” from being matched in search?
- Preview page/post revisions without overwriting current content
- Using the loop to set locations for all posts on a single google map
- WordPress Excerpt Paragraph Limiting
- the_excerpt function not showing image
- How to implement a WordPress comments function?
- How to add content above footer in posts from specific category
- Separate top level categories on archive-product.php by meta
- How to add text before post_excerpt in Gutenberg
- While loop in functions.php outputting the_title() of each post on frontpage
- Shortcode for Comments and Comment Boxes in Post Loop
- Permalink Short code showing unnecessary link text inside the loop
- Enable HTML Tags in WordPress Post excerpt
- Double loop output
- AJAX load more posts not using correct category and repeating the same few posts
- How to display post excerpt beside post list inside Post of Dashboard
- post->ID displays the same ID number for every post
- How to correctly escape data
- Posts are not showing up on next page.
- Post are not showing up
- How to make post button to a random post
- Post List Widget with custom posts and editing the Read More Link
- How to inject a post within a loop
- List direct children of page
- Ajax calls in wordpress
- posts_per_page – Repeats only first posts ‘post__in’ array
- How to use shortcode to get the second to newest post?