• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • 3 items in basket 3
    • Cart
    • Store

Short Titles with HTML Special Character

[Solved]

Foliovision › Forums › FV Simpler SEO › Bug reports › Short Titles with HTML Special Character

  • Alec Kinnear 11 years, 6 months ago

    I am using the FV Simpler SEO plugin to also replace longer page/post titles for navigation menus (wp_nav_menu) by the short titles / menu labels FV Simpler SEO provides. In general, this feature works.

    But once it comes that the (long) title contains an HTML special character (e.g., “&” like in “find & book”, also a single dash), the plugin does not replace the long title.

    The reason is that the string comparison of the function fvseop_filter_menu_callback($matches) fails:

    The comparison in line 2556
    if ($my_post->post_title == $matches[6]) {
    fails. For the case of “find & book” as a title, the string “find & amp; book” (please imagine that there is no space between “&” and “amp;”, but the forum does not show the right string otherwise…) and “find &amp#038; book” are compared which obviously are not the same. Therefore, the string comparison fails and the long title will not be replace by the short menu label. Does anybody have an idea how to solve the source of this error? Of course, I could modify the string comparison, but the string “&amp#038;” looks odd and I’d like to fix the problem where this string is generated…

    Thanks for your help.

    My current work-around is to replace line 2556:

    Instead of
    if ($my_post->post_title == $matches[6]) {

    I am using
    if (wptexturize($my_post->post_title) == $matches[6]) {

Viewing 3 replies - 1 through 3 (of 3 total)
  • Alec Kinnear 12 years ago

    Hi Martin,

    Have we added this fix yet to FV Simpler SEO.

    Thanks for the report mia0!

    Martin 12 years ago

    Hello Mia,

    I see what you mean. Thanks for your workaround. I think a more simple htmlspecialchars_decode() would be enough. We will fix this for next release.

    Thanks,
    Martin

    Martin 12 years ago

    Hello Mia,

    we included your fix in our new version, which will be released soon.

    You can test it out here: http://foliovision.com/downloads/fv-all-in-one-seo-pack-1.6.19.zip

    Thanks!
    Martin

Viewing 3 replies - 1 through 3 (of 3 total)
Reply To: Short Titles with HTML Special Character



Please Sign in or Register to upload files.

Related Posts

  1. HTML 5 video player with ads

    HTML 5 video player with ads

  2. Wordpess Multilingual SEO: FV Simpler SEO and qTranslate

    Wordpess Multilingual SEO: FV Simpler SEO and qTranslate

  3. FV Simpler SEO Improvements

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2024 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!