Page title is repeated in some pages
-
Hello,
I have created a WordPress site and titles were working just fine. Then, some time and plugins installed later, I noticed that in SOME pages I get the title repeated 2 times.
Example of wrong page title:
Contact – NAME | NAMEExample of normal title:
Our Services | NAMENow, if I go to General Settings and change title it will change both, no improvement. SEO by Yoast has the option to reset page titles, but that just removes all titles leaving the current URL as page title.
Here is the code I originally had:
<title><?php wp_title(”); ?><?php if(wp_title(”, false)) { echo ‘ | ‘; } ?><?php bloginfo(‘name’); ?></title>Here is the code I am using now:
<title><?php wp_title(‘|’); ?></title>To sum up, I think somewhere in the database there’s a wp_title rule repeated: once using ‘-‘ as separator, another one (the current one) using ‘|’.
Any help will be most appreciated, thanks!
- The topic ‘Page title is repeated in some pages’ is closed to new replies.