前言介紹
- 這款 WordPress 外掛「Post Index Helpers」是 2010-09-12 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2025-04-20,距離現在已有 15 天。
- 外掛最低要求 WordPress 2.8 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
loop | post | index | position | template tags |
內容簡介
這個外掛提供了十三個與文章在迴圈中的位置相關的有用的樣板標籤。
這個外掛提供的部分樣板標籤與當前迴圈中當前文章的位置相關:
c2c_is_first()
c2c_is_last()
c2c_is_at_index()
c2c_is_even()
c2c_is_odd()
c2c_get_the_index()
c2c_is_index_within()
c2c_the_index()
其他函數可幫助您在當前迴圈中獲取在給定位置的文章(或文章):
c2c_get_post_by_index()
c2c_get_posts_by_index()
而剩下的三個函數則與迴圈的索引信息有關:
c2c_get_last_index()
c2c_is_post_in_loop()
c2c_is_valid_index()
請查看“模板標籤”一節(有時會在其他注意事項部分下找到)以獲取所有函數及其參數的描述。
請注意,索引計數從0開始,這意味著第一個項目的索引為0。索引為-1表示沒有找到文章。
鏈接: 插件主頁 | 插件目錄頁面 | GitHub | 作者主頁
開發者文件
開發人員文件可以在DEVELOPER-DOCS.md中找到。該文件涵蓋了外掛提供的眾多模板標籤。
作為概述,這些是外掛提供的樣板標籤:
c2c_get_last_index() :獲取迴圈中最后一篇文章的索引號
c2c_get_post_by_index() :根據指定的索引獲取文章
c2c_get_posts_by_index() :根據指定的索引數組獲取文章
c2c_get_the_index() :獲取當前文章的索引
c2c_is_at_index() :當前索引是否在指定的索引內?
c2c_is_even() :當前文章是否在偶數位置?(即0、2、4、…)
c2c_is_first() :當前文章是否為列表中的第一篇文章?
c2c_is_last() :當前文章是否為列表中的最后一篇文章?
c2c_is_odd() :當前文章是否在奇數位置?(即1、3、5、…)
c2c_is_index_within() :當前文章(或位於指定索引的文章)是否在指定範圍內?
c2c_is_post_in_loop() :指定的文章是否在當前迴圈中?
c2c_is_valid_index() :指定的索引是否有效?
c2c_the_index() :輸出當前文章的索引
原文外掛簡介
This plugin provides thirteen handy template tags that relate to the index/position of a post within a loop’s listing of posts.
Some of the template tags provided by this plugin relate to the position of the current post within the current loop:
c2c_is_first()
c2c_is_last()
c2c_is_at_index()
c2c_is_even()
c2c_is_odd()
c2c_get_the_index()
c2c_is_index_within()
c2c_the_index()
Other functions help you get a post (or posts) at a given position in the current loop:
c2c_get_post_by_index()
c2c_get_posts_by_index()
While the remaining three functions relate to index information about the loop in general:
c2c_get_last_index()
c2c_is_post_in_loop()
c2c_is_valid_index()
Please see the Template Tags section (in some places found under the Other Notes section) for descriptions of all the functions and their arguments.
Note that index counting begins at 0, which means the first item has an index of 0. An index of -1 indicates no posts were found.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
Developer Documentation
Developer documentation can be found in DEVELOPER-DOCS.md. That documentation covers the numerous template tags provided by the plugin.
As an overview, these are the template tags provided the plugin:
c2c_get_last_index() : Gets the index number for the last post in the loop listing
c2c_get_post_by_index() : Get post based on specified index
c2c_get_posts_by_index() : Get posts based on specified array of indexes
c2c_get_the_index() : Get the index for the current post
c2c_is_at_index() : Is the current index at the specified index?
c2c_is_even() : Is the current post at an even position? (i.e. 0, 2, 4, …)
c2c_is_first() : Is the current post the first listed post?
c2c_is_last() : Is the current post the last listed post?
c2c_is_odd() : Is the current post at an odd position? (i.e. 1, 3, 5, …)
c2c_is_index_within() : Is the current post (or one at the specified index) within the bounds of a specified range?
c2c_is_post_in_loop() : Is the specified post within the current loop?
c2c_is_valid_index() : Is the specified index valid?
c2c_the_index() : Echo the current post’s index
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Post Index Helpers」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.0.1 | 1.0.2 | 1.0.3 | 1.1.1 | 1.1.2 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.6 | 1.2.7 | 1.2.8 | 1.2.9 | 1.4.1 | 1.4.2 | 1.4.3 | 1.4.4 | 1.4.5 | trunk |
延伸相關外掛(你可能也想知道)
Index WP MySQL For Speed 》如何使用這個外掛?, 安裝並啟用這個外掛後,前往「工具」選單下的「索引 MySQL 工具」。從那裡,您可以按下「立即新增索引鍵」的按鈕。如果您有大型資料表,...。
Heroic Table of Contents 》WordPress目录插件, Heroic目录是为您的网站添加目录的最简单方法。, 目录或索引部分可让读者轻松浏览您网站上的页面。Heroic目录块自动检测页面上的标题,提...。
Name Directory 》名稱目錄:建立自己的詞彙表!, 此外掛可將名稱/術語目錄(詞彙表)添加到 WordPress 網站中。, 您的網站輸出看起來就像是一個詞彙表/索引,包含有搜尋功能。...。
azurecurve Toggle Show/Hide 》切換以顯示/隱藏內容(允許自定義標題)。, 使用基本格式 [toggle]content[/toggle] 以使用切換。, 使用 title 參數設置標題:[toggle title=’點擊以顯...。
Index WP Users For Speed 》此外掛程式可加速處理WordPress註冊使用者,尤其當您的網站有許多千個使用者時更是方便。(恭喜!建立一個擁有數千使用者的成功網站是一大成就。) 透過最佳化 ...。
EasyIndex 》使用 EasyIndex 輕鬆在 WordPress 網誌上製作索引,並且支援即插即用。, 大多數其他索引解決方案需要你費力選擇並添加你想要索引的每個分類或標籤,甚至需要...。
Sitemap Index 》此外掛自動製作 XML 格式的虛擬網站地圖(sitemaps)和地圖索引,並使用 sitemap.org 協議。, 功能, , 一鍵安裝網站地圖, 製作文章、頁面、標籤和分類網站地...。
AZIndex 》AZIndex 外掛可讓您創建多個帖子的三級字母索引,索引基於以下任意組合的帖子標題、作者、摘要、標籤、類別或自選的自訂欄位。使用類別和標籤的組合來選擇包...。
Fast Speed Index 》這個外掛能夠快速索引(index)和優化ping功能。對於您的網站而言,快速的索引是通知訂閱者和用戶的一種有用方式。, 此外,此外掛還有ping優化器:ping只在發布...。
Woo Zap Mirror 》關於這個外掛, 這個外掛會為你的 WooCommerce 商店建立一個鏡像網站,讓我們能更好地索引你的商店內容。這個鏡像網站是為了 Zap 所設計的。。
No-Indexer 》,
- ,
- 精簡介紹:No-Indexer 是一個 WordPress 外掛,可讓您在所有頁面設置側邊欄中添加一個勾選框,以設定特定頁面的 noinde...。
Multi-Site Site List Shortcode 》此外掛新增一個簡碼,讓多站管理者可以顯示當前安裝的所有站台的清單。可以按字母順序或站台建立日期排序,也可以指定個別站台從清單中移除。請注意,此外掛...。
Rapid URL Indexer for WP – Index Websites in Google 》總結:Rapid URL Indexer是一個強大的WordPress外掛,與Rapid URL Indexer索引服務結合,幫助您快速有效地將網站頁面索引到Google上。具有行業領先的索引率和...。
Subpagelister 》這個外掛可以顯示子頁面的清單,支援顯示內容或摘要、按鈕和鏈接、精選圖片以及版面配置等選項。在任何頁面中輸入短碼 [subpagelist] 即可生成該列表。以下是...。
Excerpt Image Link 》這是一個 WordPress 外掛,它會在摘要中尋找
標籤,並如果找到,將其包含在指向文章永久鏈接的連結內。, , 此外掛可以協助在索引頁面上顯示摘要...。