{"id":16244,"date":"2011-12-30T12:11:29","date_gmt":"2011-12-30T12:11:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/df-pagination\/"},"modified":"2011-12-30T12:41:24","modified_gmt":"2011-12-30T12:41:24","slug":"df-pagination","status":"publish","type":"plugin","link":"https:\/\/pcm.wordpress.org\/plugins\/df-pagination\/","author":8646937,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"3.3.2","requires":"2.7.0","requires_php":"","requires_plugins":"","header_name":"DF-Pagination","header_author":"Yawalkar Mallikarjun","header_description":"","assets_banners_color":"","last_updated":"2011-12-30 12:41:24","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/digitalfair.tk\/","header_plugin_uri":"http:\/\/digitalfair.tk\/development\/plugins","header_author_uri":"http:\/\/digitalfair.tk","rating":0,"author_block_rating":0,"active_installs":20,"downloads":6823,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>N\/A<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539072","resolution":"1","location":"plugin"}},"screenshots":{"1":"An example of the df-pagination display using the default options and styling"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[23471,1753,170,900],"plugin_category":[43,44,55],"plugin_contributors":[78379],"plugin_business_model":[],"class_list":["post-16244","plugin","type-plugin","status-publish","hentry","plugin_tags-df-pagination","plugin_tags-navigation","plugin_tags-page","plugin_tags-pagination","plugin_category-customization","plugin_category-discussion-and-community","plugin_category-seo-and-marketing","plugin_contributors-yawalkarm","plugin_committers-yawalkarm"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/df-pagination.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/df-pagination\/trunk\/screenshot-1.png?rev=1539072","caption":"An example of the df-pagination display using the default options and styling"}],"raw_content":"<!--section=description-->\n<p>DF-Pagination is a simple, flexible and cool pagination plugin which provides users with better navigation on your WordPress site. It has builtin 'rel=next' and 'rel=previous' markup.<\/p>\n\n<p>In addition to increasing the user experience for your visitors, it has also been widely reported that pagination increases the SEO of your site by providing more links to your content.<\/p>\n\n<p>Starting in version 1.0, DF-Pagination can also be used to pagination post comments!<\/p>\n\n<p>Translations: http:\/\/plugins.svn.wordpress.org\/df-pagination\/I18n (check the version number for the correct file)<\/p>\n\n<!--section=installation-->\n<p><em>Install and Activate<\/em><\/p>\n\n<ol>\n<li>Unzip the downloaded df-pagination zip file<\/li>\n<li>Upload the <code>df-pagination<\/code> folder and its contents into the <code>df-content\/plugins\/<\/code> directory of your WordPress installation<\/li>\n<li>Activate df-pagination from Plugins page<\/li>\n<\/ol>\n\n<p><em>Implement<\/em><\/p>\n\n<p>For posts pagination:\n1) Open the theme files where you'd like pagination to be used. Usually this is the <code>loop.php<\/code> file. For older version of WordPress, you may need to update the <code>index.php<\/code>, <code>archive.php<\/code> and <code>search.php<\/code> files.<\/p>\n\n<p>2) Replace your existing <code>previous_posts_link()<\/code> and <code>next_posts_link()<\/code> code block with the following:<\/p>\n\n<pre><code>&lt;?php if(function_exists('df_pagination')) {\n    df_pagination();\n} ?&gt;\n<\/code><\/pre>\n\n<p><em>Configure<\/em><\/p>\n\n<p>1) The styles can be changed with the following methods:<\/p>\n\n<ul>\n<li><p>Add the following custom CSS to your theme's `styles.css' :<\/p>\n\n<p>\/* Pagination *\/\n.pagination {\n    clear:both;\n    padding:0 0 10px 200px;\n    position:relative;\n    font-size:11px;\n    line-height:13px;\n}\n.pagination span, .pagination a {\n    display:block;\n    float:left;\n    margin: 2px 2px 2px 0;\n    padding:6px 9px 5px 9px;\n    text-decoration:none;\n    width:auto;\n    color:#fff;\n    background: #555;\n}\n.pagination a:hover{\n    color:#fff;\n    background: #3279BB;\n}\n.pagination .current{\n    padding:6px 9px 5px 9px;\n    background: #3279BB;\n    color:#fff;\n}<\/p><\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>How can I style paginatios?<\/dt>\n<dd><p>You may use the css either from style.css or just copy the custom css from installation tab and paste it into your themes style.css and then edit as you wish.<\/p><\/dd>\n<dt>How can I override the default pagination settings?<\/dt>\n<dd><p>The <code>df_pagination()<\/code> function takes one optional argument, in query string format, which allows you to override the global settings. The available options are:<\/p>\n\n<ul>\n<li>title - The text\/HTML to display before the pagination links<\/li>\n<li>nextpage - The text\/HTML to use for the next page link<\/li>\n<li>previouspage - The text\/HTML to use for the previous page link<\/li>\n<li>before - The text\/HTML to add before the pagination links<\/li>\n<li>after - The text\/HTML to add after the pagination links<\/li>\n<li>empty - Display before markup and after markup code even when the page list is empty<\/li>\n<li>range - The number of page links to show before and after the current page<\/li>\n<li>anchor - The number of links to always show at beginning and end of pagination<\/li>\n<li>gap - The minimum number of pages before a gap is replaced with an ellipsis (...)<\/li>\n<\/ul>\n\n<p>You can even control the current page and number of pages with:<\/p>\n\n<ul>\n<li>page - The current page. This function will automatically determine the value<\/li>\n<li>pages - The total number of pages. This function will automatically determine the value<\/li>\n<\/ul>\n\n<p>Example :<\/p>\n\n<pre><code>&lt;?php if(function_exists('df_pagination')) {\n    df_pagination('range=4&amp;anchor=2&amp;nextpage=Next&amp;previouspage=Previous');\n} ?&gt;\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"DF-Pagination is a simple, flexible and cool pagination plugin which provides users with better navigation on your WordPress site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16244"}],"author":[{"embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/yawalkarm"}],"wp:attachment":[{"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16244"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16244"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16244"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16244"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16244"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}