Buddypress注册页面拉错模板

时间:2019-05-07 06:20:11

标签: wordpress buddypress

我创建了一个注册页面,并尝试通过从右列的下拉列表中选择模板来为其设置模板,即:页面属性->模板(下拉列表)。当我查看注册页面时,表单可以正确显示,但没有使用我为其余内容设置的模板。我可以说这是我在应使用template-other.php

的片段中使用的page.php。
function show_template() {

   global $template;
   print_r($template);

}

add_action('wp_footer', 'show_template');

有趣的是,如果我将URL更改为大写字母,即:从example.com/register更改为example.com/Register,则它使用正确的模板,但是好友列表没有显示。但是,如果我使用example.com/register,则会显示该表单,但不会使用我设置的模板。任何建议将不胜感激。

enter image description here

enter image description here

0 个答案:

没有答案