Hi, I have confirmed it is not a theme issue. The Glossary is not working on archive pages for my custom post types using the 2020 WP theme. I deactivated all plugins except for (i) Glossary and (ii) the plugin that I wrote to register my custom post type. Here is the code that registers my post type inv_funds:
function custom_post_type_inv_funds() {
$labels = array(
‘name’ => _x( ‘Investment Funds’, ‘Post Type General Name’, ‘text_domain’ ),
‘singular_name’ => _x( ‘Investment Fund’, ‘Post Type Singular Name’, ‘text_domain’ ),
‘menu_name’ => __( ‘Investment Funds’, ‘text_domain’ ),
‘name_admin_bar’ => __( ‘Investment Funds’, ‘text_domain’ ),
‘archives’ => __( ‘Investment Funds’, ‘text_domain’ ),
‘attributes’ => __( ‘Item Attributes’, ‘text_domain’ ),
‘parent_item_colon’ => __( ‘Parent Item:’, ‘text_domain’ ),
‘all_items’ => __( ‘All Items’, ‘text_domain’ ),
‘add_new_item’ => __( ‘Add New Item’, ‘text_domain’ ),
‘add_new’ => __( ‘Add New’, ‘text_domain’ ),
‘new_item’ => __( ‘New Item’, ‘text_domain’ ),
‘edit_item’ => __( ‘Edit Item’, ‘text_domain’ ),
‘update_item’ => __( ‘Update Item’, ‘text_domain’ ),
‘view_item’ => __( ‘View Item’, ‘text_domain’ ),
‘view_items’ => __( ‘View Items’, ‘text_domain’ ),
‘search_items’ => __( ‘Search Item’, ‘text_domain’ ),
‘not_found’ => __( ‘Not found’, ‘text_domain’ ),
‘not_found_in_trash’ => __( ‘Not found in Trash’, ‘text_domain’ ),
‘insert_into_item’ => __( ‘Insert into item’, ‘text_domain’ ),
‘uploaded_to_this_item’ => __( ‘Uploaded to this item’, ‘text_domain’ ),
‘items_list’ => __( ‘Items list’, ‘text_domain’ ),
‘items_list_navigation’ => __( ‘Items list navigation’, ‘text_domain’ ),
‘filter_items_list’ => __( ‘Filter items list’, ‘text_domain’ ),
);
$args = array(
‘label’ => __( ‘Investment Fund’, ‘text_domain’ ),
‘labels’ => $labels,
‘supports’ => array( ‘title’, ‘editor’, ‘comments’, ‘revisions’, ‘post-formats’, ‘custom-fields’, ‘page-attributes’, ‘excerpt’),
‘taxonomies’ => array( ‘topics’, ‘keys’, ‘document’, ‘sources’, ‘transactions’),
‘hierarchical’ => false,
‘public’ => true,
‘show_ui’ => true,
‘show_in_menu’ => true,
‘menu_position’ => 6,
‘menu_icon’ => ‘dashicons-star-empty’,
‘show_in_admin_bar’ => true,
‘show_in_nav_menus’ => true,
‘can_export’ => true,
‘has_archive’ => true,
‘exclude_from_search’ => false,
‘publicly_queryable’ => true,
‘capability_type’ => ‘post’,
‘show_in_rest’ => true,
);
register_post_type( ‘inv_funds’, $args );
}
add_action( ‘init’, ‘custom_post_type_inv_funds’, 0 );
Can you see anything problematic with my CPT? Previously, I included ‘glossary’ in the supported taxonomies, but that did not help.
The Glossary terms do work well on my single CPT pages, as you can see in this link: https://box5232.temp.domains/~lexataca/hlm/inv_funds/application/.
It’s the archive pages that are problematic, as you can see here: https://box5232.temp.domains/~lexataca/hlm/inv_funds/.
Your plugin documentation states that Glossary supports CPTs and custom taxonomies, which is a key reason that I purchased it, so I really hope that you can help me troubleshoot this. As I said, I tried Glossary with a standard WP theme and I also deactivated every other plugin on my website. The Glossary also works on my standard post archive pages – so it’s a conflict between Glossary and my custom post type archive pages. (I have the same problem with custom taxonomy archive pages, but I have deactivated that plugin for now to focus on one thing at a time.)
Thanks for your assistance Daniele.