|
/ Documentation /Developers Documentation/ Customize Post Type Archive Title Output surerank_post_type_archive_title

Customize Post Type Archive Title Output surerank_post_type_archive_title

Hook: surerank_post_type_archive_title

Description: This filter allows you to customize the archive title of any post type before it’s rendered on the frontend. It can be useful when you want to change the default title shown on archive pages (like “Blog”, “Products”, or any custom post type) to a more user-friendly or SEO-optimized version.

Source: inc/frontend/title.php

Usage: You can use this filter to override the archive title output globally.

Example:

PHP
// Change the archive title generated by SureRank for custom post types
add_filter( 'surerank_post_type_archive_title', 'custom_surerank_archive_title' );

function custom_surerank_archive_title( $title ) {
    return 'Our Latest Resources';
}

You can add the example code to your child theme’s functions.php file or use a plugin like Code Snippets to safely insert custom code. Using a code snippet plugin is recommended for easier management and to ensure the code remains active even if you switch themes.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top