You need to use the filter get_the_archive_title. It works like the_title filter.
More details about the function that embed the filter here
More in this question remove category tag
EDIT :
When it’s a custom post type archive page, you might use another function to print the title : post_type_archive_title()
Then you’ll be able to hook in the title with the filter post_type_archive_title , but there is no prefix for this function.
So in your template replace the call to get_the_archive_title() function with:
post_type_archive_title();
Related Posts:
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Displaying category archive of custom post types
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- $query->set in pre_get_posts is unintentionally affecting the backend
- Pagination throws 404 error on custom taxonomy archive pages
- Setting up custom post type archives in WP3.1? Any luck?
- Filter for “get_post_type_archive_link()”
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- Custom Post Type Archives with 0 Posts Redirects as 404
- How to show more posts on an archive page?
- Archive page with multiple taxonomies rewrite
- Create permalink structure for one taxonomy archive per custom post type
- Date archives for custom post type
- Custom Post Type Archive URL takes over page URL
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Display all custom post types in archives.php
- How to Add Pages Under Custom Post Type URL Structure?
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- Custom post type tag archives don’t work for basic loop?
- Removing CPT slug from URL results in 404 error for archive page
- Multiple post types in archives (filter?)
- How to let custom post type posts show in standard post archive (like in homepage)?
- Include Custom Posts Type in Year/Month/Date Archive
- where can I see my custom post type archive template?
- Disable single pages and archives and keep preview
- Custom post type archive sorted and grouped by date in post meta field
- Custom post type with tags
- List custom post type but redirects to home page
- Custom-post-type-archive: posts sorted/filtered by year?
- Custom post type archive page pagination
- Custom Post Types and archives
- Need post_type_archive_title function but in ‘single’
- How to get “custom post type”-archive with working permalink to it?
- Hierarchical Custom Post Types – Show only parent on tax archive?
- Custom post types archive redirect
- just can’t get date-based archives per post-type to work
- Archive page for taxonomy terms
- Custom template page with custom archives listing by user
- How can i change the output of posts_nav_link();
- Root slug of taxonomy returning 404
- Custom Post Type with archive page but no detail page
- How to get post type and month/year before while loop for date.php file
- Custom archive page for CPT UI
- How to display custom post in archive section of the wordpress page?
- Use “archive” as slug for custom post type
- Archive for CPT
- Archive not sorting correctly
- What’s the name of the custom post type yearly archive template?
- how to remove pages loading with the archive templates
- Archieve.php not loading for custom post type
- multiple custom post type on category page
- Assign CPT archive page attributes
- Custom taxonomy or custom page templates?
- Dynamically insert an article at the top of a taxonomy archive – or?
- Can anyone clarify difference between archive-{posttype}.php, type-{posttype} and date.php?
- How do I add custom HTML to the content of an archive page’s posts?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Use the custom post type archive for taxonomies?
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Display Date & Author Info on Custom Post Type Archive Page
- How to constrain the results to a specific post_type on tag archive page?
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- How can I relate custom post types?
- Display CPT index page as front/home page
- How to prevent a custom post type from using the archive.php template?
- Event Archive by Month
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- How can I tell if I’m on a custom post type archive page?
- How to achieve a multi-taxomony layout with posts?
- Archive per year of a custom post getting the wrong post
- Custom Post type page content (archive page)
- Set up Custom Taxonomy Archive Template File To Cover 3 Categories
- Group custom post type posts by month
- Custom WordPress theme not displaying posts from category
- Creating an archive page or simple template to list all values of a custom field of specific post type listing
- Custom post types not showing on the standard WordPress Category page
- Tell wordpress to show a single page instead of an archive page
- Turning archive templates to a page template maintaining the slug
- Custom post type categories giving 404
- Order archive custom posts by taxonomy term [duplicate]
- Custom Archive – hide posts until a search is made?
- Custom Post Type tag taxonomy “Page Not Found”
- Rewriting archive page slug to be different than custom post type slug
- Custom Post type archives / categories give 404
- Site loads very slow for archive custom post type page
- Archive.php is not displaying tags
- Custom post type category page not working
- Custom post types with date based archive
- paging is not working properly on news archives page [duplicate]
- Categories in custom post types
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- is_singular won’t call my functions?
- How to turn custom-post archive into an overview page, listing the metadata of the posts?
- how to pass args for archive.php query?
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Remove plugin’s custom post type archive page and single pages [closed]
- WP Query + custom fields: How to query event posts from the current date backwards 6 months and organize it month by month?
- Custom Post Type posts not getting picked up in archive widgets
- How do I get an intermediary page between 2 custom post types?
- Custom Taxonomy archive with url parameters