All Questions
2 questions
9
votes
2
answers
19k
views
Why might a plugin's 'do_shortcode' not work in an AJAX request?
tl;dr: Contact Form 7's shortcode doesn't work in an AJAX request when called with do_shortcode
functions.php
add_action('wp_ajax_ps_get_survey_form', 'ps_get_survey_form');
add_action('...
0
votes
1
answer
419
views
Use Shortcode on Custom Page
How can I use a shortcode on a custom page in a theme? Let say I have a page that has a jQuery ajax function. I am able to send the data via JQuery post on the my_form.php page. On the confirm.php ...