do_shortcode returning blank page
-
Hi everyone,
I’m still new to WordPress development so please be kind 🙂
I’m using the echo do_shortcode function within my custom template page to call the plug-in (I think this is the right terminology…). It’s been extremely finicky. I have the shortcodes in a FAQ div with two columns/floated divs. Each FAQ question looks like this:
<h3 class="process-title"><?php echo do_shortcode( '[expand title="What kind of payment do you accept?"]At the moment we only accept payment by check.[/expand]' ); ?></h3>The weird thing is, when I add a new question, sometimes it’ll return a blank page. But it’s only my website that goes blank, NOT the admin, as is per usual with a broken function.
Also, it’ll only do this sometimes, and I cannot figure out or predict why it chooses to do that, or NOT do that. I copy and paste the exact same line that previously worked, and sometimes it’ll work again, and sometimes it’ll go blank.
Is it an issue with the function? With my divs? Any idea?
Thank you in advance.
The topic ‘do_shortcode returning blank page’ is closed to new replies.