[wordpress插件] Custom Page Menus自定义页面菜单

wordpress 插件 文章 2020-04-08 22:11 479 0 全屏看文

AI助手支持GPT4.0

评分
60
描述

The included pages can be defined using the ‘Custom Page Menus’ admin panel on the page-edit screen ( see screenshots ).

可以使用页面编辑屏幕上的“自定义页面菜单”管理面板定义包含的页面(请参见屏幕截图)。

The widget allows you to select whether to display the page’s featured image next to the link.

该小部件可让您选择是否在链接旁边显示页面的特色图片。

(I would recommend using icon sized images for this feature)

(我建议为此功能使用图标大小的图像)

On the page-edit screen a custom title for that specific page can also be defined.

在页面编辑屏幕上,还可以定义该特定页面的自定义标题。

This title will be used should that page appear anywhere on one of the menus created with the plugin.

如果该页面出现在使用插件创建的菜单之一上的任何位置,则将使用此标题。

The menu can be added to any dynamic sidebar using the Custom Page Menus widget or alternatively coded into themes using the custom template tag:

可以使用“自定义页面菜单”小部件将菜单添加到任何动态侧栏中,或者使用自定义模板标签将其编码为主题:

cpMenu()

cpMenu()

$args = array(

$ args = array(

‘show_date’ => ,

‘show_date’=>,

‘date_format’ => get_option(‘date_format’),

‘date_format’=> get_option(‘date_format’),

‘child_of’ => 0,

‘child_of’=> 0,

‘exclude’ => ,

‘排除’=>,

‘title_li’ => __(‘Pages’),

‘title_li’=> __(‘Pages’),

‘echo’ => 1,

‘echo’=> 1,

‘authors’ => ,

‘作者’=>,

‘sort_column’ => ‘menu_order, post_title’,

‘sort_column’=>‘menu_order,post_title’,

‘link_before’ => ,

‘link_before’=>,

‘link_after’ => ,

‘link_after’=>,

‘walker’ => );

‘walker’=>);

Example Usage: http://catn.com/tech/data-centre/

用法示例: http://catn.com/tech/data-centre/

安装步骤

    1. Upload the custom-page-menu folder to the /wp-content/plugins/ directory
    2. custom-page-menu 文件夹上载到 / wp-content / plugins / 目录

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

    5. Add and customise the widget to one of your sidebars through the widgets menu in WP admin or alternatively code the menu into your theme using the tag provided ‘cpMenu()’.
    6. 通过WP管理员中的小部件菜单将小部件添加并自定义为侧边栏之一,或者使用提供的“ cpMenu()”标签将该菜单编码为主题。

    7. Select Menu pages to be added in the page-edit screen.
    8. 选择要在页面编辑屏幕中添加的菜单页面。

下载地址
https://downloads.wordpress.org/plugin/custom-page-menus.zip
-EOF-

AI助手支持GPT4.0