【发布时间】:2018-10-20 02:42:22
【问题描述】:
我是 Wordpress 的新手。我正在尝试从头开始构建主题。 我创建了 page.php,如下所示:
<?php
/**
* The template for displaying pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that
* other "pages" on your WordPress site will use a different template.
*
* @package nameofpackage
*/
get_header(); ?>
<?php get_footer(); ?>
我还安装了 NextGen 插件。 我创建了一个新页面,并使用 NextGen 的“添加画廊”按钮;我最终得到了
[ngg src="galleries" ids="1" display="basic_thumbnail"]
在页面的文本部分(可视部分在一个框中显示插件徽标)。
当我尝试预览结果时,我只得到页眉和页脚,中间没有任何内容;检查器显示不存在与画廊相关的代码。
如果我用 ThemeFifteen 尝试同样的事情,它会起作用。
所以我的问题是:我需要在 function.php 中包含一些内容,以允许我的主题在页面中包含插件的输出吗?谢谢
【问题讨论】:
标签: wordpress wordpress-theming