是否可以在页面模板中添加wordpress插件?


Is it possible to add wordpress plugin in a page-template?

我使用Bootstrap模板创建了一个主题。现在我想在创建的主题中添加一个wordpress插件。我试图在主题中添加一个插件,该插件安装在WordPress中,但它没有对网页进行任何更改?

是否有任何查询必须包含在函数。php文件?

复制插件文件到您的主题目录,然后包含其主文件。如果你的插件文件夹名为custom-plugin插件的主文件名为custom-plugin.php那么在你的functions。php中包括如下内容

include_once( get_stylesheet_directory().'/custom-plugin/custom-plugin.php');