wp_list_categories pagination

OK, after no luck with wp_list_categories, I resorted to get_categories to get the pagination working. I hope this helps someone. <?php $args = array( ‘taxonomy’ => ‘categories’, ‘orderby’ => ‘term_group’, ‘hide_empty’ => 0, ‘hierarchical’ => 1, ‘exclude’ => ’16’, ‘parent’ => ‘0’, ); $categories = get_categories($args); $numOfItems = 60; $page = isset( $_GET[‘cpage’] ) ? … Read more

Get Pagination (WP-PageNavi) not to work

Couple of issues here; Don’t use get_posts for paginated queries. It legally breaks/ignore pagination as it passes no_found_rows=true to WP_Query. Further more, get_posts only returns the $posts property from the query object, and pagination needs other properties from the query object to calculate pagination. You can paginate get_posts, but it is a really messy affair, … Read more

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