Add Pagination in custom loop

source : How to fix pagination for custom loops? <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args=array( ‘post_type’ => ‘gadget’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 24, ‘paged’ => $paged ); $temp = $wp_query; $fp_query = null; $fp_query = new WP_Query($args); if ( $fp_query->have_posts() ) : while ( $fp_query->have_posts() ) : $fp_query->the_post(); /* DO STUFF … Read more

Same posts within a paginated page

The problem is that you are running query_posts in the middle of the page, which, by the way you should nearly never do. That will overwrite the main query– the global $wp_query object. Pagination should probably appear to work. The problem is that the original main query runs before your template loads and thus before … Read more

Link to page in category

After a long search on the Web, I decided to take a look at the plugins @anjum sent, and found out this can be done through: <a href=”https://wordpress.stackexchange.com/questions/110906/<?php get_pagenum_link($i); ?>”>Link to page $i</a>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)