• 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

Custom post type title contains html span tag

[Solved]

Foliovision › Forums › FV Simpler SEO › Bug reports › Custom post type title contains html span tag

  • jppol 8 years, 11 months ago

    Hi,

    I upgraded recently to the latest version of the plugin and just discovered that on a custom post type, the title tag actually contains : <span itemprop=”name”>[the title]</span>
    I was on 1.6.23 or 1.6.24 when it was still working.

    The custom post type has been created by Easy Digital Download plugin (‘downloads’)

    If I disable the FV Simpler SEO plugin, the title tag will be clean.

    You can check this page :
    http://www.conversations-avec-dieu.fr/downloads/conference-etre-vraiment-present/

    Any ideas ?
    Thanks,
    JP

    P.S. : sorry, it’s a repost from wordpress forums, I did not see you had your own

Viewing 10 replies - 1 through 10 (of 10 total)
  • Martin 9 years ago

    Hello JP,

    could you please let us know what plugin you use for itemprop markup (I guess it’s Schema.org)?

    Our plugin uses get_the_title() to get the post title, so perhaps some plugin is putting in the markup on that filter.

    Thanks,
    Martin

    jppol 9 years ago

    Hi Martin,

    thanks for coming back to me on this.

    I did a quick grep on my plugins on “itemprop” and there is only “Easy Digital Downloads” returning results for that search.

    This result seems relevant:
    easy-digital-downloads/includes/template-functions.php:720: $title = ‘<span itemprop=”name”>’ . $title . ‘</span>’;

    But the thing is that if I disable the FV Simpler SEO plugin, the title tag will be properly set. So I suspect the problem is more coming from FV Simpler SEO than Easy Digital Download. Am I wrong somewhere ?

    Thanks for your help!

    JP

    Martin 9 years ago

    Hello JP,

    I’m sorry about the delay, we are very busy at this moment.

    Could you please check if adding strip_tags() to this line will help? https://github.com/foliovision/fv-all-in-one-seo-pack/blob/master/fv-all-in-one-seo-pack.php#L1529

    If that helps your site we can add it to our plugin.

    Thanks,
    Martin

    jppol 9 years ago

    Hi Martin,

    yes that fixes the issue!
    http://www.conversations-avec-dieu.fr/downloads/conference-etre-vraiment-present/

    Thank you very much!
    JP

    jppol 9 years ago

    Hi Martin,
    same kind of issue with the Open Graph and twitter cards tags :
    <meta property=”og:title” content=”<span itemprop="name">Conférence Neale Walsch – Vivre avec son coeur</span>” />
    <meta name=”twitter:title” content=”<span itemprop="name">Conférence Neale Walsch – Vivre avec son coeur</span>” />

    It’s generated on line 3671 in fv-all-in-one-seo-pack.php.
    I’ve fixed that by adding : strip_tags(html_entity_decode($title));
    It seems very un-elegant but it works, there is probably a better way !

    Let me know if you need me to try with another solution.
    Thanks,
    JP

    Martin 9 years ago

    Hello JP,

    I guess it’s needed if Easy Digital Downloads adds the tags the way it does.

    Thank you for showing us your fix, we will put it into the plugin code!

    Martin

    jppol 9 years ago

    Hi Martin,
    just updated the plugin with 1.6.28 and the problem reappeared, has the fix been added in that last version?
    Thanks!

    jppol 8 years ago

    Hi there,

    would be great if the fix could be added to the plugin, I’m losing the fix each time the plugin is updated.

    Thanks !

    Martin 8 years ago

    Hello JP,

    did the issue re-appear for OG and Twitter Card tags only? If so, will this fix help? https://github.com/foliovision/fv-all-in-one-seo-pack/commit/59d4f14b1a540c2dac245b6f1238a42dc65d21d2

    Or also for tag?</p> <p>Thanks,<br /> Martin

    jppol 8 years ago

    Yes for OG and Twitter Card tags only, the meta title tag is fine.
    And yes the snippet fixed the problem, thanks !

Viewing 10 replies - 1 through 10 (of 10 total)
Reply To: Custom post type title contains html span tag



Please Sign in or Register to upload files.

Related Posts

  1. Custom Video Ads in FV Player (pre-roll and post-roll)

  2. FV Simpler SEO: Post slug shortener

    FV Simpler SEO: Post slug shortener

  3. Setting up Video Custom Fields

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!