【发布时间】:2015-10-25 20:39:36
【问题描述】:
我为我的 wordpress 网站创建了一个 front-page.php 页面。此页面包含完全定制的 css 和 js。所以它不使用已安装主题中的任何内容。 我没有使用:
<?php get_header(); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
现在我已经安装了一个插件 (wp-tiles) 并想在 front-page.php 上使用它
通过添加代码来显示图块
<?php echo do_shortcode(
'[wp-tiles post_type = "attachment,product" orderby = "rand" order = "DESC" grids = "Featured" small_screen_grid = "Featured" breakpoint = "800" padding = "5" pagination = "ajax" grid_selector_color = "#444444"]'
);?>
它尝试显示图块,但这样做不正确,因为我假设插件 css 和 js 丢失。
有没有办法自动添加插件所需的文件而不需要手动添加front-page.php的路径?
谢谢
【问题讨论】:
标签: javascript php css wordpress