• Resolved powerhousejec

    (@powerhousejec)


    Hello,

    I wonder if you can help me.

    I recently started to use WPBakery (visual composer) and Post to Google My Business.
    I noticed that blog posts posted to Google my business shown some codes. WPBakary support team has informed me that:
    “It looks like the plugin at your end does not execute the shortcodes and hence display them in text format. If the plugin developer adds an ability to render the shortcodes and then pass the content to Google, it will prevent such display at your end.”
    Please find the sample of the blog post below. I removed the post from google my business temporarily.

    Can you please help?
    Thank you.

    EcoTank printers Cartridge-free and ultra-low-cost printing – [vc_row][vc_column][vc_single_image image=”341″ img_size=”full”][/vc_column][/vc_row][vc_row][vc_column][vc_separator border_width=”2″][/vc_column][/vc_row][vc_row][vc_column width=”1/2″][vc_column_text]Running out of ink can be frustrating. Even if you’ve stocked up, it still takes time to change a cartridge. If you’re busy and rely on your printer, there’s an easy solution. Epson’s EcoTank printer has an ultra-high-capacity ink tank system, that completely removes the need for cartridges. (Source)[/vc_column_text][/vc_column][vc_column width=”1/2″][vc_video link=”https://www.youtube.com/watch?v=JRuRGJTHx60″ el_width=”80″ align=”right”][/vc_column][/vc_row][vc_row][vc_column]

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Koen Reus

    (@koen12344)

    Hi there!

    Assuming you are using the auto-post function, you can strip out the Visual Composer shortcodes with the following code snippet:

    
    function mbp_autopost_strip_shortcodes($args, $location){
    	$args['summary'] = preg_replace("~(?:\[/?)[^\]]+/?\]~s", '', $args['summary']);
    	return $args;
    }
    add_filter('mbp_autopost_post_args', 'mbp_autopost_strip_shortcodes', 10, 2);
    

    You can do this using the Code Snippets plugin, or by pasting the code in your themes’ functions.php

    Thread Starter powerhousejec

    (@powerhousejec)

    Hi Koen,

    Thank you for your reply.
    I post the blog post manually.
    Does it matter? Will your suggestion work?
    Please advise.

    Regards,
    Pawel

    Plugin Author Koen Reus

    (@koen12344)

    Hi Pawel,

    If you’re using the “Quick Publish to GMB” checkbox, then yes.

    Thread Starter powerhousejec

    (@powerhousejec)

    Hi Koen,

    Thank you for the suggestion.
    We’ll try it.

    Regards,
    Pawel

    Plugin Author Koen Reus

    (@koen12344)

    Hi Pawel,

    Alright, let me know how it goes!

    Thread Starter powerhousejec

    (@powerhousejec)

    Hi Koen,

    Excellent! It worked. Thank you very much for your help.

    Regards,
    Pawel

    Plugin Author Koen Reus

    (@koen12344)

    Hi Pawel,

    That’s good to hear!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Post to Google My Business does not execute shortcuts. Please advise.’ is closed to new replies.