通过php使用Wordpress gallery插件使用我的自定义主题的短代码

时间:2016-11-15 17:49:47

标签: php wordpress plugins themes

我正在使用wordpress作为我网站的后端,并尝试使用foogallery作为我的客户的图库来上传他们自己的图像。

我的问题是我在wordpress中创建了画廊,将它连接到我的index.php,但由于某种原因,我的画廊根本无法正常工作。相反,我只是得到一个看起来像这样的页面

screenshot of what gallery looks like

如果我点击图片,他们会将我带到他们自己的页面,只显示图片,而不是获取与之关联的灯箱插件。

这是我的index.php上的代码

<?php /* Template Name: CustomPageT1 */ ?>
<?php get_header(); ?>
    <div id="main">
        <div id="content">
            <?php echo do_shortcode( '[foogallery id="33"]' ); ?>   
        </div>
<?php get_footer(); ?>

0 个答案:

没有答案