[wordpress插件] Autogen Headers MenuAutogen标头菜单

wordpress 插件 文章 2020-02-25 06:00 460 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

This plugin will automatically generate an ordered menu from the headers in your post.

此插件将根据您帖子的标题自动生成有序菜单。

    1. The plugin adds an ID to all your headers in the post.
    2. 该插件会在帖子中的所有标题中添加一个ID。

    3. Add the shortcode [autogen_menu] anywhere in the post, to automatically generate a menu with links to your post’s headers.
    4. 在帖子的任何位置添加简码[autogen_menu],以自动生成一个菜单,其中包含指向您的标题的链接。

    5. You have the option to add links the top of the page next to all the headers.

    6. 您可以选择在页面顶部所有标题旁边添加链接。

      Do this by adding the custom field “autogen_menu_show_top” with a value “true” to the relevant posts.

    7. 为此,请在相关帖子中添加一个值为“ true”的自定义字段“ autogen_menu_show_top”。

    “autogen_menu” Shortcode Options

    “ autogen_menu”简码选项

    Options for the [autogen_menu] shortcode:

    [autogen_menu]短代码的选项:

      • head_class = style classes for the Menu header.
      • head_class = Menu 标头的样式类。

      • div_class = style classes for the wrapping div.
      • div_class =包装div的样式类。

      • ol_class = style classes for all OL.
      • ol_class =所有 OL 的样式类。

      • li_class = style classes for all LI.
      • li_class =所有 LI 的样式类。

      • a_class = style classes for all the links.
      • a_class =所有链接的样式类。

      • depth = the maximum levels of menu to display.

      • depth =显示的最大菜单级别。

        The default is 3.

      • 默认值为3。

      Custom Fields

      自定义字段

        1. Add the custom field “autogen_menu_show_top” with a value “true” to add “top” links next to your headers.
        2. 添加具有值“ true”的自定义字段“ autogen_menu_show_top”,以在标题旁边添加“顶部”链接。

        3. Add “autogen_menu_show_numbering” to add numbers to all your headers.
        4. 添加“ autogen_menu_show_numbering”以将数字添加到所有标题。

        Widgets

        小部件

          1. There is a new widget called ‘Autogen Menu Widget’ that displays the post’s generated menu.
          2. 有一个名为“自动生成菜单小部件”的新小部件,用于显示帖子的生成菜单。

安装步骤

    1. Upload the “autogen-headers-menu” plugin to your /wp-content/plugins/ directory.
    2. 将“ autogen-headers-menu”插件上传到您的 / wp-content / plugins / 目录。

    3. Activate it.
    4. 激活它。

下载地址
https://downloads.wordpress.org/plugin/autogen-headers-menu.1.0.1.zip
-EOF-

AI助手支持GPT4.0