• Resolved lmccallum

    (@lmccallum)


    Hi, I have a custom post type “LexCPT” and custom taxonomy “Sources” and I would like my glossary terms to display on the archive pages. The glossary terms are displaying perfectly on my single LexCPT page.php pages. But the glossary terms are absent from the archive pages. I have checked the correct options in the settings, I think. I don’t see a specific option for displaying glossary terms on archive pages for cpt and custom taxonomies, but I have checked “green” for every option that is relevant. I am using the GeneratePress pro theme. Thanks for your help. Leslie

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    the reason can be 2: there are some conflicts that don’t enable the plugin execution on the archive pages (maybe by theme) or the settings are not working.
    We don’t have any reports of issues with that from our users, usually this problems are theme based.
    Our plugin use the_content filter and does some checks about what is the kind of page and so on.

    Thread Starter lmccallum

    (@lmccallum)

    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.

    Hi lmcallum as pro customer you have access to https://support.codeat.co/ that let you to get more priority on support.
    If you open a ticket in this platform sharing an user access as admin I can investigate the settings and other things to understand better the problem.

    The discussion was moved to the premium support platform.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Archive Pages for CPT and Custom Taxonomy – Glossary Terms not Showing’ is closed to new replies.