• Resolved JBCO

    (@jbco)


    Hi guys – I’ve read a few articles but can’t seem to locate the ideal fix here.

    I have a big number of products to create (within WooCommerce) and they are very similar. I’d like to spend time creating ONE and then use the duplicate post feature so I only have to change a few key details for each new product.

    MY issue here is that I also want to Publicize each new product to my social media channels, via Jetpack / Publicize. The boxes are all blocked out within the new product – not allowing the post to be pushed via Publicize.

    Any fix for this? Can I add a snippet of code into my functions file or elsewhere?

    Thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    When you duplicate a post (or a product), you also duplicate post meta data that was created by Publicize on the original post to indicate that the post was pushed to your social networks.

    As a result, Publicize won’t be triggered in the duplicated post, because the post meta says it’s already been triggered before.

    To solve that issue, you’ll need to customize the duplicate post feature to remove all post meta data star the string _wpas_ when duplicating a post.

    I hope this helps.

    Thread Starter JBCO

    (@jbco)

    Thanks @jeherve – I’ve ready this in a few spots before. I feel like a TOTAL noob here – but where can I edit that?

    I do not have a plugin for duplicate posts, I believe it’s built into WP.

    Thanks!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    If you do not use a plugin to duplicate posts, you’re most likely using WooCommerce’s built-in duplicate feature.

    You’ll consequently need to contact the WooCommerce team, and ask them if it’s possible to exclude specific post meta when using their duplicate feature. Maybe you could use the woocommerce_duplicate_product_exclude_meta filter that’s included in Woocommerce to control what gets copied, and what doesn’t:
    https://github.com/woocommerce/woocommerce/blob/master/includes/admin/class-wc-admin-duplicate-product.php#L273

    Thread Starter JBCO

    (@jbco)

    Thanks guys!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Duplicate Posts & Publicize’ is closed to new replies.