Disable single pages and archives and keep preview

You can redirect, when someone tries to see the archive or the single of your custom post type, just redirect them to another page, just put this in your functions.php add_action( ‘template_redirect’, ‘theme_redirects’, 99 ); function theme_redirects() { if ( is_post_type_archive( ‘post_type_slug’ ) || is_singular( ‘post_type_slug’ ) ) { wp_redirect( ‘my_url’ ); die(); } } … Read more

Add an A-Z menu at the top of A-Z listing code

I’ve done something similar before, for a glossary page. My code is below. Hopefully you can extrapolate from this. Note that I’;m using WP_Query not query_posts, as this is best practice. <?php $args = array( ‘post_type’ => ‘my_glossary_term’, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’, ‘posts_per_page’ => -1 ); $query = new WP_Query( $args ); $dl=””; … Read more