Found the answer. Apparently plugins don’t work on get_the_content(), so I used the output buffering example below. I found it here
ob_start();
the_content();
$newContent = ob_get_clean();
Related Posts:
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Restricting a Plugin to Only Load its CSS and JS on Selected Pages?
- What plugin can I use to create a list / slideshow of featured images?
- Beta Versioning of Plugins
- How can I make default jquery version of WordPress “async”?
- WooCommerce – Show shipping cost on product page [closed]
- Importing Tweets with certain hashtags into WordPress
- Way to force media uploader use custom image size
- How to Add jQuery Infinite Scroll to My Custom Archive Page
- Find out what is using PHP sessions in WordPress
- Change page title from plugin
- Override dynamic_sidebar() in plugin?
- publish_post hook isn’t working for scheduled posts
- Add post thumbnail from external image with plugin
- Why is this custom taxonomy showing in the database?
- Where is the source code that makes the “all” array grabs filters in the $wp_filter?
- How can I change plugin to give access to editor user role?
- Is it possible to add an action to the currently running action?
- How to include and use custom class files in plugin?
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- unzip a folder on specific location and delete the zip file
- Change settings of get_post_type_object
- Check if User exists in WordPress Multisite
- Embed a Google Sheet as you view it in a separate tab?
- Changing labels of status filters for post grid
- Where to call add_shortcode function in WordPress Plugin Boilerplate?
- Duplicate posts when posting nulls in records in phpMyAdmin [closed]
- Plugin version is not showing up in wordpress.org plugin directory
- Saving changes in wp_editor
- How can I check if on specific plugin generated page or child
- Error with third-party package: “Updating failed. Error message: The response is not a valid JSON response.” [closed]
- Transition from the pro version to the free version of the plugin
- There is any way to remove post-format filter? [closed]
- Search for categories
- Best way to initiate a class in a WP plugin?
- How to show only next post pagination link using wp_link_pages()
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- Retrieving Meta from Image Attachment
- Why this function not working for install database on plugin activation
- The Hook registration_errors was not called
- Banner not visible after plugin publishing
- WordPress 4.8.1 php getting commented
- Plugin usage wordpress
- What is a rock solid development and deployment workflow? [closed]
- Optimizing site
- Integrate Algolia to WordPress site
- Exclude posts from widget while post is showing on home, single and categories
- Is there any pre-existing plugin to track and block IPs with suspicious activity on my site?
- How to make custom plugin run on demand?
- Using WordPress to build membership Page
- Set WordPress Transient Expiration via Variable Value
- Override plugin class which has namespace
- How can I use my custom wordpress theme on two websites? [closed]
- Is it normal/acceptable for plugin/theme developers to ask for an admin login to investigate a trouble ticket? [closed]
- How (or where) do I get wordpress plugin update download link?
- Plugin create pages and use templates
- Execute a function when the entire page is displayed
- Add custom PHP and HTML to the_content()
- Cannot read properties of undefined (reading ‘firstChild’) using photoswipe in product page
- Find Plugin by file name
- Creating an admin button that when clicked shows a popup form
- Add an action based on custom post meta field
- How to hide an option from dropdown in filter module
- Downloading a file
- add menu page not showing Icon
- $wpdb not working wordpress plugin ajax call
- how to create user profile pages and display them based on users roles
- How to change “Read More” text?
- How to use wp_editor and save its data in wp_posts table
- WordPress database problem wp_posts, primary key
- Securing a plugin pop-up window
- Woocommerce – Change variations output
- how do i fixe Page Builder on a custom page?
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- How do I add languages?
- wp_enqueue_scrpts seems not to get called
- Which Membership Plugin? [closed]
- Adding featured image to post display widget
- How to Create Custom Dashboard for my Laundry Website?
- Warning: Illegal offset type in /var/www/html/wp-includes/option.php on line 1924
- Get plugin to background of page
- How to create a WordPress sandbox on a live server for website development?
- What is a good way to test that plugin upgrades have completed properly?
- Moving sidebar links to below the header menu
- get post excerpt by query
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- Deleted plugins displays error message
- How to delete remain data in WP database after deleting custom post via admin interface
- __FILE__ in WordPress plugins
- Looking for a related post plugin which slides-in like the one at inc.com does [closed]
- which is this plugin ? [closed]
- Populate Woocommerce order notes with custom field value
- cmb2 select option output [closed]
- Woocommerce Product Add-ons – Auto-select first option
- Sync roles across several plugins
- Jquery post responses 500 error after some time and lastly an 503 error
- Identifying Plugins Based on Tables [closed]
- How to apply an additional fee for the layaway payment