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.
- Login to your WordPress admin and go to Plugins -> Add New
- Type “Easy Pagination Control” in the search bar and select this plugin
- Click “Install”, and then “Activate Plugin”
Can I configure pagination for my own post types?
Yes, if the main WP query is used to output posts to the archive
Why was this plugin created?
For more control over pagination within the main WP query
لا توجد مراجعات لهذه الإضافة.
“Easy Pagination Control” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل في هذه الإضافة.المساهمون
* Fix an erroneous link to the settings page
* Added slugs to terms on the settings page to avoid name collisions
* Add public function easy_pagination_control_get_ppp($entity). This function allows you to extract the number of posts per page for the specified entity.
- Add advanced is_front_page() function for static front page compatibilities
- Simplified method for determining the archive page of a post type
- Change “Options API” to “Settings API”
- Moved the plugin settings page to the standard WP section “Reading”
- General code refactoring
- Reduced the priority of the “pre_get_posts” event to reduce the chances of conflicts with other pagination plugins
- Added support for Customizer
- Update readme
- Add ‘option_posts_per_page’ hook to return the correct number of elements on the page when using this plugin
- Now plugin styles and scripts are enabled only on the plugin page
- Update requirements for plugin (php7.0)
- Update readme
- Fix taxonomy pagination
- Add search page options
- Change default language to en_US
- Set required attr to input field
- Update readme
- Fix bug with default update template
- Fix bug with disabled button after error try
- Change ‘<?=’ to ‘<?php echo’ for better compatibility
- Added error handler for ajax
- All data is output from the database via escape functions
- Added escaping for default option template
- Added additional array-checking for form data
- Added additional validation of the number of elements on the page before writing to the database
- Added sanitize function for “name” option
- Added additional verification of user rights before saving changes
- Added nonce field for the plugin form
- Add plugin description to pot
- Set the unique namespace for plugin
- Change class’s names to ‘StudlyCase’
- Share the plugin to github