How to list all the posts in a personalized page? WordPress
There is a pretty simple way to query outside the loop using get_posts. Setting post_status => ‘any’ could net you all. The code below queries posts, pages and attachments. The loops through and outputs them all to an unordered list. $pages = get_posts( array( ‘post_type’ => ‘page’, ‘post_status’ => ‘any’, ‘numberposts’ => -1, )); $posts … Read more