• Resolved cmykbkk

    (@cmykbkk)


    Got the plugin working, but when it posts to GMB, it shows ALL the HTML markup, for example this is what we see in the live post, how do we sort this out?

    <h3>On-Demand Website Development or Graphic Design</h3>
    An additional 3 x hours of on-demand graphic design or website development for WordPress sites (created by us).
    <h3>Package Inclusions</h3>

    • 3 x hours of graphic design or WordPress development
    • For projects created by us
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Koen Reus

    (@koen12344)

    Hi @cmykbkk,

    Do you have a screenshot of the post in GMB? Does this happen when using the auto-post feature?

    Thread Starter cmykbkk

    (@cmykbkk)

    Here’s a screenshot of what gets posted:

    View post on imgur.com

    You’ll see it’s bringing thru ALL the HTML markup from the woocommerce short description, how would I get it to remove/clean any HTML code as it posts?

    We are using free version at the moment as we evaluate, so no automatic posting as such, either manual posting or posting when saving.

    Plugin Author Koen Reus

    (@koen12344)

    Hi @cmykbkk,

    I’ve managed to reproduce the issue. I’m assuming you’re using the code snippet from here to include WooCommerce product data in the GMB post?

    The snippet wasn’t parsing the HTML from the content fields. Please update the existing code snippet with this updated version. That should fix it!

    I’m hoping to make the WooCommerce integration a bit more elegant in the near future ??

    Thread Starter cmykbkk

    (@cmykbkk)

    Updated the code as per your instructions and tried to post again and we get this now:

    Failed to create/update post: Invalid value at ‘local_post.topic_type’ (type.googleapis.com/google.mybusiness.v4.LocalPostTopicType), “PRODUCT”

    Plugin Author Koen Reus

    (@koen12344)

    Make sure you’re not on the “Product” tab when publishing the GMB post, but on one of the other GMB post types.

    If you leave it on the product tab and try to publish a GMB post, the plugin will try to create a Product post, but they are no longer supported by the Google API.

    If you set it to any of the other post types it should be fine

    Thread Starter cmykbkk

    (@cmykbkk)

    OK, can you tell us where/how we should be posting (manually) … do we not open the product, tick the box to post, then update the page to trigger it to post?

    Plugin Author Koen Reus

    (@koen12344)

    Go into Post to GMB > Settings > Auto-post settings and make sure it isn’t set to “Product”, then save the settings. I think its best to use “What’s New” instead.

    Then when you check the auto-post checkbox and update the page, it should publish the GMB post without any problems.

    Thread Starter cmykbkk

    (@cmykbkk)

    OK, all good now thanks, everything is working correctly now including the HTML being removed, so case closed.

    Thanks for the help.

    Plugin Author Koen Reus

    (@koen12344)

    Happy to help, glad to hear everything is working correctly now.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘HTML showing in post’ is closed to new replies.