I have a shortcode that just retrieves some info from the options table in the database.
For whatever reason, when the content reaches a certain character limit the_content() to return blank?
The function is pretty basic and I can’t for the life me figure out why this is happening?
Here’s an example of the code:
function my_custom_shortcode() { return get_option('my_custom_shortcode'); }
add_shortcode('MYSHORTCODE', 'my_custom_shortcode');
Has anyone experienced this before? Thanks!
Fixed my problem! I was finally able to find some info out there in the vast internet. Visit this site for info on fixing this odd issue.
Over all using the
remove_filter('the_content','wpautop');
did the trick.http://www.undermyhat.org/blog/2009/07/sudden-empty-blank-page-for-large-posts-with-wordpress/
In some occasions the_content() will also return blank if a single post/page is viewed and the loop is not initiated. Meaning that you will have to use the code below to be able to see output from the_content.