AI助手支持GPT4.0
With installing this plugin you add functionality to wp_nav_menu() to show
wp_nav_menu()
通过安装此插件,您可以向 wp_nav_menu() code>添加功能以显示only children of the current page or start with a specific navigation level.仅当前页面的子级或以特定的导航级别开始。 p>
wp_nav_menu() code>添加功能以显示only children of the current page or start with a specific navigation level.仅当前页面的子级或以特定的导航级别开始。 p>
only children of the current page or start with a specific navigation level.
仅当前页面的子级或以特定的导航级别开始。 p>
child-navigation
/wp-content/plugins/
child-navigation code>目录上传到 / wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>
/ wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>
ol>
For showing all children of the current page set children_only as argument
children_only
为显示当前页面的所有子项,将 children_only code>设置为参数to TRUE in wp_nav_menu(). 到 wp_nav_menu() code>中的 TRUE code>。 TRUE ) );TRUE)); ?>?> p>Show all items starting at specific navigation level显示从特定导航级别开始的所有项目 h4>For showing all pages in the current root line, starting at a specific用于显示当前根行中的所有页面,从特定页面开始navigation level, set children_start_level as argument with the wanted导航级别,将 children_start_level code>设置为所需通配符start level as value. 起始级别作为值。 2 ) );2)); ?>?> p>Show current page/start level in child navigation在子导航中显示当前页面/开始级别 h4>With children_show_start_level set to TRUE the current page is shown in在 children_show_start_level code>设置为 TRUE code>的情况下,当前页面显示在中navigation if children_only is set or starts with children_start_level,导航(如果设置了 children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
children_only code>设置为参数to TRUE in wp_nav_menu(). 到 wp_nav_menu() code>中的 TRUE code>。 TRUE ) );TRUE)); ?>?> p>Show all items starting at specific navigation level显示从特定导航级别开始的所有项目 h4>For showing all pages in the current root line, starting at a specific用于显示当前根行中的所有页面,从特定页面开始navigation level, set children_start_level as argument with the wanted导航级别,将 children_start_level code>设置为所需通配符start level as value. 起始级别作为值。 2 ) );2)); ?>?> p>Show current page/start level in child navigation在子导航中显示当前页面/开始级别 h4>With children_show_start_level set to TRUE the current page is shown in在 children_show_start_level code>设置为 TRUE code>的情况下,当前页面显示在中navigation if children_only is set or starts with children_start_level,导航(如果设置了 children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
to TRUE in wp_nav_menu().
TRUE
到 wp_nav_menu() code>中的 TRUE code>。 TRUE ) );TRUE)); ?>?> p>Show all items starting at specific navigation level显示从特定导航级别开始的所有项目 h4>For showing all pages in the current root line, starting at a specific用于显示当前根行中的所有页面,从特定页面开始navigation level, set children_start_level as argument with the wanted导航级别,将 children_start_level code>设置为所需通配符start level as value. 起始级别作为值。 2 ) );2)); ?>?> p>Show current page/start level in child navigation在子导航中显示当前页面/开始级别 h4>With children_show_start_level set to TRUE the current page is shown in在 children_show_start_level code>设置为 TRUE code>的情况下,当前页面显示在中navigation if children_only is set or starts with children_start_level,导航(如果设置了 children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
wp_nav_menu() code>中的 TRUE code>。 TRUE ) );TRUE)); ?>?> p>Show all items starting at specific navigation level显示从特定导航级别开始的所有项目 h4>For showing all pages in the current root line, starting at a specific用于显示当前根行中的所有页面,从特定页面开始navigation level, set children_start_level as argument with the wanted导航级别,将 children_start_level code>设置为所需通配符start level as value. 起始级别作为值。 2 ) );2)); ?>?> p>Show current page/start level in child navigation在子导航中显示当前页面/开始级别 h4>With children_show_start_level set to TRUE the current page is shown in在 children_show_start_level code>设置为 TRUE code>的情况下,当前页面显示在中navigation if children_only is set or starts with children_start_level,导航(如果设置了 children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
TRUE code>。 TRUE ) );TRUE)); ?>?> p>Show all items starting at specific navigation level显示从特定导航级别开始的所有项目 h4>For showing all pages in the current root line, starting at a specific用于显示当前根行中的所有页面,从特定页面开始navigation level, set children_start_level as argument with the wanted导航级别,将 children_start_level code>设置为所需通配符start level as value. 起始级别作为值。 2 ) );2)); ?>?> p>Show current page/start level in child navigation在子导航中显示当前页面/开始级别 h4>With children_show_start_level set to TRUE the current page is shown in在 children_show_start_level code>设置为 TRUE code>的情况下,当前页面显示在中navigation if children_only is set or starts with children_start_level,导航(如果设置了 children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
TRUE ) );
TRUE));
?>
?> p>
For showing all pages in the current root line, starting at a specific
用于显示当前根行中的所有页面,从特定页面开始
navigation level, set children_start_level as argument with the wanted
children_start_level
导航级别,将 children_start_level code>设置为所需通配符start level as value. 起始级别作为值。 2 ) );2)); ?>?> p>Show current page/start level in child navigation在子导航中显示当前页面/开始级别 h4>With children_show_start_level set to TRUE the current page is shown in在 children_show_start_level code>设置为 TRUE code>的情况下,当前页面显示在中navigation if children_only is set or starts with children_start_level,导航(如果设置了 children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
children_start_level code>设置为所需通配符start level as value. 起始级别作为值。 2 ) );2)); ?>?> p>Show current page/start level in child navigation在子导航中显示当前页面/开始级别 h4>With children_show_start_level set to TRUE the current page is shown in在 children_show_start_level code>设置为 TRUE code>的情况下,当前页面显示在中navigation if children_only is set or starts with children_start_level,导航(如果设置了 children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
start level as value.
起始级别作为值。
2 ) );
2));
With children_show_start_level set to TRUE the current page is shown in
children_show_start_level
在 children_show_start_level code>设置为 TRUE code>的情况下,当前页面显示在中navigation if children_only is set or starts with children_start_level,导航(如果设置了 children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
children_show_start_level code>设置为 TRUE code>的情况下,当前页面显示在中navigation if children_only is set or starts with children_start_level,导航(如果设置了 children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
TRUE code>的情况下,当前页面显示在中navigation if children_only is set or starts with children_start_level,导航(如果设置了 children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
navigation if children_only is set or starts with children_start_level,
导航(如果设置了 children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
children_only code>或以 children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
children_start_level code>,开头)if children_start_level is set. 如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
if children_start_level is set.
如果设置了 children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
children_start_level code>。 TRUE, 是的, // use either //使用 ‘children_only’ => TRUE, ‘children_only’=>是, // or //或 ‘children_start_level’ => 2, ‘children_start_level’=> 2, ) ); )); ?>?> The argument depth will be relative to the first displayed level.参数 depth code>将相对于显示的第一个级别。 p>
TRUE,
是的,
// use either
//使用
‘children_only’ => TRUE,
‘children_only’=>是,
// or
//或
‘children_start_level’ => 2,
‘children_start_level’=> 2,
) );
));
?>
The argument depth will be relative to the first displayed level.
depth
参数 depth code>将相对于显示的第一个级别。 p>
depth code>将相对于显示的第一个级别。 p>
原文出处:http://www.sanshu.cn/a/7194.html
群主管理都是支付大佬