cpt-archives
cpt-archives copied to clipboard
Quick fix for title with Yoast WordPress SEO
WordPress SEO uses pre_get_document_title filter with priority 15.
Add pre_get_document_title filter with priority 20 to make sure you get the correct cpt-archive page title.
$this->add_filter( 'pre_get_document_title', 'post_type_archive_title', 20 );
That sounds reasonable. Would you mind submitting a PR and I'll get that merged?
Have to look into the WordPress SEO filters to still remain compatible with their title prefix and suffix options.