[wordpress插件] Child Navigation儿童导航

wordpress 插件 文章 2020-03-22 22:30 517 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

With installing this plugin you add functionality to wp_nav_menu() to show

通过安装此插件,您可以向 wp_nav_menu()添加功能以显示

only children of the current page or start with a specific navigation level.

仅当前页面的子级或以特定的导航级别开始。

安装步骤

    1. Upload child-navigation directory to the /wp-content/plugins/ directory
    2. child-navigation 目录上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    Show only children of current page

    仅显示当前页面的子项

    For showing all children of the current page set children_only as argument

    为显示当前页面的所有子项,将 children_only 设置为参数

    to TRUE in wp_nav_menu().
         

    wp_nav_menu()中的 TRUE
         

    TRUE ) );

    TRUE));

    ?>

    ?>

    Show all items starting at specific navigation level

    显示从特定导航级别开始的所有项目

    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 设置为所需通配符

    start level as value.
         

    起始级别作为值。
         

    2 ) );

    2));

    ?>

    ?>

    Show current page/start level in child navigation

    在子导航中显示当前页面/开始级别

    With children_show_start_level set to TRUE the current page is shown in

    children_show_start_level 设置为 TRUE 的情况下,当前页面显示在

    navigation if children_only is set or starts with children_start_level,

    导航(如果设置了 children_only 或以 children_start_level
    开头)

    if children_start_level is set.
         

    如果设置了 children_start_level
         

    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 将相对于显示的第一个级别。

下载地址
https://downloads.wordpress.org/plugin/child-navigation.1.1.1.zip
-EOF-

AI助手支持GPT4.0