I have a Wordpress based website, and some of the content is loaded through javascript. For example:
jQuery(".portfolio-fs-slides").css({"display":"none"}).prepend('<div class="portfolio-fs- slide current-slide portfolio-ppreview"><div class="project-coverslide"></div><div id="content" class="content-projectc contenttextwhite"></div></div>');
What I want to do is append this shortcode: <?php echo do_shortcode('[daisy]'); ?>
But as far as I know is not really possible to append php code in javascript. Is there any workaround to accomplish this ? Thanks!
a class="clickable">CLICK HERE</a>a class="clickable">CLICK HERE</a>inside that function and it's not working, my website crash