Hi guys,
Hopefully an easy question for you. What function can I use to render Cornerstone content that’s not in the editor?
For many years, do_shortcode worked just fine. Now, it doesn’t work anymore. Instead, for some reason the content of the page just displays a second time.
So to specifically illustrate what I’m trying to do, here’s more info.
There’s a section in my footer (on some pages) where I display a portfolio. I’ve built this portfolio in Cornerstone, but I just copy the code into my template file.
In my wp-single.php template, I just have:
do_shortcode(’[cs_content][cs_section]… etc’);
And again, it worked flawlessly for many years. But now, instead of displaying the content, strangely it displays the content of the current post a second time. It’s very odd. I’ve tested it even with extremely basic Cornerstone content, and this still happens.
So I’m just wondering: is there a different function I should be using? Is there a reason this doesn’t work anymore? I get that it’s not the normal use case but I’m just wondering why something that worked without issue for so long is no behaving so strangely.
Thank you!