Support » Plugin: Toolset Types - Custom Post Types, Custom Fields and Taxonomies » Span Tag showing after WP 5.5.1 Update

  • mredzovic

    (@mredzovic)


    I have decided to do the WordPress update form 5.4.2 to 5.5.1 on the staging side.

    After doing so, the toolset-created blog page has span tags around the title of the page.
    All of the blog pages show fine, but it’s just the main /blog/ page that shows <span>blog</span>

    Any assistance/guidance would help as I’m not sure how to remove the tags.

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

Viewing 1 replies (of 1 total)
  • Thread Starter mredzovic

    (@mredzovic)

    I corrected this issue by adding the following filter to the end of the theme’s functions.php file:

    add_filter( ‘get_the_archive_title’, function ($title) {
    if ( is_category() ) {
    $title = single_cat_title( ”, false );
    } elseif ( is_tag() ) {
    $title = single_tag_title( ”, false );
    } elseif ( is_author() ) {
    $title = ‘<span class=”vcard”>’ . get_the_author() . ‘</span>’ ;
    } elseif ( is_tax() ) { //for custom post types
    $title = sprintf( __( ‘%1$s’ ), single_term_title( ”, false ) );
    } elseif (is_post_type_archive()) {
    $title = post_type_archive_title( ”, false );
    }
    return ‘Archives: ‘.$title;
    });

Viewing 1 replies (of 1 total)
  • The topic ‘Span Tag showing after WP 5.5.1 Update’ is closed to new replies.