
內容簡介
這個外掛程式旨在為主要 WordPress 實體建立方便的分頁設置頁面,包括自訂類型。
您只能使用「pre_get_posts」鉤子來處理主要的 WordPress 查詢。其他請求將被忽略,這消除了與當前佈景主題設置的衝突。在開發插件時,著重於極簡和最大化的簡單性。
安裝後,必須配置插件。為此,進入「Easy Pagination Control」標籤並為每個實體設置所需的頁面中的元素數量。
插件是為了更好地控制主要 WP 查詢中頁面上元素的數量而創建的,因為默認情況下,WP 提供一次為所有頁面指定元素數量的選項。
*自版本 1.1.0 起,新增支援自訂器,因此您現在可以直接在前端配置分頁
*自版本 1.1.2 起,新增公共功能 easy_pagination_control_get_ppp($ Entity)。作為引數,它獲取實體的名稱(「Front-Page」、「Home」、「categories」、「Tags」、「Search」或文章類型的別名,或分類法的別名)。返回頁面上的元素數量。
外掛標籤
開發者團隊
原文外掛簡介
This plugin is designed to create a convenient page for pagination settings for the main wordpress entities, including custom types.
You can only work with the main wordpress query using the “pre_get_posts” hook. Other requests are ignored, which eliminates conflicts with the current theme settings. When developing the plugin, the emphasis was placed on maximum simplicity and minimalism.
After installation, the plugin must be configured. To do this, go to the “Easy Pagination Control” tab and set the desired number of elements on the page for each entity.
The plugin was created in order to have more control over the number of elements on pages within the main WP query, since by default, WP offers to specify the number of elements for all pages at once.
*Since version 1.1.0, Customizer support has been added, so you can now configure pagination directly in the frontend
*Since version 1.1.2, the public function easy_pagination_control_get_ppp($Entity) has been added. As an argument, it gets the name of the entity (‘Front-Page’, ‘Home’, ‘categories’, ‘Tags’, ‘Search’, or post type’s slug, or taxonomy’s slug). Returns the number of elements on the page.
