The logical fork between displaying full content and teaser (that’s what part from start of post to more tag is called) is ruled by $more
global variable. Which depends on other global stuff and so on, important point being it’s not set to 0
when you want it to be. Likely because you are running this in context when it wouldn’t be set to zero for normal loop either.
Something like this should work:
add_filter( 'woothemes_our_team_content', function () {
global $more;
$real_more = $more;
$more = 0;
$output = wpautop( get_the_content() );
$more = $real_more;
return $output;
} );
You can just work with link there, or hook into the_content_more_link
to customize it.
Related Posts:
- WordPress adding tags into plugin content
- Modify the_content after the more tag
- 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
- 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
- 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
- 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()
- Which action/filter can i use for a Member Plugin [closed]
- Wp private content show me files attachments into post
- How to tell if Jetpack’s Photon is active?
- What is the purpose of the “Hello Dolly” plugin?
- How can I include a setting that has a variable number of values in a settings page using register_setting?
- change plugin shortcode function [closed]
- How can I retrieve data within my widget
- woocomerce variations [closed]
- How to use load_plugin_textdomain from within a theme
- Syntax Highlighting Plugins and 3.2.1
- Problem Building a Simple Google Maps Plugin
- Is there a way to alter the order in which the plugins appear in the page?
- woocommerce_order_status_completed action hook not working [closed]
- How to update billing_email when user_email is updated [closed]
- How to display sub categories under products page using woocommerce with mystile theme [closed]
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- Plugin Options Not Saving to Database in WP 4.5
- PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback Error without any function name
- Standard Fail2Ban vs. WP Fail2ban vs. WP Fail2Ban Redux
- Install (enable) plugins on multisite, on localhost
- trying to get product category image in woo-coomerce
- WooCommerce search products between price range using WP_Query
- Stop WordPress processing Javascript as text
- register_activation_hook in oop approach
- Meta box losing its value when scheduled post is published
- Full list of registered scripts or styles, but from an admin options page
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- Disable Plugin with one button
- Exact Hook to payment methods
- Using wordpress translations strings in plugin
- Are mu-plugins plugins still deployed via wordpress.org/plugins?
- How to make my blog available to other website using RSS feed?
- How can I modify page content in the admin panel?
- WordPress programming video tutorials [closed]
- WordPress front end AJAX. Return 0 :?
- WordPress 5.4 – How to prevent to enter only certain values in custom field
- Displaying content based on drop-down menu selection sitewide
- DB Query not working in Plugin
- WordPress Multi-Step Product Search
- Woocommerce Free shipping method [closed]
- Is there a way to remove plugins in dashboard – where you cannot identify the slug by the plugins name?
- Settings options not showing up on Sub Menu page in WordPress plugin
- Using Amazon Book Gallery Plugins in WordPress [closed]
- Could add_query_arg() redirect user to external site?
- Plugins to generate reflinks in WordPress
- How to add label/badge on bookable product based on their booking status
- Does anyone know why my SEO and title become one?
- save_post hook partly firing in update post
- Help to create function that changes name in the certificate of the sensei lms
- Get Shortcode output to database for static post_content
- After migrating with duplicator all scripts are still tied to old CDN
- How to prevent redoing get_posts queries and make results available to other scripts?
- strtotime not working
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- WP Job Manager Feature jobs from [job_dashboard] page [closed]
- Optimized PHP & WordPress settings for speed/performance?
- Speeding up WordPress on a Local Network
- how change my menu on submenu
- Using slightly modified widget
- WP internationalization not loaded
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- jQuery loaded in wrong order for non-admin page views only
- Adding custom cron_schedule prior to wp_schedule_event
- Capturing POST data
- WP-PostRatings – how to make rating show up?
- wordpress Search function is not working
- Auto play audio using WP Maintenance Mode Plugin [closed]
- Plugin to allow for recurrent subscription + exclusive content
- How to automatically convert “normal” conditions to yoda conditions
- Woocommerce Large Variations Shows Out of Stock Items [closed]
- Plugin LDAP Authentication 2 In stallation ploblem
- woocommerce how to get cat id in content-product.php
- How to use WP-reCAPTCHA on a form
- Can’t save formdata in DB