paginate_links() don’t properly work in search.php?

I’m fairly certain this is answered elsewhere, but I’ll add it here again. I believe your issue lies here: ‘current’ => max( 1, get_query_var(‘paged’) ), Try this instead: global $wp_query; $wp_query->query_vars[‘paged’] > 1 ? $current = $wp_query->query_vars[‘paged’] : $current = 1; …then: ‘current’ => $current; Your ‘base’ may also be an issue. Instead of this: … Read more

Customizing Comments on Posts

Set per_page to 5 and page to 1 in wp_list_comments http://codex.wordpress.org/Function_Reference/wp_list_comments Then add your read more link just below your comments to reload the page with per_page and page not set. You can do this with AJAX for smoothness.

Pagination – works on local but not live dev!

try this <?php //global $wp_rewrite; $loop->query_vars[‘paged’] > 1 ? $current = $loop->query_vars[‘paged’] : $current = 1; $pagination = array( ‘base’ => @add_query_arg(‘page’,’%#%’), ‘format’ => ”, ‘total’ => $loop->max_num_pages, ‘current’ => 0, ‘show_all’ => true, ‘prev_next’ => true, ‘prev_text’ => __(‘&laquo; Back’), ‘next_text’ => __(‘Newxt&raquo;’), ‘type’ => ‘plain’ ); if( $wp_rewrite->using_permalinks() ) $pagination[‘base’] = user_trailingslashit( trailingslashit( … Read more

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