{"id":6540,"date":"2009-08-25T17:03:58","date_gmt":"2009-08-25T17:03:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-pagination\/"},"modified":"2014-12-27T20:03:15","modified_gmt":"2014-12-27T20:03:15","slug":"custom-pagination","status":"publish","type":"plugin","link":"https:\/\/jv.wordpress.org\/plugins\/custom-pagination\/","author":4093409,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"trunk","tested":"4.1.42","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Custom Pagination","header_author":"Dimitry Zolotaryov","header_description":"","assets_banners_color":"","last_updated":"2014-12-27 20:03:15","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/webit.ca","rating":5,"author_block_rating":0,"active_installs":20,"downloads":5910,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-3.gif":{"filename":"screenshot-3.gif","revision":"1539081","resolution":"3","location":"plugin"},"screenshot-1.gif":{"filename":"screenshot-1.gif","revision":"1539081","resolution":"1","location":"plugin"},"screenshot-2.gif":{"filename":"screenshot-2.gif","revision":"1539081","resolution":"2","location":"plugin"}},"screenshots":{"1":"Selecting text for a link to the next page","2":"Adding the next page link text","3":"The generated link"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1840,900],"plugin_category":[46],"plugin_contributors":[88987],"plugin_business_model":[],"class_list":["post-6540","plugin","type-plugin","status-publish","hentry","plugin_tags-editing","plugin_tags-pagination","plugin_category-editor-and-writing","plugin_contributors-dimitryz","plugin_committers-dimitryz"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-pagination.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/custom-pagination\/trunk\/screenshot-1.gif?rev=1539081","caption":"Selecting text for a link to the next page"},{"src":"https:\/\/ps.w.org\/custom-pagination\/trunk\/screenshot-2.gif?rev=1539081","caption":"Adding the next page link text"},{"src":"https:\/\/ps.w.org\/custom-pagination\/trunk\/screenshot-3.gif?rev=1539081","caption":"The generated link"}],"raw_content":"<!--section=description-->\n<p>With the Custom Pagination plugin, a user may customize the look of a post's next and previous links using the HTML editor. It is built by <a href=\"http:\/\/webit.ca\">WebIT.ca (Dimitry Zolotaryov)<\/a> and funded by <a href=\"http:\/\/datedaily.com\">DateDaily.com<\/a>: an online dating and relationship blog.<\/p>\n\n<p>The link is created by selecting the text label within a post's body and clicking the link icon. In the Link URL field, the following values will produce a link to another page:<\/p>\n\n<ul>\n<li><em>page:next<\/em> links to the next page<\/li>\n<li><em>page:prev<\/em> or <em>page:previous<\/em> links to the previous page<\/li>\n<li><em>page:first<\/em> links to the first page of the post<\/li>\n<li><em>page:last<\/em> links to the last page of a post<\/li>\n<li><em>page:n<\/em> links to the nth page of a post (e.g. page:2 for the second page)<\/li>\n<\/ul>\n\n<p>If link is directing to a page that does not exist -- for instance <em>page:next<\/em> on the last page --, the link and the link text do not appear.<\/p>\n\n<p>All links processed by Custom Pagination will have the added class name 'page'. If you wish to style such links, in your CSS, add the line:<\/p>\n\n<pre><code>a.page { \/* page style goes here *\/ }\n<\/code><\/pre>\n\n<p>For more information, visit the <a href=\"http:\/\/webit.ca\/2009\/08\/custom-pagination-plugin-for-wordpress\/\">Custom Pagination plugin homepage<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Copy or upload the <code>custom-pagination<\/code> directory into your <code>\/wp-content\/plugins\/<\/code> directory <\/li>\n<li>If you downloaded a zipped copy (i.e. <code>custom-pagination.zip<\/code>), use the 'Plugins' &gt; 'Add New' section of WordPress to upload it<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<p>Done.<\/p>\n\n<p>Actually, if you wish to use WordPress pagination when there is no Custom Pagination on a page, you may use the following PHP code:<\/p>\n\n<pre><code>\/\/ inside single.php\n\/\/ displays the standard pagination when no custom pagination link is found\nif ( ! cp_link_found() )\n    wp_link_pages(array('next_or_number' =&gt; 'next', 'nextpagelink'=&gt;'Next page &amp;raquo;', 'previouspagelink'=&gt;'&amp;laquo; Previous page'));\n<\/code><\/pre>\n\n<!--section=faq-->\n<p><em>Will the pagination work with custom permalinks?<\/em><\/p>\n\n<p>It should.<\/p>\n\n<p><em>What is the cost of the plugin?<\/em><\/p>\n\n<p>This plugin is provided free of charge thanks to the good people at <a href=\"http:\/\/mate1.com\">Mate1 Inc<\/a> and the site <a href=\"http:\/\/datedaily.com\">DateDaily.com<\/a>. You may use the Custom Pagination plugin for any purpose provided you keep the comment section of the custompagination.php file.<\/p>\n\n<p><em>How do I remove the default pagination<\/em><\/p>\n\n<p>If you are seeing the default pagination in your posts, you probably have the following code in you <code>content.php<\/code> theme file. Remove it and the default pagination should disappear.<\/p>\n\n<pre><code>    wp_link_pages( array(\n        'before'      =&gt; '&lt;div class=\"page-links\"&gt;&lt;span class=\"page-links-title\"&gt;' . __( 'Pages:', 'twentyfifteen' ) . '&lt;\/span&gt;',\n        'after'       =&gt; '&lt;\/div&gt;',\n        'link_before' =&gt; '&lt;span&gt;',\n        'link_after'  =&gt; '&lt;\/span&gt;',\n        'pagelink'    =&gt; '&lt;span class=\"screen-reader-text\"&gt;' . __( 'Page', 'twentyfifteen' ) . ' &lt;\/span&gt;%',\n        'separator'   =&gt; '&lt;span class=\"screen-reader-text\"&gt;, &lt;\/span&gt;',\n    ) );\n<\/code><\/pre>","raw_excerpt":"The Custom Pagination plugin allows a user to insert custom next, previous or numbered page links into a post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/jv.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/jv.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6540"}],"author":[{"embeddable":true,"href":"https:\/\/jv.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dimitryz"}],"wp:attachment":[{"href":"https:\/\/jv.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6540"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/jv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6540"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/jv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6540"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/jv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6540"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/jv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6540"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/jv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}