A2Z Alphabetical Archive Links Options

Select which post types you would like to enable Alphabetical Archive Links.

name, $excluded_post_types ) ) { continue; } $post_type_attr = \esc_attr( $post_type->name ); $post_type_total_count = \wp_count_posts( $post_type->name )->publish; if ( empty( $a2zaal_processing_counts ) ) { $post_type_processing = false; } else { $post_type_processing = array_key_exists( $post_type->name, $a2zaal_processing_counts['post_type'] ); } $processing_output = ''; $display_input_type = 'checkbox'; if ( $post_type_processing ) { $processing_output = '' . \esc_html__( 'Processing', A2ZAAL_TEXT_DOMAIN ) . ' '; $display_input_type = 'hidden'; } $post_type_active = in_array( $post_type->name, $a2zaal_active_post_types ) ? ' checked="checked"' : ''; echo '

'; echo sprintf( '%s', $processing_output, $display_input_type, $post_type_attr, $post_type_active ); echo \esc_html__( $post_type->label, A2ZAAL_TEXT_DOMAIN ) . ' (' . $post_type_total_count . ')'; echo "

"; } ?>