Archive pagination not working

You can use below steps to display pagination. Step 1:- Include the following snippet in your functions.php file :- function webim_pagination ( $pages=””, $range = 4 ) { $showitems = ($range * 2) + 1; global $paged; if( empty( $paged ) ) $paged = 1; if( $pages == ” ) { global $wp_query; $pages = … Read more

Next Post links not working in custom post type shortcode

OK, thank you to ialocin, the $gbquery->max_num_pages solve it! So there is the clean code : function livredor_function($atts,$content=””){ extract(shortcode_atts(array( id => ” ), $atts)); ob_start(); function create_guestbook() { $current_page = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 0; $gbquery = new WP_query(“post_type=inliguestbook&showposts=10&paged=” . $current_page); while($gbquery->have_posts()) { $gbquery->the_post(); ?> <div class=”guestbook”> <h3><?php the_title(); ?> <span><?php the_time(‘j F Y’) ?></span></h3> … Read more

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