[WordPress] 外掛分享: SDK WP DYNAMIC URL

首頁外掛目錄 › SDK WP DYNAMIC URL
10+
安裝啟用
尚無評分
2645 天前
最後更新
問題解決
WordPress 3.0+ v1.0.6 上架:2018-12-17

內容簡介

SDK WP DYNAMIC URL 可以幫助您定制 URL,而無需添加靜態 URL。它會自動提取 site_url(),並根據參數或未使用參數創建 URL。

它會在 WordPress 的“儀表板”->“設置”->“SDK WP DYNAMIC URL”中添加一個設置頁面,您可以在此定制設置,但目前正在開發中。它將會在未來的版本中推出。

用法

下載並提取 sdk-wp-dynamic-url.zip 到 wp-content/plugins/
通過 WordPress 的“插件”菜單啟用插件。
将短代码粘贴到您的文章或页面中。

如果您只想在文章中使用 site_url(),請使用:-

[sdk-site-url]

如果您想要 site_url() 的話,可以將 ‘path’ 參數留空。

對於終止 URL,您可以像這樣使用。

[sdk-site-url path="PATH_OF_IMAGE"]

使用示例:

[sdk-site-url path="/assets/images/sdk.jpg"]

上述短代码將輸出:

http://your_domain_name.com/assets/images/sdk.jpg

對於 PHP 文件,您可以像這樣使用:

<?php do_shortcode('[SHORTCODE_HERE]'); ?>

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.6) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「SDK WP DYNAMIC URL」→ 直接安裝(推薦)

原文外掛簡介

SDK WP DYNAMIC URL can help you to customzise the url without the hurdle of adding the static url. It automatically fetches the site_url() and create the URL based on parameters or without parameters.
It adds a settings page to “Dashboard”->”Settings”->”SDK WP DYNAMIC URL” where you can customize the settings but currently under development. It will be in future versions.
Usage

Download and extract sdk-wp-dynamic-url.zip to wp-content/plugins/
Activate the plugin through the ‘Plugins’ menu in WordPress.
Paste the shortcode in your posts or pages.

If you want only the site_url() in your posts, then use:-
[sdk-site-url]

You can leave the ‘path’ parameter as blank if you want only site_url().
For terminating URL’s You can use it like.
[sdk-site-url path="PATH_OF_IMAGE"]

Example Usage:-
[sdk-site-url path="/assets/images/sdk.jpg"]

The above shortcode will output.
http://your_domain_name.com/assets/images/sdk.jpg

For php files you can use this like.

文章
Filter
Apply Filters
Mastodon