The reason my code was failing was due to it reaching a memory limit.
I was adding a filter to the_content, and was calling another plugin’s API (Custom Field Suite) to get some meta data that was of the WYSIWYG type. This type of field runs through the_content filter, so I was hitting an infinite loop.
I couldn’t find this out on WP Engine because they have very limited error logging.
I ended up testing the site on a MediaTemple server, which resulted in the correct error message being displayed.
To fix this, I removed the filter from the_content BEFORE I called the meta data getter, then added it back after.
Related Posts:
- Shortcode not passing variable to included file
- Shortcode to include PHP file, pass various parameters to include?
- How to manually fix the WordPress gallery code using PHP in functions.php?
- Encode text string being appended as query to URL [closed]
- Include files in functions.php
- Display a text message if the shortcode is not found?
- Run shortcode at certain resolution
- How to create shortcodes that pull custom field data from general settings
- post meta value as shortcode parameter
- How to protect own PHP code from WordPress updates
- the_title() & the_content() are retrieving Post details inside a Page, after calling a shortcode
- where to include a php file
- Get list of shortcodes from content
- Audio tags around Mp3 URL in content
- Loading page template into shortcode
- How to add Shortcode (font awesome) in widget title?
- Wrap each shortcode in array to div
- Can I change a variable in a content part while calling it?
- the_author() not working outside the loop
- Placing the_content inside shortcode not working
- Put php variable in shortcode
- Autogenerate shortcodes from an array of strings
- How do I add text in a shortcode?
- How to Insert Shortcodes into Theme?
- Template part inside shortcode, unexpected reult
- Shortcode Inside Class Not Working
- Shortcode API: How to get name that matched shortcode RegEx?
- Shortcode content filter?
- Custom Theme, Custom shortcode not working
- Why is file_get_contents returning page source?
- Plugin CSS not enqueing
- Showing content from one page on another
- Create own WordPress shortcode gallery
- Get value from shortcode to do something
- code is skipping a div
- Custom shortcode outputs plain text instead of HTML at top of post
- How to use wp_add_inline_style for custom CSS added via shortcode?
- Shortcode returns values in the wrong order
- Embedding PHP in shortcode $content
- Shortcode with PHP issue “Undefined index”
- Excecuting php function in shortcode
- Correct and safe way to include php content in my page
- Returning data instead of echoing/printing
- ::before on open/close function [closed]
- Is There A Way To Make Theme Files Accept Shortcodes?
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?
- Create a WordPress shortcode using PHP [duplicate]
- do_action(), iFrame Gets Displayed Despite Password Protection [closed]
- Using Shortcode to Grab Archive Listing, Separate by Year
- php include not working in custom page
- Post’s ID pattern?
- Where is this function’s callback getting its arguments from?
- Unable to process php via shortcode
- Using WP functions such as the_title() in an included php file
- calling a custom field value inside functions.php
- Using ob_start and ob_get_clean with wordpress shortcode
- List all blogs, but exclude the main site
- How to include custom PHP file both in header and footer files
- Cant display an image via PHP in wordpress
- PHP code inside Shortcode
- Action Hook Inside WordPress Plugin Shortcode
- How can I include the user id inside of a shortcode php output?
- PHP Helper Class to create shortcodes
- help with custom shortcode that stopped working
- how to get sentence values from wordpress shortcode parameter?
- Updating Metadata with Shortcode
- Create shortcode for metabox gallery
- couldnt show short code atts in category
- Time Stamp In A WordPress Post Title That Does Not Keep Refreshing
- How can I edit the final HTML structure of the whole web page
- I am having an issue with this shortcode plugin.. Warning: Illegal string offset ‘title’
- Advanced Custom Forms PHP formatting for do_shortcode
- overwrite wordpress gallery with custom gallery shortcode
- How can I create a shortcode from an html and php code written together
- CPT in a shortcode
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Open/closed function [closed]
- What is wrong with this shortcode? to include external php file in WordPress posts
- Need to Echo A Url path to show on a wordpress page
- WordPress Shortcode based on other shortcode
- Force ‘permanent’ post cache of shortcode results
- Wrapping shortcode content in a span or link
- Formatting Shortcode to Display in Visual Mode
- Use html tags in shortcode_atts, is it real?
- How to pass parameter that ends up being part of a class name with wordpress shortcode
- How to have Function of a plugin using global vars into a shortcode?
- Overwriting a Shortcode
- Where to place PHP for shortcodes
- How to wrap a text with shortcode into php file?
- PHP Widget and do_shortcode
- How to include a php file in every post and page [duplicate]
- A next page function with shortcode?
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- using a shortcode in a hyperlink
- WP Custom tables query
- Display total count of products in orders of a specific order status
- Gutenberg – render_callback does not pass ToggleControl value on frontend
- HTTP 500 Error after Creating Shortcode
- How call WordPress shortcode inside function file
- How to execute a shortcode within a custom field?