Last active
August 31, 2017 07:46
-
-
Save bigdigital/90e0ac726ed9d0adc9033777df0be675 to your computer and use it in GitHub Desktop.
The7 change custom post type archive page title
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function template_change_title($title) { | |
if ( is_post_type_archive('dt_portfolio' )) { | |
return 'Custom name Archive'; | |
} | |
return $title; | |
} | |
add_filter( 'presscore_get_page_title', 'template_change_title', 30); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment