[wordpress插件] Basic URL ShortCodes基本网址简码

wordpress 插件 文章 2020-02-29 18:00 445 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Sometimes you want to put the base URL (that of the blog, or that of the active template) in your content editor.

有时您想将基本URL(博客的URL或活动模板的URL)放入内容编辑器中。

Times when the template customising isn’t quite flexible enough.

模板自定义不够灵活的时候。

With this plugin you can use [home_url] to output the base URL of the blog (as set in your Settings).

使用此插件,您可以使用[home_url]输出博客的基本URL(在“设置”中设置)。

Or, you can use [theme_url_template] to output the URL of the active template.

或者,您可以使用[theme_url_template]输出活动模板的URL。

For example in your editor might output (if http://localhost/wp-demo is what you have configured as your blog URL in Settings).

test.png“ /> (如果在“设置”中将http:// localhost / wp-demo配置为博客URL)。

The supported short codes are as follows:

受支持的短代码如下:

* [home_url] – the configured blog URL (set in Settings).

* [home_url] –配置的博客URL(在“设置”中设置)。

E.g.

例如。

http://localhost/wp-demo

http:// localhost / wp-demo

* [theme_url_template] – the URL of the active template.

* [theme_url_template] –活动模板的URL。

E.g.

例如。

http://localhost/wp-demo/wp-content/themes/mytheme

http:// localhost / wp-demo / wp-content / themes / mytheme

License

许可证

This plugin uses the GPLv3 license.

此插件使用GPLv3许可证。

安装步骤

Use WordPress Add New Plugin feature, searching “BASIC URL ShortCodes”, or download the archive and:

使用WordPress的“添加新插件”功能,搜索“ BASIC URL短代码”,或下载存档,然后:

    1. Unzip the archive on your computer
    2. 在计算机上解压缩存档

    3. Upload basic-url-shortcodes directory to the /wp-content/plugins/ directory
    4. basic-url-shortcodes 目录上传到 / wp-content / plugins / 目录

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

    7. Use shortcode & enjoy
    8. 使用简码并享受

下载地址
https://downloads.wordpress.org/plugin/basic-url-shortcodes.zip
-EOF-

AI助手支持GPT4.0