{"id":13261,"date":"2011-05-15T13:39:10","date_gmt":"2011-05-15T13:39:10","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/boones-pagination\/"},"modified":"2012-05-02T14:17:38","modified_gmt":"2012-05-02T14:17:38","slug":"boones-pagination","status":"publish","type":"plugin","link":"https:\/\/es.wordpress.org\/plugins\/boones-pagination\/","author":2881701,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1","stable_tag":"1.1","tested":"3.3.2","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"Boone's Pagination","header_author":"Boone B Gorges","header_description":"","assets_banners_color":"","last_updated":"2012-05-02 14:17:38","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/github.com\/boonebgorges\/boones-pagination","header_author_uri":"http:\/\/boonebgorges.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2016,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1487,900],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-13261","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-post-types","plugin_tags-pagination","plugin_committers-boonebgorges"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/boones-pagination.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Here's how I recommend using the class.<\/p>\n <ol>\n<li>Either activate this plugin, or include the class in your own plugin file.<\/li>\n<li>When you start to render the page with the post list, instantiate the pagination class, using an argument array if you'd like: $pargs = array(   'get_per_page_key' =&gt; 'perpage',   'get_paged_key'    =&gt; 'current_page',   'per_page'         =&gt; 15 ); $pagination = new BBG_CPT_Pag( $args );<\/li>\n<li>When constructing your query arguments (for query_posts() or WP_Query), you can use the class to get your pagination arguments out of the $_GET parameters. For instance: $args = array(   ...   'posts_per_page' =&gt; $pagination-&gt;get_per_page,   'paged' =&gt; $pagination-&gt;get_paged   ... ); query_posts( $args );<\/li>\n<li>After firing the query, use the <code>setup_query()<\/code> method to populate the rest of the class. If you used <code>query_posts()<\/code>, you don't need an argument: $pagination-&gt;setup_query(); If you use <code>new WP_Query<\/code>, you'll have to pass the query object: $my_query = new WP_Query; $pagination-&gt;setup_query( $my_query );<\/li>\n<li>Then you can use all sorts of fun methods, like $pagination-&gt;paginate_links(); $pagination-&gt;currently_viewing_text();<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n <ul>\n<li>Adds additional customization arguments. Thanks, r-a-y!<\/li>\n<\/ul>\n <h4>1.0.1<\/h4>\n <ul>\n<li>Updates plugin structure to keep plugin metadata in a separate loader file<\/li>\n<\/ul>\n <h4>1.0<\/h4>\n <ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"A handy, extensible class for paginating your custom post type lists.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13261"}],"author":[{"embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/boonebgorges"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13261"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13261"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13261"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13261"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13261"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}