I would just get the raw content from $post->post_content
, strip the <!--more-->
and then do whatever you need with the result. Just remember, $post->post_content
and get_the_content()
both return unfiltered text, if you need filtered content, simply apply the the_content
filter to the result from those two results
EXAMPLE inside the LOOP
global $post;
$unfiltered_content = str_replace( '<!--more-->', '', $post->post_content );
// If you need filtered content returned
$filtered_content = apply_filters( 'the_content', $unfiltered_content );
// Output filtered content
echo $filtered_content;
Related Posts:
- Style the text before in single.php
- Woocommerce “read more” instead of “add to cart” [closed]
- Turning the read more link into a button [closed]
- How to use read more text
- read more doesn’t display
- Exclude the content before “the more” on single posts
- How to remove #more… from the post “More” link?
- Excerpt Is Disappeared
- WordPress adding a to my anchor for Read More
- Wrap More Link in Div
- Extra text… after read more tag
- How to change the “Read more” text?
- wordpress 3.8 do not have more button [closed]
- How to change the text generated by Tag
- “Read More” link not displaying
- What code in the WP Sinatra theme generates the words “Read More?”
- How to automatically add Read more section after the first paragraphe in post?
- create a read more link for post and archives
- Bad “read more” behavior, trying to fix by inserting tag
- Can’t Get the Read More function to work in the child theme
- Popup image from text
- Read More link, not visible on home page
- How to customize ‘read more’
- “Read More” button displays on individual Posts
- Read more link isn’t working with custom query
- Read More link scrolling page
- Read more content not displayed loops back to blog page
- why more tag is not working in my wordpress site
- How to end the excerpt with a sentence rather than a word?
- Only show content before more tag
- Modify ‘Read more’ link adding a new class
- not functioning
- Text after more tag in posts
- “More” span making trouble
- Exclude filter on front page
- Different ‘read more’ links
- Read more on the post page itself
- How to make a button?
- Do not show excerpt in post content
- How to create a load more post entries like Twitter?
- How to delete read more span on single post view?
- Redirect to page 2 after comment
- Using More Tag in Combination with the_excerpt
- how to make function in RSS feed like it does in posts
- Add a tag to a custom post type
- How to use “show more” on a page or post to show and hide content
- Change behavior of the tag
- Extracting gallery images in WordPress 3.5 on index.php
- “more” tag doesn’t appear when browsing category achives or search
- WP Bakery Load More Button loads the same posts
- Excerpt using Read More Tag
- Read more link to external webpage
- Any Ideas for Including “More Tag” with get_pages($args)?
- Change Read More in Child theme
- new_excerpt_more link not working properly
- read more, even if excerpt not trimmed
- Give “Read More” precedence over excerpt() word count
- Login after “Read More” then return to article
- How to wrap “Read More” link in a DIV tag?
- Remove Content after
- help
- More quicktag driving me nuts
- How to use Readmore.js? [closed]
- Read more to open external link
- Prepending character(s) to a custom tag title?
- More tag – how do I remove preceding ?
- More tag locked in Hemingway
- Child Theme’s Read More Text
- quicktag breaking FancyBox plugin on my blog’s front page
- WordPress truncate posts question (plugin related)
- more tables created when create a new site
- Remove ‘read more’ link when post is shorter than excerpt
- WordPress does not hide content after “Read more” block added using gutenberg editor
- “Continue reading” not on some posts, full excerpts not shown
- Why does modifying the “read more” link remove the link class?
- How to enable read more by default using jquery
- Changing text for “Continue reading…” translation
- “read more” redirects to the wrong page
- Cannot figure out how to add a read more link to a manual excerpt. Please help
- How to use limit post content on archive page in WordPress?
- Remove Default Read More Link in Manual Excerpt RSS Feed
- How can I hide/show text only for mobile users?
- after setup_postdata, the_content() only displays text before the read more tag
- How to replace a specific html tag in bulk?
- Read More in the actual excerpt
- How to add a “Read more” button to my blog?
- How to get sort content by page id?
- get “read more” with custom DB query like you would with WP Query
- Can’t change excerpt length and more tag
- multiple excerpt length and styles
- how to use the_excerpt for two post queries?
- Get the More QuickTag button back
- Remove read more
- How to add an excerpt and read more link to a page?
- Plugin:Read More Right Here , How to change the name (more…) to Read More
- get_posts displaying wrong permalink for “continue reading” link
- Best way to modify content from index.php to single.php?
- Category articles “read more” links not active
- Read more button not working
- Read more opens attachment