Skip to:
Content
Pages
Categories
Search
Top
Bottom

Archives:Forums

Viewing 1 replies (of 1 total)

  • Robin W
    Moderator

    @robin-w

    Try this

    add_filter( 'get_the_archive_title', 'to_archive_title_remove_prefix' );
    function to_archive_title_remove_prefix( $title ) {
    if ( is_post_type_archive() ) {
    $title = post_type_archive_title( '', false );
    }
    return $title;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar