why custom post archive gives always no more than 10 posts despite of paging settings?

Ok, found the issue. By analizing the generated query, I realized that it rightly searched for current language posts. I’m currently use polylang as the multilingual plugin, and it correctly associate posts with a ‘language’ taxonomy. Now, I had far more 10 project posts but only 10 where of the current language. All fine now.

WP_Query with Pagination and orderby meta_value_num showing duplicates

$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( ‘tag’ => $taxonomy, ‘post_type’ => ‘initiative’, ‘paged’ => $paged, ‘posts_per_page’ => 9, ‘category_name’ => $category, ‘tag__not_in’ => array(15), ‘meta_key’ => ‘initative_weight’, ‘orderby’ => array(‘meta_value_num’ => ‘DESC’, ‘title’ => ‘ASC’), ‘post_status’ => ‘publish’ ); I changed tag__not_in to an array and updated the orderby to be … Read more

Combining content breaks category pagination

The post_type parameter for WP_Query can accept an array of post types. This would allow you to combine both streams into a single query which should resolve your current dilemma with pagination. $query = new WP_Query( array( ‘post_type’ => array(‘page’,’post’) ) );

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