Titles under guest is not the same as under admin
I created two filters to set my own titles for AnsPress pages:
https://gist.github.com/rahularyan/af96ec7ae8ba94fa6a28
And under the admin everything works fine but if I use another user or just look at my site under the guest – title on aby AnsPress page the same as BASE AnsPress page title.
What do I do wrong?
Actually you dont need this filter. you are not adding anything new.
Try adding ANSPRESS_TITLE in base page.
What do you mean by that? How to add ANSPRESS_TITLE?
Simple edit base page and add this title ANSPRESS_TITLE, and rest of things will be handled by AnsPress
Now under guest I see the title ANSPRESS_TITLE on question page %-(
I have founf that my theme use the_title() function to show the page title and it use the_title filter and do not use wp_title filter according to wordpress documentation. So I think the problem in this filter. Maybe different users have different wordpress versions and there was some changes in those filters. I think I fix this by myself some how.
Yeh its theme issue.
Maybe the problem in filter priority? And I need to use 99999 instead of 999?