• Hello,

    I’d appreciate any help we may get to do the following.

    We are migrating a very big site from Joomla! to WordPress. So far we’ve managed to migrate the content without hassle, however in Joomla! we were using a plugin called “Sourcerer” to be able to insert raw HTML directly into the content. This was basically used to embed YouTube videos or tweets, as well as creating some custom HTML to insert ads or such, and avoid Joomla!’s content editor code escaping.

    Now, we have more than 400 content items in WP with custom HTML that’s embedded into the content between {source}.......{/source} tags.

    We are wondering what would be the best way to automatically and directly modify WP’s database and replace this code fragments with functional ones.

    Is there any plugin that does this same thing in WordPress? I mean, converting any raw HTML put between tags into usable HTML? Probably shortcodes? Snippets? I’m new to WordPress so any guidance on how to start solving this would be greatly appreciated.

    Thanks for the help!

Viewing 1 replies (of 1 total)
  • Prior to WP 5.0, the content is saved as pure HTML. With 5.0, the block editor was introduced and while the content is still HTML, it contains HTML comments that contain the properties of the blocks.
    So depending on which editor you will be using, the answer is different. You can use the Classic Editor and you don’t need anything special to have your HTML.
    Using the block editor, you can use the comment indicator for either a Custom HTML block or a Classic block. (you can create a test block to see what the markup looks like)
    Then use a plugin like Search Regex or Better Search and Replace to make the changes in the content part of the database.

Viewing 1 replies (of 1 total)

The topic ‘Help with migrated content and HTML snippets’ is closed to new replies.