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
- Read page- or post-content across different builder-plugins
- (WordPress 5.8.3) Function.php or a plugin for better performance? [duplicate]
- Basic question about accessing scripts in my plugin
- Gutenberg Blocks – Cannot retrieve block saved attributes in edit post
- plugins not working in custom theme
- How to use template_include hook with form submission?
- Adding Plugin Assets to Header
- Release the plugin in the WordPress repository where redux is used
- How to Define Multiple List Tables in a Single Submenu
- Add item to the woocommerce dashboard menu from a plugin
- Can the uniqueness of the plugin file/plugin slug and version number be trusted?
- Add type to enqueued script inside plugin
- Dokan Marketplace store link in single product page
- How can I redirect some pages to new subdomain? [closed]
- Automatically download, install and activate plugins that my plugin depends, how?
- Integrating boxtal PHP library into a custom WordPress Plugin
- wp-mail attachment is not sent for no reason?
- Translations for my plugin don’t show up
- Changing menu order of a specific plugin in dashboard
- Error in pdf generating plugin using FPDF
- syntax error, unexpected ‘while’ (t_while) please help :)
- How to create WordPress custom end point with multiple parameters?
- Plugin has added weird data in wp_options, set to autoload
- Different custom templates for product category [closed]
- Text change in Advanced Customs Fields [closed]
- How to remove bulk actions from custom post type
- After updating the WordPress getting a syntax error in the console
- Images under 1MB are not being compressed
- How to check wp_options’s rewrite_rules if current and existing are the same before flush the rules?
- What is the easiest way to rename a plugin (and also avoid plugin updates)
- Setting Email locale before retrieving gettext translations
- Changes not visible when not logged in
- Display linked articles at the bottom of post (like related posts)
- Simulating a wp page – wp page load sequence
- register_activation_hook() not working as expected
- How to redirect to same page after form submission
- Any idea how to get something like this to work? [closed]
- WordPress Ajax code is not Working
- Is there a maximum length to a WordPress Page?
- Skewed / slanted button within elementor [closed]
- WP.org acceptable iframe alternative
- I changed .live() to .on() but change is not reflected on the server
- How to find out whether a plugin is used in pages or posts?
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- flush_rewrite_rules() not working with update_option_{$option}
- How to get the particular product quantity in orders in Woocommerce [closed]
- plugin dev – minimum base css specificity?
- Using WordPress to build membership Page
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- Tutor LMS problem with Paid Memberships Pro [closed]
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- A server-side hook failed when committing plugin code to SVN
- Custom shortcode for displaying user based on a role parameter
- Help with comments.php
- How to execute plugin and theme updates from a web hook / endpoint?
- WordPress Plugin Insert Html Code with Shortcode
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- Set WordPress Transient Expiration via Variable Value
- Vulnerability Concern From the Plugin or From Not Updating the Plugin?
- PHP Warning: Declaration of aec_contributor_list::form() should be compatible with WP_Widget::form($instance)
- How to remove index meta tag
- don’t call ajax if not plugin page
- How to use the pre_option filter before a plugin loads?
- How I can change the required capability for an admin menu without editing the plugin file?
- Why WP_Screeen doesn’t show all options with admin_body_class
- I changed font of wordpress dashboard but it is slow!
- wp_dequeue_script for a Plugin