• Hi,

    We’re removing an older discontinued plugin called “Global Content Blocks” and switching over to this excellent Custom Content Block plugin.

    They have very similar functionality.

    We can export from Global Content Blocks. Does anyone have a converter or recommend steps so that we can import to this Custom Content Block plugin?

    We could manually copy-and-paste all our blocks. But it’s about 150 blocks.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Johan van der Wijk

    (@vanderwijk)

    Hi Scott,

    Unfortunately the Global Content Blocks plugin is no longer available for download, so I can’t see how this plugin works.

    If the plugin uses WordPress custom posts to store the content blocks, you should be able to change them easily with an SQL query.

    You could try something like this:
    UPDATE wp_posts SET post_type = 'content_block' WHERE post_type = 'THE OLD CUSTOM POST TYPE'

    Then, you will also have to update the shortcodes that your have been using. Again, I don’t know how the Global Content Blocks plugin works, it might be as simple as this:

    UPDATE wp_posts SET post_content = REPLACE ( post_content, ‘[THE OLD SHORTCODE’, ‘[content_block’ );

    Note that you will also need to include the the custom post in the shortcode via either the slug or post ID like this:
    [content_block id=xx] or [content_block slug=my-content-block]

    Hello,
    I really need a way to migrate as well.
    Not only to replace the mentions of the short codes in the site’s content, but also migrate the blocks themselves.

    I can send you the Global Content Blocks plugin if you’ll give me your email.

    Thank you

    Plugin Author Johan van der Wijk

    (@vanderwijk)

    I have found the source code on trac and it seems that the Global Content Blocks are stored in a propitiatory database table (so it is not storing them as a custom post type).

    Unfortunately this means that there is no easy method for converting them to content blocks.

    Thread Starter ScottCodes

    (@scottlush)

    Thanks, we converted the hard way: we copied the html from each block in “Global Content Blocks” and pasted it into a new “Global Blocks” blocks. Then we changed over the shortcodes on all pages from Global Content Blocks to your plugin’s.

    It seems like that was the slowest but only approach.

    Thanks again for the excellent plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Anyone have quick way to import from former “Global Content Blocks” plugin?’ is closed to new replies.