[wordpress插件] Display A Post显示帖子

wordpress 插件 文章 2020-04-19 06:31 630 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This is a super simple plugin that displays a specific post by post name (slug) or id.

这是一个超级简单的插件,可按帖子名称(子句)或ID显示特定的帖子。

This plugin is very light weight and easy to use in pages, posts, sidebars, or anywhere shortcodes are processed.

该插件重量极轻,易于在页面,帖子,侧边栏或处理短代码的任何地方使用。

Usage

用法

[get-post id="23"]

  [get-post id =“ 23”]

Parameters

参数

    • id = post id
    • id =帖子ID

    • name = post’s slug (do not use id and name together)
    • name =帖子的名字(不要同时使用id和name)

    • color = color of post (e.g. #aaa) : default none
    • color =帖子的颜色(例如#aaa):默认为无

    • tcolor = color of post’s title (e.g. #aaa) : default none
    • tcolor =帖子标题的颜色(例如#aaa):默认为无

    • title = display post’s title : default no (yeso)
    • title =显示帖子的标题:默认为否(是/否)

    • full = display full post (yeso) : default no, which displays the post’s excerpt
    • 完整=显示完整帖子(是/否):默认为否,显示帖子摘录

    Lang

    Lang

    Currently this plugin is only in English, however, if anyone would like to translate it into another language please contact me at info@joshuawieczorek.com.

    当前此插件仅使用英语,但是,如果有人想将其翻译为其他语言,请通过info@joshuawieczorek.com与我联系。

    The contribution would be greatly appreciated.

    我们将不胜感激。

安装步骤

    1. Upload the display-post.zip file to the /wp-content/plugins/ directory
    2. display-post.zip 文件上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the Plugins Manager in the WordPress dashboard.
    4. 通过WordPress信息中心中的插件管理器激活插件。

下载地址
https://downloads.wordpress.org/plugin/display-a-post.zip
-EOF-

AI助手支持GPT4.0