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:
- wordpress on localhost lamp doesn’t let me install plugins
- WP_User_Query and non-unique usermeta data
- To Disable WordPress Rest API or Not To Disable?
- how to include other plugins css files in a shortcode?
- Redirect to settings page after install
- Email Notifications of new posts to users – suggestions [closed]
- What is the correct way for a theme to support plugin UIs?
- What is the ‘admin_action_’ . $_REQUEST[‘action’] hook used for?
- How does WordPress determine the primary plugin PHP file?
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- Data sanitization escaping HTML apostrophes
- Custom comment type maybe?
- How do I get Version of all active plugins programmatically?
- Remove Adminstrator Hyperlink from a user having role to add and see users
- Enable comments for post with comments meta box removed
- How to link to YouTube videos with thumbnails?
- Problem protecting a page with a password
- Storing image gallery plugin data
- wordpress custom login successful redirect hook
- Is there any site where i can found good documentation of wp-ecommerce plugin?
- flush_rewrite_rules() not working on plugin activation
- Determine plugin name from within plugin_action_links filter
- Having separate plugins and themes folder for multi-site setup
- Is there a plugin to record querystring parameters for a page (for customer tracking)? [closed]
- Where should I add the necessary code to add an extra attribute to the kses allowed tags array?
- Why are some of my thumbnails not being generated?
- Detect the activated theme from plugin code
- Mouse Wheel Anchor Scrolling on WordPress [closed]
- prettyPhoto media loading very slowly in Chrome
- Add keywords meta to index.php page
- Shortcode in widget is printing before the title [duplicate]
- Does anyone know a plugin that turns a ‘post’ into an html newsletter?
- How to check if tables in WordPress still exists after activations
- Working with .po and .mo files translation
- Force file download on plugin activation
- Unicode characters displaying as ? after import using WP Clone
- Custom wordpress Theme and Plugin repository
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Why are my queries interfering with the global post variable?
- Template filter for custom taxonomy terms
- Overwrite a plugin’s CSS?
- Problem with isset and $_POST
- WooCommerce product and terms count [closed]
- plugin generated 751 characters of unexpected output during activation
- MediaElement.js works on one site but not the other?
- Moving to a WordPress blog. What do I need to know?
- Default plugin config to override wp_options?
- Performance impact with inactive plugins? [duplicate]
- How can I support plugins in a custom theme?
- Redeclare function after plugin activation
- Couple of beginner’s questions [closed]
- Can I filter a function created by a theme or a plugin?
- Get all posts, regardless of status
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- Best way to retrieve data in custom api extended from wp-api
- WordPress rewrite rules not working
- Social share buttons text shows up on post excerpts
- Ajax request sends url rather than data
- Importing csv file
- grab or load text on demand
- Edit post image attributes on fly?
- How to displaying Custom image, text and default image logo from Redux Framework option panel
- Grouping imported products and showing variations based on selected product
- WordPress fatal error from php protocol codes
- How to display the category name in the tab and post inside the tab in WordPress?
- Want to build parent-child relationships between custom post types created with CPT UI
- How would I Redirect an existing WooCommerce customer to a specific url after Checkout
- Ultimate Members Default Post Layout problem
- best way to upload a large file to wordpress using wp all import
- Why do actions with class and public method don’t fire __construct()
- how to enable/activate a plugin per Cpanel
- Gutenberg Block: How to reload a ServerSideRender?
- How to define the slug for my custom plugin?
- Run a Change Role Cron Job on WordPress via cPanel
- How to display variables from plugin?
- How to make the first letter of a post title uppercase, in a plugin?
- Payment failed but order is placed on wp site
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- using wordpress login details for other website / application / forum?
- Widget outputs the value but doesn’t save anything inside the textarea
- Publish check if the edited content has HTML “div”
- Add dynamic color to each category item
- Code fails in plugin file but works in functions.php
- Which wordpress plugin increases the size of tag as per more number of posts on it?
- Redirect default login page to a custom page [duplicate]
- How do I convince this button to do something when it is clicked?
- Display_rows() and column_cb() strange behaviour
- I need to insert a captcha for all comments in word press
- Images not showing and plugins not installing on wordpress server move
- “The Events Calendar” Issues in WP 3.2
- How can I be a plugin developer? [closed]
- How to generate a responsive output from plugin?
- save_post hook is not working after changing priority
- The plugin generated xxx characters of unexpected output during activation
- My wordpress site wont load, it gives header error warnings
- Displaying Random Image from ACF Options Page [closed]
- Shortcode returning specific content of a post
- Uncaught Error: Cannot use object of type stdClass while showing the list using WP_List_Table
- Select posts from list and add them in a new list
- Oxygen plugin wordpress stuck in loading sequence forever when trying to edit a page [closed]