Promote your Service and Product online Contact us

+91 87 44 999667; +91 99 11 883996 info@3pixls.com, sales@3pixls.com

WordPress pagination

April 15th, 2016 by

1.First Step add this code in “function.php” [php] function pagination($pages = ”, $range = 4) { $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == ”) { global $wp_query; $pages = $wp_query-&gt;max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo " <div class="\&quot;pagination\&quot;">Page ".$paged." of ".$pages.""; if($paged […]

How to Display First and Second Post Differently than other posts

July 7th, 2015 by

You can display first and second post differently than other posts with this simple css code [php].article:nth-of-type(1), .article:nth-of-type(2) { //code }[/php]


Warning: Undefined variable $additional_loop in /home/pixlscom/public_html/blog/wp-content/themes/3pixelsblog/index.php on line 34

Warning: Attempt to read property "max_num_pages" on null in /home/pixlscom/public_html/blog/wp-content/themes/3pixelsblog/index.php on line 34