Using pagination with get_posts on page type
You should check your code because you have some sentences that will make your pagination function returns empty value. For example, the next piece of code will get you out because you are in a page template, so is_singular() returns true: if( is_singular() ) return; Also, you are using the global $wp_query object inside your … Read more