• Resolved Nikolaiii

    (@nikolaiii)


    Some of our products have WordPress galleries (gallery shortcodes) in the their description. Is it possible to strip them out for of feed the same way you do it for the image tags?

    Thank you

    • This topic was modified 7 years, 4 months ago by Nikolaiii.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Nikolaiii, are there many different shortcodes? I mean if there is only one you could maybe perform an “edit value” action on it and replace the code with an empty string?

    Thread Starter Nikolaiii

    (@nikolaiii)

    Hi Michel,
    Well we have at least one gallery for each product in the description field, so that won’t be an option for us…

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Could you give me a few examples of how your shortcodes look?

    Thread Starter Nikolaiii

    (@nikolaiii)

    Here is a copy/paste from the XML feed generated by Woocommerce Google Product Feed Manager

    <g:description>
    <![CDATA[
     The water resistant rain cover protects your bags and its content from getting wet.
     [gallery columns=&quot;6&quot; link=&quot;file&quot; ids=&quot;1763,1762&quot;] 
    ]]>
    </g:description>
    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    If you send me a message to michel(at)wpmarketingrobot.com (I need your mail address) I will send you a patch tomorrow that will filter out these galleries.

    In the next update I will include an option in the settings page to filter WordPress galleries out of the descriptions.

    Thread Starter Nikolaiii

    (@nikolaiii)

    Thank you Michel, I just sent you a message to the email you just gave.

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Yes I got it.

    Just to be sure I make the correct patch, you are using the free version right?

    Thread Starter Nikolaiii

    (@nikolaiii)

    Yes for now ??

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Nikolaii, I mailed a .zip file to you that should remove the gallery shortcuts from the description text.

    Please let me know if it works correctly or not,

    Thread Starter Nikolaiii

    (@nikolaiii)

    That’s working Michel! Thank you again for the great work on that plugin!

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Perfect. Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Removing the gallery shortcode from the description’ is closed to new replies.