Add pagination with multiple category posts

If you want to add the pagination and fetch the post with multiple categories then you can use my following custom code inside wordpress. $paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1; $args = array( ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘category_name’ => ‘cat-name1,cate-name2’, ‘posts_per_page’ => […]