Just started to test PT in a new site, works OK but the title for the pages are all the same see example below, wondering if I have missed anything on the install.
The wp_title hook used for setting the title has been deprecated in WordPress 4.4 and some newer themes only use the new method so that should be all it is. I have updated this in the distribution, but if you would like to preserve any existing modifications you may have made you can patch pto.php as follows;
Look for the following code at line 195:
..and REPLACE with:
Then look for the following code at line 290:
$content = $title." | ".$content;
...and REPLACE with:
$content = $title." | ".($content?$content:(isset($post)?$post->post_title." | ":"").get_bloginfo("name"));
And finally look for the following code at line 614:
Hope this helps!
that worked great, just noticed getting the title shopping on category and merchant pages, is this the same issue.
The container page title is actually pulled in intentionally by the above to replicate wp_title functionality but that can be removed easily. In the second replacement described above, where you now have:
$content = $title." | ".get_bloginfo("name");
Hi David , just tried this and I am getting an error
Parse error: syntax error, unexpected ')'
Sorry about that - there was a superfluous ")" in the replacement - corrected above.
Trying to move forward total integration with WordPress, there is just on thing with the page title see below.
It shows on the page the page title shopping, what I would like is to show the brand name (on merchant and category it also shows shopping, would like merchant and category title), on the product page it shows the product title.
I know you've been using the script for a few years now, please could you email me the plugin file pto.php from this installation and I'll check that out further with you...
just come across this post with quite some interest. For ages now I've been struggling to get the product name to show in the page title bar on a theme that I use.
In previous versions of the theme it always worked, until some time back, they released an update and the product titles just vanished from the page.
Even if I mess around with the settings and get the product title to show on the page, it's not displaying where it should be. Other normal formed site pages show the title correctly located, it just seems to effect any pages generated by PTO.
Having now spent hours on this and with recent contact with the theme developer, it points to an issue with PTO. The problem is the same with PTO 2 and PTO 3 Beta.
I notice that there is code in the latest PTO 3 Beta that is now shown as "deprecated" causing quite a lot of error log's, could this be something to do why the product page titles don't show ?
I wasn't aware of any deprecated issues in beta 3 as I have been developing it against the latest versions of PHP - would it be possible to copy more of the deprecated warning showing the specifics from your log so I can check that out further?
Regarding the title, on the product pages are you just seeing the default container page title e.g. "Shopping"?
Followed up by email.