[WordPress] 外掛分享: Nzymes

首頁外掛目錄 › Nzymes
WordPress 外掛 Nzymes 的封面圖片
全新外掛
安裝啟用
尚無評分
3216 天前
最後更新
問題解決
WordPress 4.7+ v1.0.0 上架:2017-05-28

內容簡介

你的問題

你想在文章內做些事情,但可能缺乏相對應的外掛程式。

Nzymes的解決方案

輕鬆且安全地將PHP程式碼插入文章內。
自己撰寫或信任部落格作者編寫功能。

範例

當在文章中引用作者時,你想顯示他們發布文章的數量。也許有外掛程式可以解決這個問題,也許沒有。但在WordPress中,有一個函數可以解決這個問題 (count_user_posts)。

使用Nzymes,你可以像這樣引用作者:

如你所知,{[ =約翰= | @我的引用(1) ]} 和我是很好的朋友。

顯示如下:

如你所知,約翰(42篇文章) 和我是很好的朋友。

有了Nzymes,很多事情只需要寫幾行PHP程式碼即可實現。

為什麼不將「(42篇文章)」顯示為紅色?
為什麼不將「約翰」鏈接到約翰的文章?

一覽表

Nzymes注入的表達式如下:{[ 酵素-1 | 酵素-2 | … 酵素-N ]}

Nzymes自動篩選文章的標題、摘要和內容,搜尋注入的表達式。
對於每個找到的表達式,它會按順序左到右地替換每個酵素的值。
然後,它將最後一個酵素的值替換成整個表達式的值。

使用手冊: https://github.com/aercolino/nzymes/blob/master/nzymes-manual.md

聯繫方式

社群: https://www.facebook.com/NzymesPlugin/
下載: https://wordpress.org/plugins/nzymes/
開發: https://github.com/aercolino/nzymes

外掛標籤

開發者團隊

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

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

原文外掛簡介

Your Problem

You want to do something inside a post, but a plugin might not exist.

Nzymes Solution

Insert PHP code into posts’ content easily and safely.
Program features by yourself or trust some of your blog’s authors.

Example
When citing authors in a post, you’d like to show the number of posts they published. Maybe there is a plugin for that, maybe there is not. Anyway, how difficult to code would it be? Quite easy, actually, given that WordPress has a function to do exactly that (count_user_posts).
With Nzymes, you could cite authors like this

As you know, {[ =john= | @my.cite(1) ]} and I are very good friends.

Which could be shown like this

As you know, John (42 posts) and I are very good friends.

With Nzymes, many things are just a couple of PHP lines away.

Why not display “(42 posts)” in red?
Why not link “John” to John’s posts?

At a glance
Nzymes injections are expressions like this: {[ enzyme-1 | enzyme-2 | … enzyme-N ]}

Nzymes automatically filters title, excerpt, and content of a post looking for injections.
For each found injection, it orderly replaces each enzyme with its value, left to right.
Then it replaces the value of the last enzyme to the whole injection.

Manual: https://github.com/aercolino/nzymes/blob/master/nzymes-manual.md
Reach out

Community: https://www.facebook.com/NzymesPlugin/
Download: https://wordpress.org/plugins/nzymes/
Develop: https://github.com/aercolino/nzymes

延伸相關外掛

文章
Filter
Apply Filters
Mastodon