我试图在用户单击按钮时加载一些其他图像。目前,我有以下功能:
$(\'a\').click(function(){
$( ".gallery-pop-up-container" )
.load( "wp-content/themes/fashion_detail/includes/single/gallery-pop-up.php");
});
我正在尝试加载:<div class="gallery-page">
<?php the_content(); ?>
</div>
但是,我得到了一个PHP错误,因为它不确定函数是什么: Fatal error: Call to undefined function the_content()
我最好的加载方式是什么the_content()
?