Hi,
why the Post page is showing me these shortcodes instead of content? How can I fix this issue?

I already tried to remove the custom code I put in Functions.php, but nothing changed.
Thanks!
Hi,
why the Post page is showing me these shortcodes instead of content? How can I fix this issue?

I already tried to remove the custom code I put in Functions.php, but nothing changed.
Thanks!
Hello there,
Have you made any further changes at all by any chance please?
I have been unable to replicate the error presently and all of the content appears to be loading fine
May you clear your cache and please let us know.
Hello,
no, I didn’t do any further changes.
I’ve cleared my cache, but nothing changes. I’m using a macOS device, and I tried on Safari and Chrome, but nothing change, I’ve got the same error. I’ve also cleared my SiteGround domain cache, but it’s still the same.
I don’t know what to think…
Hello There,
Thanks for updating in! I am also seeing it on the page. I already made some changes to the post and yet all my changes does not display on the blog index. Could you please clear the Site Ground cache or temporarily disable it because I just updated Pro theme to version 1.2.4.
Please let us know how it goes.
Hi,
I cleared first the Site Ground cache and then also disabled it, but nothing is changed. I stil see the same error. I also tried open the Blog Page on Firefox, but it showed the same.
Hi,
I found that switching off the “Full post content on index” command in Theme options, there is no more error.

But this is not solving my problem, 'cause I want this feature turned on. Can you please help (as you always did for me), please? 
Thanks!
Hi There,
Could you please try adding the following code under functions.php file locates in your child theme:
add_filter('the_content', 'dbt_custom_feed');
function dbt_custom_feed( $content )
{
global $post;
if ( is_feed() || is_home() ){
// Remove all shortcodes
$content = strip_shortcodes( $post->post_content );
}
return $content;
}
Hi,
I add this code, but it doesn’t solve the problem, 'cause it shows only one line of the article and stop. Also it shows only the content for the first post, not the second one.
Besides, it works only when the “Full post content on index” feature is turned off. When it’s turnned on, there’s no content on blog page.
Need more help please!
Hello There,
Please remove the code and replace it with this code:
// Auto Excerpt for Cornerstone posts
// =============================================================================
function add_excerpt_read_more_link($output) {
global $post;
if( is_a( $post, 'WP_Post' ) && ( has_shortcode( $post->post_content, 'x_section') || has_shortcode( $post->post_content, 'cs_section') ) ) {
return $output;
}
}
add_filter( 'the_excerpt', 'add_excerpt_read_more_link', 99 );
// =============================================================================
This code is only applied to the excerpts thus when the “Full post content on index” feature is turned off.
Please let us know if this works out for you.
Hi,
unfortunately it’s not working. Now I don’t see any more content…

I tried deleting caches, but nothing changed.
Hello There,
Thanks for updating in! I have disabled the code in your child theme functions.php file. And I edit your two post. For each post I inserted a manual custom excerpt. Please keep in mind that excerpts will get the very first 55 words from your post content. If any of the contents were wrapped with shortcodes such as a post created in Cornerstone, no excerpt will display because WordPress excerpts would ignore shortcodes. You will have to use manual excerpts instead. To know more about excerpts and how it works, please check out the codex:
https://codex.wordpress.org/Excerpt
Hope this helps.
Hi,
thank you very much for your help!! it works great. Can I delete the code in my child theme now? I don’t need it anymore, right?
So, if I get it, there’s no way to make it working without using manual excerpts, because Cornerstone uses shortcodes and WordPress excerpts ignore them, right?
Thanks a lot!
Hi,
Yes, that’s correct. Remove the code in your child theme and add manual excerpts.
Thanks
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.