I think you can use the get_extended( $post )
function; that returns an array with different parts of the content. See this example which works inside the Loop:
$content_arr = get_extended( get_the_content() );
var_dump( $content_arr );
echo $content_arr['main']; //Display the part before the more tag
Related Posts:
- WordPress adding tags into plugin content
- Adding a form at the end of the content
- why does the add_action(‘the_content’) overwrite my page
- How Can A Plugin Hook Itself To the End of Every Excerpt?
- add_filter the_content in functions.php not working
- Plugin Using get_the_content Causing Issues With Tag
- Error shown for Trying to get property ‘roles’ of non-object in WordPress After Content for User Roles
- Output content to the_content before a plugin does
- Proper way to replace the_content only for pages created by custom plugin
- how to change automatic placing of social plugins below content?
- This WordPress plugin isn’t creating links correctly
- how to place a link on the first post only using a plugin
- the_content() printing DOCTYPE, and tags in the middle of page
- quicktag breaking FancyBox plugin on my blog’s front page
- WordPress truncate posts question (plugin related)
- Filters on the_content with plugins, pages and shortcode
- Add custom PHP and HTML to the_content()
- Replace the_content with ACF Flexible Content via function
- Add hook after content without formatting
- How to change “Read More” text?
- WordPress the_content Filter and GET Parameter
- How to echo a PHP Code After the Content
- Title and date of last post stays on page even after replacing the_content
- Can I add content before post content without using the_content filter
- WordPress Add advertising ads befor and after content with periority [closed]
- Why is every single HTML tag being stripped out of liveblog entries?
- How Can the_post Be Hooked Like the_content and the_excerpt?
- Update Plugin Without Overwriting Custom Settings
- Retrive images from the_content()
- Plugin:Read More Right Here , How to change the name (more…) to Read More
- Which action/filter can i use for a Member Plugin [closed]
- Wp private content show me files attachments into post
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- How to edit a wordpress plugin without break its update process
- Rewriting every url
- Is there a good plugin for an online booking system..? [closed]
- Automating deprecated call checks?
- How can I make my custom shortcode work in a Custom HTML Widget?
- Plugin updates are not shown
- post_id always wrong in plugin
- Which hook callback has priority if both plugin and theme use the same hook?
- titles in recent posts appear together in all languages with qtranslate
- Why is the unrendered widget number `__i__` showing up in the JavaScript but not in the HTML?
- Does flush_rewrite_rules() remove all rules added by other plugins as well as mine?
- An Unexpected HTTP Error occurred during the API request
- How can I use a video header that’s over 8MB?
- Prepare plugin options for multi-lingual support
- A very basic question – how to properly use wp_mail() in a plugin
- custom taxonomy and custom post type url conflict
- How to use get_theme_mod in gutenberg editor wordpress?
- Error when setting up phpunit tests with wp-cli scaffold
- How to display only subcategory
- Correct way to perform non-cacheable DB query
- Category’s Description field as editor remove tag
- How to enable unlimited course retake for limited time in LearnPress?
- Calling an attribute from a plugin shortcode
- WordPress continually requests pages from itself
- How to handle cookies from a WordPress plugin on a cached page?
- Enabling user creation with ” Active Directory Integration”
- How to calculate total number of comments made by a particular user
- Create shortcode to echo javascript
- Login Customizer doesn’t change the background of the register form
- wp_list_table class is not safe to use
- Events Manager plugin – booking form required fields
- Creating a widget and missing jQuery
- SMTP Error: Could not authenticate [closed]
- Need to replace Currency Shortforms
- How to delete all categories programatically?
- How to create plugin in wordpress [closed]
- How to use custom Javascript code inside a plugin?
- Output after specific post in the loop
- Banner Advertising plugins for WordPress
- Plugin for visitors to edit content without logging in? [closed]
- WordPress Forms Advance Conditional Logic
- Adding LOAD MORE on a page
- Creating template page for my plugin in WordPress
- Enable compression
- Export to csv adding html to file
- Creating posts with acf_form() that has a relationship type field
- Set plugin page as homepage
- WordPress Plugin Install / Update Problem
- error plugins learnpress in wordpress
- How to prevent authors from editing their post count?
- GET web api method from a WordPress PHP script
- Adding link on title its in description but not in title see screenshots attached
- How should I use a plugin function as a hook?
- Fatal error when accessing Pages in WP admin (and problems editing any pages)
- DWQA Plugin filters not working for logged in users
- WP Supersized: Insert zero in front of one digit slider numbers
- Add comment feature to woocommerce Shop page
- Save Email after login with ldap
- register_setting – validation callback weirdness
- Can someone please help me find a solution to my youtube embed problems? [duplicate]
- Dave’s WordPress Live Search only works when logged in as admin
- Google adsense stats plugin? [closed]
- Image Layout in Posts
- How do I copy files I downloaded from the wayback machine to my new site?
- Build a Boat Form Plugin [closed]
- Open all PDF or docx link as iframe
- Display Any Field fromAdmin Panel in Frontend via Shortcode?