• I have a custom post type named AWP Authors (slug: awp-author) and to display list of author I have a custom page template named AWP Authors Page which is used as custom template for page named Authors.

    The Authors page has list of authors(only names) and after clicking on one author name the all information of that author is displayed on next page(single-awp-author).

    I am using this plugin to show breadcrumbs, now when I am on Authors Page the breadcrumb shows Home/Authors, no problem here, but when I click on author name(e.g.John) the breadcrumb shows Home/AWP Authors/John but I want Home/Authors/John.

    How do I achieve that using this plugin? As I have three custom post types like this so it is really important for me.

    I am currently displaying breadcrumbs using following code

    <?php
        if (is_home()) {
            echo '';
        } else {
            if ( function_exists('yoast_breadcrumb') ) {
                 yoast_breadcrumb('<li><p id="breadcrumbs">','</p></li>');
            }
        }
    ?>

    Note: I have tried to disable is_archive but then it directly shows Home/John I also don’t want this.

    https://wordpress.org/plugins/wordpress-seo/

  • The topic ‘Show custom page template page name instead of post type archive’ is closed to new replies.