• Resolved wp_maybe

    (@wp_maybe)


    I have bbpress installed on Astra theme. The base (default) forum page on most themes has the title “Forums”, but here it says “Archives: Forums”. I looked this up on bbpress support forums and got the feeling that this issue probably is at the theme’s end. My apologies if it isn’t.

    I also am facing a similar problem with another plugin “Learnpress”, where the base page for courses says “Archives: Courses” instead of just “Courses”. (Please refer to page https://tmp.karmikpath.com/courses/).

    I will be glad for any advice in resolving these minor issues.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @wp_maybe

    Well, we do not have any option to remove the “Archive” from the title.

    But we do have a filter which can help achieve your requirement –

    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;
    }

    I hope that helps.

    Regards,
    Suman

    Thread Starter wp_maybe

    (@wp_maybe)

    Yes that works for me. Thank you very much ??

    Perfect, @wp_maybe!

    Glad to help you out. ??

    Do let us know if there’s anything else we can help you with. And do mark the topic as resolved.

    Thread Starter wp_maybe

    (@wp_maybe)

    Ah sorry forgot to mark it as resolved. Here goes.
    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue with page titles’ is closed to new replies.