[WordPress] 外掛分享: Current Post Shortcode

WordPress 外掛 Current Post Shortcode 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Current Post Shortcode」是 2025-03-11 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2025-03-12,距離現在已有 53 天。
  • 外掛最低要求 WordPress 6.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

mdforiduddin |

外掛標籤

post meta | shortcode | post title | custom field |

內容簡介

總結:這個「Current Post Shortcode」外掛讓你可以使用簡單的短代碼來顯示文章標題和自訂欄位數值。你可以顯示目前文章的標題或元資訊,或指定文章ID來擷取特定文章的資料。

問題與答案:
1. 使用「Current Post Shortcode」外掛可以做什麼?
使用簡單的短代碼來顯示文章標題和自訂欄位數值。
2. 如何顯示目前文章的標題?
使用 [current_post] 這個短代碼。
3. 如何顯示目前文章的元資訊(自訂欄位)?
使用 [current_post meta="custom_field"] 這個短代碼。
4. 如何從特定文章ID擷取資料?
使用 [current_post id="123"] 這個短代碼。

原文外掛簡介

The “Current Post Shortcode” plugin allows you to display post titles and custom field values using simple shortcodes. You can display the current post’s title or meta information, or specify a post ID to retrieve data from a specific post.
Shortcodes

Display Current Post Title and Meta Information:

Post Title: [current_post]
Post Meta (Custom Field): [current_post meta="custom_field"]

Display Data from a Specific Post ID:

Post Title: [current_post id="123"]
Post Meta: [current_post id="123" meta="custom_field"]

各版本下載點

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

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


1.0.0 | trunk |

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

  • Smart Custom Fields 》Smart Custom Fields 是一個管理自訂欄位的簡單外掛。, 功能, , 支援自訂欄位群組迴圈。, 支援元資料修訂。, 支援元資料預覽。, , , 欄位類型, , 文字, 文字...。
  • Custom Post Types and Custom Fields creator – WCK 》WordPress Creation Kit 是由三個工具組成,可幫助您建立和維護自訂文章類型、自訂分類和最重要的是文章、頁面或自訂文章類型的自訂欄位和元框。, WCK Custom...。
  • Meta Field Block 》這個外掛允許開發者/使用者在前端以區塊方式顯示元資料欄位,並支援 ACF 欄位。它可以嵌套在具有 postId、postType 上下文(如 Query Block)的父區塊內,也...。
  • Date and Time Picker Field 》這是針對 WordPress 的 Advanced Custom Fields 外掛的擴充版本,可以讓您新增日期和時間選擇器欄位。, ACF PRO 5.0+ 不再支援,ACF PRO 自己有日期和時間選...。
  • VK Dynamic If Block 》網站架設者可以使用 VK Dynamic If Block 這個 WordPress 自訂區塊,透過特定條件去顯示或隱藏內部區塊。可以設定許多條件,例如顯示首頁、顯示單篇文章、顯...。
  • Easy Post Types and Fields 》m your custom post types., , , Include custom fields and taxonomies in the table., , , Customize the table columns to display only the information ...。
  • Custom fields shortcode 》使用方法:, 在文章內使用 [cf] 短碼,就可以不必編輯主題檔案,直接顯示自訂欄位的值。, 範例:, [cf]somekey[/cf], 會回傳「somekey」自訂欄位的值。。
  • Advanced Custom Fields – Taxonomy Field add-on 》這是一個進階自訂欄位插件 (Advanced Custom Fields) 的附加元件, 在未安裝並啟用進階自訂欄位插件之前,這個附加元件將無法提供任何 WordPress 的功能。, 這...。
  • Advanced Custom Fields – Location Field add-on 》這是一個針對Advanced Custom Fields WordPress 外掛的擴充套件,除非已安裝且啟用 Advanced Custom Fields,否則對 WordPress 不提供任何功能。, Location ...。
  • ACF: Google Map Extended 》此外掛程式會為 Advanced Custom Fields (ACF) 建立一個新欄位,並擴展了內建 Google 地圖欄位的功能,增加了一些實用功能:, , 保存地圖中心。您可以將地圖...。
  • Ultimate Taxonomy Manager 》該外掛是一個易於使用的分類管理器,可自定義分類和自定義欄位,具有出色的 UI。, 立即下載!, [外掛網址] | [教學] | [最終文章型別管理器], [[本外掛的升級...。
  • SuperCPT 》CPT with a string for the taxonomy name. For example,, $genre = new Super_Custom_Taxonomy( 'genre' );, , It works a lot like register_taxonomy. The...。
  • Redirect by Custom Field 》有時候您需要在自己的網頁或文章中插入連結到外部網址的需求。這個外掛讓您可以輕鬆地透過設定自訂欄位來創建這樣的「重新導向」文章或頁面。, 使用方法:將...。
  • Advanced Custom Fields: NextGEN Gallery Field add-on 》這是一個針對WordPress的Advanced Custom Fields外掛程式,只有當Advanced Custom Fields已經被安裝並啟用時,才能夠為WordPress提供任何功能。, NextGEN Gal...。
  • My Upload Images 》這個外掛會在任何文章類型中建立具有媒體上傳程式的 metabox。在 metabox 中,您可以隨意拖曳圖像並調整順序。圖像的 ID 及順序會以陣列的形式記錄在文章的自...。

文章
Filter
Apply Filters
Mastodon