[WordPress] 外掛分享: Wueen

首頁外掛目錄 › Wueen
WordPress 外掛 Wueen 的封面圖片
10+
安裝啟用
尚無評分
417 天前
最後更新
問題解決
WordPress 4.8+ PHP 5.6+ v0.2.0 上架:2025-01-26

內容簡介

### Wueen WordPress 外掛總結:
- 有時候,您需要在多個文章中使用相同的內容作為共享內容。共享內容可以節省時間,但複製和粘貼的傳統方法並不理想。以下是原因:
- 編輯麻煩。如果內容在多個文章中複製,進行更新變得耗時且令人沮喪。
- 文章大小變得臃腫。如果共享內容較長並在多個文章中使用,可能會不必要地增加數據庫的大小。
- 這就是 Wueen 外掛登場的時刻!通過簡單的短代碼和 wueen-blocket 自訂文章類型,您可以優化這個過程。以下是它的操作方式:

### 問題與答案:
1. 如何使用 Wueen 外掛創建共享內容?
- 在管理儀表板選單中,導航至「Wueen Blockets」並點擊「新增 Blocket」。
- 輸入標題和您的內容。注意:標題僅用於組織目的,不會顯示在前端。

2. 如果內容包含重複或動態值,應如何定義變數?
- 您可以使用「Wueen Blocket Variables」元框定義它們。
- 以小寫字母命名變數,將空格用連字符(-)替換。
- 在內容中,使用花括號({})包裹變量名稱。
- 例如,如果您的變數名稱是版本,則在內容中包含 {version} 以動態替換它。

3. 如何複製並使用短代碼(Shortcode)?
- 您可以在發布元框下找到短代碼。它看起來像這樣:
````html
[wueen-blocket id="POST_ID"][/wueen-blocket]
````
- 複製這個短代碼,可以在需要的地方使用。

4. 介紹短代碼的結構及其附加屬性。
- id 屬性是必填的,其他屬性可以自定義功能:
- content-position:接受 after 或 before。默認值為 after。指定短代碼內容應在指定 ID 的內容之前或之後顯示。
- shortcode:接受 on 或 off。默認值為 on。控制是否執行共享內容中的任何短代碼。
- err-404:如果未找到 ID,指定錯誤消息。默認值為「Wueen Blocket {id} 未找到」。
- 以 v- 開頭的自定義屬性:覆蓋變量值。例如,v-version 可以設置版本變量的新值。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Wueen」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Sometimes, you need to use the same content across multiple posts as shared content. This shared content can save time, but the usual method of copying and pasting isn’t ideal. Here’s why:
– Editing is a hassle. If the content is copied across several posts, making updates becomes time-consuming and frustrating.
– Post size gets bloated. If the shared content is lengthy and used in multiple posts, it can unnecessarily increase your database size.
That’s where the Wueen plugin steps in to save the day!
With a simple shortcode and the wueen-blocket custom post type, you can streamline this process. Here’s how it works:
1- Create your shared content as a wueen-blocket post.
2- Use the shortcode, which includes the content’s unique ID, to insert it into any post, page, or widget.
Now for the cool part: You can make your content dynamic with variables!
Add key-value pairs to your wueen-blocket post, and use them inside curly braces { } within the text. When the shortcode is used, these variables will automatically be replaced with their values. And here’s the cherry on top: You can override these values directly in the shortcode to make the content even more adaptable!
With Wueen, managing shared content has never been easier—or more flexible. 😊
Features
– Custom Post Type wueen-blocket: Easily create and manage shared content.
– Variable Definition: Add key-value variables to your wueen-blocket posts and use them directly within the content.
– Shortcode Support: Insert content from any wueen-blocket post anywhere using its unique ID (post ID).
– Dynamic Variables: Override variables directly through the shortcode for added flexibility.
– Nested Shared Content: The ability to use any shortcodes within contents.
Usage

Create a New Wueen Blocket
– From the admin dashboard menu, navigate to Wueen Blockets and click on Add New Blocket.
– Enter a title and your content. Note: The title is for organizational purposes only and won’t appear on the front end.

Define Variables (Optional)
– If your content includes repetitive or dynamic values, you can define them using the Wueen Blocket Variables metabox.
– Use lowercase letters for variable names and replace spaces with hyphens (-).
– In your content, wrap the variable names in curly braces { }.
For example, if your variable name is version include {version} in your content to dynamically replace it.

Copy the Shortcode:
You’ll find the shortcode under the Publish metabox. It looks like this:
[wueen-blocket id=”POST_ID”][/wueen-blocket]
Copy and use the shortcode wherever needed.

Shortcode Structure
The id attribute is required, while additional attributes can customize functionality:
– content-position: Accepts after or before. Default value is after. It determines whether the content inside the shortcode tags should appear before or after the content specified by the ID.
– shortcode: Accepts on or off. Default value is on. It controls whether any shortcodes within the shared content are executed.
– err-404: Specifies the error message if the ID is not found. Default: “Wueen Blocket {id} not found”.
– Custom attributes starting with v-: Override variable values. For example, v-version can set a new value for the version variable.

文章
Filter
Apply Filters
Mastodon