WordPress alphabetical A-Z custom post type post result display
Another option if you don’t want to hard-code the alphabet links (i.e., if no posts start with a letter, then that letter is not shown in pagination at all). // Always show pagination // First, grab all posts. $posts = get_posts(array( ‘numberposts’ => -1, ‘post_type’ => ‘homeless’, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’ )); // … Read more