Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi Riccardo,

    Thanks ??

    Unfortunately, I was unable to replicate this issue.
    Could you see if the problem still persists with The SEO Framework deactivated?

    If the problem is then solved, could you please send me the code of the title tag you’re using, as I see you have a custom made theme.

    Thanks and have a great day!

    Thread Starter riccarbi

    (@riccarbi)

    Hi Sybre,

    Thank you for your great support!
    If I deactivate The SEO Framework the Italian title is OK. If I temporarily activate Yoast plugin which I was using before (after importing the title fields from Genesis with SEO data transporter) the title is OK, too.

    In my theme header the title line was very basic <title><?php wp_title(); ?></title>

    Now, following your subtle -quite smart- hint I forced the separator between post title and blog name (the latter in Yoast SEO settings is deactivated)
    <title><?php wp_title(‘|’, true, ‘right’); ?></title>

    after reactivating The SEO Framework the title is now complete and the lost letter came back. Only remaining problem is that special characters in the title like “-” are converted into the corresponding html code (–)

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Riccardo,

    That’s great to hear you’ve got it solved!

    I’ll be sure to find the root cause of this, although wp_title is deprecated (in exchange for the title-tag support).
    Yoast solves this by replacing the title output from the PHP output buffer.
    See https://codex.www.ads-software.com/Title_Tag for more information about the implementation and deprecation of the title output within themes.

    About the conversion:
    This is because the title (and description) use the wptexturize function, which is default WordPress behavior since 4.4.0 (or 4.3.0, I forgot).

    More information about the function is here: https://codex.www.ads-software.com/Function_Reference/wptexturize

    What it does
    It makes everything a little more eye catching! See the “Notes” section in the link above for examples. It converts all applicable characters found in the title.

    And as it’s unicode, Google, Facebook, Bing, Yahoo, Twitter, WhatsApp, iMessage, etc. all understand the characters used. Search Engines know it’s a separator and will treat it that way.
    If you really don’t like it, please tell me and I will create a filter.

    I hope this clears things up! ??

    Thread Starter riccarbi

    (@riccarbi)

    Hi Sybre,

    No, I don’t care about the html characters in titles, since all major search engines convert them correctly; don’t bother with it.

    About the title code, my customized theme is based on twenty-twelve, thus it still uses wp_title. I am planning to change it to new post-4.1 code for displaying titles soon. Nevertheless, the WP developing team is struggling a bit on this point and has recently reinstated wp_title in November 2015. https://make.www.ads-software.com/core/2015/10/20/document-title-in-4-4/

    I will make some further experiment/check on titles with TSF and keep you updated about the results.

    Cheers!

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Riccardo,

    Let me know your findings :), I mostly listen to bug-reports on “outdated” functions rather than testing every variable myself, as it’s very time consuming and fewer people use it over time.

    And that’s correct! They were about to throw errors everywhere for when wp_title was used, the developers have chosen to remove it as it will mess up many websites. They’re still planning to deprecate the usage of it and it’s forbidden to be shipped as default output with new themes on www.ads-software.com.
    See: https://make.www.ads-software.com/themes/2015/08/25/title-tag-support-now-required/

    P.S. I recommend using wp_title('') or the title-tag support rather than anything else. This will guarantee expected behavior (future-proof), plus I’ve added an extra cache layer for when these are used.
    Usage of the provided wp_title code or the title-tag theme support will effectively (more than) halve the generation time of the title.

    Thread Starter riccarbi

    (@riccarbi)

    Hi Sybre,

    your point is very good, and I deem your approach to the post title the correct one. I am so confident on that that I have just removed wp_title on all pages and replaced with the newer title code which works like a charm with TSF. Always look forward, a wise man once said…;)

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Riccardo,

    That’s great ?? Let me know if you encounter any more problems.
    Until then, I’m marking this topic as resolved.

    Enjoy your day! ??

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Riccardo,

    I found the bug related to the missing character and it has been fixed for the next update!

    Thank you once again for the bug report, it will sure help many! ??

    Thread Starter riccarbi

    (@riccarbi)

    Hi Sybre,
    Great work as usual, can’t wait for the next release!
    Thank you so much.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Problem with post titles’ is closed to new replies.