Support » Plugin: WooCommerce Blocks » On all posts

  • Resolved samtulana

    (@samtulana)


    Hello. How do I make a certain block to be placed on all posts of the site at the end of the article? Just on the site of about 5000 articles and to place a block on each – it is an impossible task. Thank you.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support zdenys

    (@zdenys)

    Hi there @samtulana!

    What could work for your case is the following:

    – Add the desired block to one of the posts
    – Switch to code view and take note of how the related HTML code looks like
    – Export all posts via WP Admin > Tools > Export > Posts
    – Open the exported XML file in the editor
    – Find the post that had the desired WooCommerce Block added to it, copy the related code, and paste it at the end of each of the remaining posts
    – Import the Posts via WP Admin > Tools > Import

    I hope that’s helpful and points you in the right direction. Let us know if you have more questions.

    Thread Starter samtulana

    (@samtulana)

    Wow. I did a lighter one. I took the code, inserted it into the rotator of banners to put at the bottom of the article, but the block did not appear. Maybe something wasn’t pulling it up.

    Maybe you have shortcodes and php codes for that? Maybe there will be. Thanks.

    Plugin Support zdenys

    (@zdenys)

    Although we cannot provide direct help with PHP code snippets here per our support policy, you can indeed try using Shortcodes included with WooCommerce for your goal.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.