Currently the pages corresponding with the slugs of my custom post types display their respective post grids. I have not seen a theme do this before, and it’s really great, but I am unsure how to replace the ‘Archive’ text in the header? Preferably with something I can choose exactly, though at least with just the default name of the post type.
Hey Rogier!
Try adding this to the bottom of your functions.php file.
add_filter( 'avf_which_archive_output', 'enfold_customization_archive_output', 10, 1 );
function enfold_customization_archive_output( $output ) {
if ( get_post_type() == 'article' && is_archive() ) { $output = 'Testing testing 1, 2, 3'; }
return $output;
}
Cheers!
Elliott
Thanks Elliott, this works.
How can I expand this code to include the Video and Audio ‘Archives’ ?
Nevermind, figured it out.