[WordPress] 外掛分享: xili Post in Post

WordPress 外掛 xili Post in Post 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「xili Post in Post」是 2010-11-13 上架。
  • 目前有 80 個安裝啟用數。
  • 上一次更新是 2019-05-21,距離現在已有 2173 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
  • 有 4 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

michelwppi |

外掛標籤

page | post | posts | theme | multilingual |

內容簡介

xili-postinpost 提供了一個三合一的工具包,在網頁的任何地方(WP 迴圈的內外)插入文章。所顯示的文章是由查詢(參見代碼)產生的,就像 WP 迴圈中的查詢一樣,但不會干擾主要的 WP 迴圈。Widget 包含有條件語法。

Template tag 函數 xi_postinpost() - 見原始碼,
像 [xilipostinpost query="p=1"] 或

[xilipostinpost query="cat=3,4,150&showposts=2&lang=en_us"]
的短碼(shortcode)。

帶有參數lang設置為cur的短碼,像

[xilipostinpost query="cat=3,4,150&showposts=2" lang="cur"]
將根據當前語言(例如:在未定義的頁面中顯示,根據瀏覽器語言顯示)。

和使用查詢結果上下文顯示的功能強大的 Widget。

此外,開發人員、作者和網站管理員均可使用。

在 Widget(和 template tag)中,如果設置了選項,可以選擇顯示期限和過期日期。

在 Widget 中(如果啟用了xili-language 插件),可以使用像 [query="cat=14" lang="cur"] 的參數,用方括號[]和 lang 設置為 cur 來組合查詢和當前語言。不要將 cur 放在查詢中。詳見屏幕截圖。

對於返回的結果列表中的每篇文章,顯示的結果都可以高度自定義,可以包含標題、摘要、內容、縮略圖像和帶或不帶指向單篇文章的鏈接。

即使在文章列表中使用了短碼,分頁也會被保留。

1.7.02版新增:

最後更新日期:2019-05-20
見變更日誌中的標籤和章節

更多信息

在 WP 單站和多站測試通過。

為什麼使用這個外掛?

xili-postinpost 是在最少的 PHP 編程 下(但不是所有人都可以理解),與終端用戶工具(如 widget)之間的折衷方案 - 但在背景中有大量 php 代碼 - 為CMS的網站管理員和數據設計師提供靈活性。插件的核心函數( xi_postinpost() )及其豐富的引數(有很多參數的數組)是四年前創建的,旨在將最新的新聞插入到標題中,將目標文章插入到頁面或文章的內容中的blockquote內。公開版本就像完成一本書一樣。請注意,免費的代碼不是免費的,引用用於商業用途或客戶的費用並捐贈。對於免費使用,請發送電子郵件!

Widget 中的查詢是否遞歸?

否,只有在第一個查詢為 false 的情況下才能組合一個真查詢和另一個查詢:語法是 [condition=… query=…]:[query=…]。第二部分可以像屏幕截圖6中那樣有自己的條件。

原文外掛簡介

xili-postinpost provides a triple toolkit to insert post(s) everywhere in webpage – outside or inside WP loop – . The displayed post(s) are resulting of queries (see codex) like those in WP loop but not interfere with main WP loop. Widget contains conditional syntax.

Template tag function xi_postinpost() – see source ,
shortcode like [xilipostinpost query="p=1"] or like

[xilipostinpost query="cat=3,4,150&showposts=2&lang=en_us"]

.

A shortcode like

[xilipostinpost query="cat=3,4,150&showposts=2" lang="cur"]

with param lang set to cur give a result according the current language (example: inside an undefined page displayed according browser language).

and widget with powerful syntax for contextual display of query’s result.

are available for developers, authors and webmasters.
In widget (and template tag), if option is set, it is possible to choose display period and expiration date.
In widget – if xili-language plugin active – to combine a query and the current language use params like [query="cat=14" lang="cur"] with square bracket[] and lang set cur. Don’t put cur in query. See screenshot.
For each post of the resulting list, the displayed result is hightly customizable and can contain title, excerpt, content, thumbnail image with or without link to the post as single.
Paging is preserved even if a shortcode is used in a list of posts.
New with 1.7.02 :

Last Updated 2019-05-20
see tab and chapters in changelog

More infos

Tested on WP mono and multisite mode.

Why this plugin ?
xili-postinpost is compromise between minimum php coding (but not accessible by everybody) and end-user tool (like widget) – but with lot of php lines in background – to afford flexibility for webmaster and data-designer for CMS. The core function of the plugin ( xi_postinpost() ) and its rich argument (array with lot params) was created 4 years ago to insert by example a recent news in header, a target post inside blockquote set in content of a page or a post. Doing a public version is like finishing a book. Remind that free code is not gratis, include fees in quotation for commercial use or clients and donate. For free use, send an email!
Are the queries recursive in widget ?
No, it is only possible to combine one true and another one if the first is false: the syntax is [condition=… query=…]:[query=…]. The second part can have is own condition as in screenshot 6.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「xili Post in Post」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.9.0 | 0.9.1 | 0.9.2 | 0.9.3 | 0.9.4 | 0.9.5 | 0.9.6 | 0.9.7 | 1.0.0 | 1.0.1 | 1.1.0 | 1.1.1 | 1.2.0 | 1.2.1 | 1.2.2 | 1.3.0 | 1.4.0 | 1.4.1 | 1.5.0 | 1.5.1 | 1.5.2 | 1.5.3 | 1.6.0 | 1.6.1 | 1.6.2 | 1.6.4 | trunk | 1.7.02 |

延伸相關外掛(你可能也想知道)

  • Kirki Customizer Framework 》 , 新增 -現在可使用 Kirki PRO , Kirki讓佈景主題開發者更快速、更輕鬆建立佈景主題。, Kirki 提供超過 30 個自訂控制,範圍從簡單的滑桿到具有 Google ...。
  • Child Theme Configurator 》res and options to help you take complete control of your WordPress site's visual appearance. With PRO, you can handle any plugin's CSS styles, pre...。
  • Easy Theme and Plugin Upgrades 》WordPress 具有透過提供壓縮檔案安裝主題和外掛的內置功能。不幸的是,您無法使用相同的過程升級主題或外掛。相反,當試圖使用壓縮檔案升級時,WordPress 會...。
  • Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。
  • All In One Favicon 》查看最新的WordPress交易以優化您的網站。, All In One Favicon為您的網站和管理頁面添加favicon。, 您可以使用您已經上傳的favicon或使用內置的上傳機制將fa...。
  • Theme Editor 》主題編輯器 (Theme Editor) 允許您編輯主題文件、建立資料夾、上傳檔案,以及在主題和外掛中移除任何檔案和資料夾。您可以直接自訂主題和外掛。, 升級至專業...。
  • Download Plugins and Themes in ZIP from Dashboard 》在儀表板下載外掛和佈景主題外掛可讓您直接從管理儀表板下載已安裝的外掛和佈景主題 ZIP 檔案而無需使用 FTP。, 外掛中沒有必須的設置 - 安裝後,所有以下 Do...。
  • Cryout Serious Theme Settings 》這個外掛是為了與我們的 Nirvana、Tempera、Parabola 和 Mantra 主題互相運作,並在目前的 WordPress 版本上啟用其進階設定頁面。, 相容性, 無論 WordPress ...。
  • WP Updates Notifier 》這個外掛程式會監控你的 WordPress 安裝,並會在核心、外掛程式和佈景主題更新時發送電子郵件通知你。如果你不經常登入 WordPress 管理員,或支援客戶的網站...。
  • Disable auto-update Email Notifications 》自 WordPress 5.5 起,若您已啟用外掛或佈景主題自動更新功能,當外掛或佈景主題自動更新成功或失敗時,您將會收到一封電子郵件通知。, 如果你管理多個網站,...。
  • WP Child Theme Generator 》WP子佈景主題產生器是一個非常簡單易用的外掛,可用於為WordPress CMS支援的任何佈景主題創建子佈景主題。使用多種選項創建子佈景主題,您可以輕鬆地創建和自...。
  • Multi Device Switcher 》Multi Device Switcher外掛允許您為設備(智能手機、平板電腦、手機、遊戲和自定義)設置單獨的佈景主題。, 此外掛可以偵測到使用者代理(UserAgent)是否正在...。
  • Multiple Themes 》重要提示:支援服務已移至 ZATZLabs 網站,不再於 WordPress.org 論壇提供。如需開發者迅速回覆,請提交請求單。, 此外掛設定提供多種選擇方式,可讓您選擇要...。
  • Disable All WordPress Updates 》這個外掛可以完全停用 WordPress 的主題、外掛和核心更新檢查系統。該插件防止 WordPress 檢查更新,包括 cronjobs,並防止顯示任何通知訊息。, 很重要的是,...。
  • WP-LESS 》LESS 是一種基於 CSS 的樣板語言。它提供了許多增強功能,以加速開發並使維護更容易。, 主題開發人員甚至可以捆綁該外掛而不用擔心衝突:只需包含特殊的 boot...。

文章
Filter
Apply Filters
Mastodon