Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/247.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过php使用Wordpress gallery插件使用带有自定义主题的短代码_Php_Wordpress_Plugins_Themes - Fatal编程技术网

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

通过php使用Wordpress gallery插件使用带有自定义主题的短代码,php,wordpress,plugins,themes,Php,Wordpress,Plugins,Themes,我正在使用wordpress作为我的网站的后端,并尝试使用foogallery作为我的客户上传他们自己的图片的库 我的问题是,我用wordpress制作了这个图库,通过将它连接到index.php,但由于某种原因,我的图库根本无法工作。相反,我只是得到一个像这样的页面 如果我点击图片,他们会将我带到他们自己的页面,页面上只有图片,而不是与之关联的lightbox插件 下面是我index.php上的代码 <?php /* Template Name: CustomPageT1 */ ?&g

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

我的问题是,我用wordpress制作了这个图库,通过将它连接到index.php,但由于某种原因,我的图库根本无法工作。相反,我只是得到一个像这样的页面

如果我点击图片,他们会将我带到他们自己的页面,页面上只有图片,而不是与之关联的lightbox插件

下面是我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(); ?>