I want to set up a page with a variety of divs, with each containing specific shortcodes. It would be set up as follows:

<div id="resultsA">
<?php echo do_shortcode('[shortcode]'); ?>
</div>
<div id="resultsB">
<?php echo do_shortcode('[shortcode]'); ?>
</div>
<div id="resultsC">
<?php echo do_shortcode('[shortcode]'); ?>
</div>

I have the page created (results.php), but can not get the results to show when I use:

$('.form-results').load("?php bloginfo('template_url'); ?>/results.php#resultsC");**

Is this the correct way to accomplish this? I want to be able to ajax refresh the section that page loads into, whenever the form submit button is pressed.

Thanks guys

Read more here: I want to create a php page on my WordPress site, that I ajax load content from.


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , , , , ,

Wordpress related questions and answers: