Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick fix for title with Yoast WordPress SEO #15

Open
klihelp opened this issue Mar 25, 2018 · 2 comments
Open

Quick fix for title with Yoast WordPress SEO #15

klihelp opened this issue Mar 25, 2018 · 2 comments

Comments

@klihelp
Copy link

klihelp commented Mar 25, 2018

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 );

@klihelp klihelp changed the title Quick fix for Support also the document title Quick fix for title with Yoast WordPress SEO Mar 25, 2018
@bradyvercher
Copy link
Member

That sounds reasonable. Would you mind submitting a PR and I'll get that merged?

@klihelp
Copy link
Author

klihelp commented Mar 26, 2018

Have to look into the WordPress SEO filters to still remain compatible with their title prefix and suffix options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants