Load shortcode via jquery button click
-
is it possible to load the shortcode via jquery click?
Hi Darren is it possible to load the shortcode via a jquery button click? If I run this it works but it won't load the content but only the container var loc; var $shortCode = '<?php echo do_shortcode("[ajax_load_more post_type='post' search='Hot dog']"); ?>' var $go = '<?php echo $shortCode; ?>' function panelShow(e) { $(".panel_block").show(); loc = e.target.feature.properties.name; var sh = '<?php echo $sh ?>'; $('.panel_block').html($shortCode); } Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Load shortcode via jquery button click’ is closed to new replies.