In 3 steps, import the posts, restore the shortcode or embed provider, and test one imported post so WordPress can turn [shortcode] text and embed URLs…
Last updated: December 01, 2026
Quick answer: in 3 steps, import the posts, restore the shortcode or embed provider, and test one imported post so WordPress can turn [shortcode] text and embed URLs back into live blocks or rendered output. If the posts land on the new site as plain text, the issue is usually not the import itself; it is that the destination WordPress install does not have the same shortcode source, embed handler, or plugin available. This guide is about how to migrate inline shortcodes and embed codes in auto blog posts without losing the content that sits inside them.
Key takeaways
- Shortcodes are not just text strings; they depend on the plugin or theme that registered them.
- oEmbed and pasted embed codes can behave differently after migration, even when the post content looks intact.
- A careful order is usually best: import posts, confirm the needed shortcode provider exists, then check how embeds render on the destination site.
- A post can look “migrated” and still fail if the old site used plugin-generated embeds or custom shortcode attributes.
- Do not guess at replacements. If the source plugin is gone, the shortcode output usually needs a new provider or a manual rewrite.
What is actually breaking after migration?
Shortcodes and embed codes break because WordPress stores the text, not the finished output. A post may contain , , a plugin shortcode, or a pasted YouTube URL, but the front end only renders that content if the destination site still knows what to do with it.
Therefore, the problem is often split in two parts: the raw post content migrates, but the shortcode parser on the new site cannot finish the job. WordPress shortcodes are handled by the active install and any plugin that registered them, so a shortcode from an old auto blog can disappear into plain text if the matching plugin is missing or changed. See the WordPress Shortcode API for the underlying mechanism: WordPress Shortcode API.
Meanwhile, embed codes have a second layer of risk. A YouTube embed might work as an oEmbed URL on one site and as pasted iframe code on another. If the destination theme or editor strips iframe tags, the result is an empty box, a plain URL, or nothing at all.
For reference, WordPress documents shortcodes in its Shortcode API and oEmbed support in its embed docs: WordPress Shortcode API and WordPress Embeds. Those are the two systems most auto blogs lean on when posts contain inline media.
Which kind of content do you have?
The right migration method depends on whether the post uses a shortcode, an oEmbed URL, or a pasted embed code. Those three look similar in the editor, but they fail for different reasons.
| Content type | Example form | What must exist on the new site | Common failure after import |
|---|---|---|---|
| Shortcode | |
The plugin or theme that registered the shortcode | Text stays visible instead of rendering |
| oEmbed | A YouTube URL on its own line | WordPress oEmbed support and a supported provider | URL stays plain or becomes a blank embed |
| Embed code | iframe or script snippet | The editor, theme, and security rules allowing that code | HTML is stripped or blocked |
| Plugin-generated embed | Shortcode or custom code made by a plugin | The same plugin, same shortcode name, same logic | Output changes or disappears |

Because of that split, “migrate the posts” is not enough. A destination site can import 1,000 posts and still fail if the shortcode name changes from one plugin version to another, or if the old site used a plugin-specific embed wrapper that no longer exists. See also this overview of WordPress import and export when you are moving posts in bulk.
The fastest practical check is usually to open one imported post in the destination editor and look at the raw content. If you see the shortcode text exactly as it was on the source site, the content moved. If you see a visual preview on the source but not on the destination, the parser or provider is missing. For a second-pass check, compare the imported post to the source plugin’s expected output in the Shortcode API docs.
How do you migrate inline shortcodes in WordPress?
You migrate inline shortcodes in WordPress by preserving the shortcode text during import, then restoring the shortcode provider on the destination site before you expect the output to appear.
The core rule is simple: do not rewrite the post content until you know which shortcode provider it needs. A shortcode is only useful if the plugin or theme on the destination site still recognizes it. If the old site used a plugin to generate product boxes, rating cards, or video wrappers, install or replace that plugin first, then check the posts again. If you need a broader publishing workflow, the WordPress editor documentation is a useful reference for how content lands in blocks.
Use this order:
- Export the posts with the shortcode text intact. Keep the original post content as plain post content, not as rendered HTML. The goal is to move the shortcode string, such as
[example], exactly as it exists on the source site. - Import into the destination WordPress site. Use the normal WordPress import path for posts and let the content land before changing it. The result should be a post body that still contains the shortcode markup.
- Confirm the shortcode provider exists on the new site. If the shortcode came from a plugin, that plugin or a compatible replacement has to be active. Without it, WordPress has nothing to run.
- Check for shortcode name changes. Some plugins use a different shortcode tag or different attributes in later versions. If the old post says one tag and the new plugin expects another, the content will not render.
- Test one post before touching the rest of the batch. A single imported post tells you whether the provider, attributes, and theme support line up. That is faster than changing 200 posts and discovering the same problem everywhere.
- Only rewrite content when the shortcode will not be available anymore. If the plugin is gone for good, convert the shortcode output to static HTML or a new block format in a controlled way.
Because shortcode migration is easy to over-edit, avoid changing posts before checking the shortcode source. That can hide the original tag, which makes later cleanup harder. Another mistake is assuming the destination theme controls the shortcode. In WordPress, the shortcode usually comes from a plugin or a theme function, and the output fails if that code is missing.
So this is a content-layer problem, not just an import problem. The post body may survive the move, but the behavior behind the text does not. For related troubleshooting, WordPress shortcode documentation is the most direct starting point.
How do you move embed codes and oEmbeds?
You move embed codes and oEmbeds by matching the destination site’s embed support to the format that was used in the post.
WordPress supports oEmbed for many services when the URL is placed in the right form, often as a standalone line. That is different from pasting raw iframe code from a provider. If the source post used a YouTube URL, the destination site may only need WordPress embed support. If the source post used iframe code, the editor or security settings may block it. The WordPress embeds guide explains that difference in practice: WordPress Embeds.
Use this approach:
- Identify the embed form in the source content. A YouTube URL, a shortcode, and an iframe are not the same thing. The migration path changes based on which one is in the post.
- Keep the original URL or code in the imported post. Do not try to “clean it up” during import unless you already know the destination format.
- Check whether the destination WordPress setup supports the same provider. WordPress oEmbed handles many common services, but plugin-generated embeds may need the plugin that created them.
- Look at editor output, not just page content. Some embeds look fine in the post editor and fail only on the front end when the theme filters the HTML.
- Replace raw embed code only when necessary. If iframe code is stripped, switch to an oEmbed URL or a block that the destination editor accepts.
The trade-off here is usually between control and portability. Raw embed codes can preserve custom sizing or parameters, but they are more likely to be blocked or changed by the destination site. oEmbed is easier to carry across sites, but it depends on WordPress and the supported provider doing the work for you.
For many cases, a plain YouTube embed is often easier to migrate than a plugin-generated affiliate box, because the YouTube URL has a standard path and WordPress knows how to treat it. If the affiliate box depends on plugin-specific shortcode attributes, it may be worth consulting the plugin documentation or a WordPress professional before converting it, because the right fix depends on the exact plugin and markup. See also the WordPress embeds documentation for standard provider behavior.
What should you do when shortcode output is missing?
You should check the provider, the tag name, and the content format in that order.
Start with the shortest path to a fix: does the destination site have the same plugin or theme feature that created the shortcode? If not, the shortcode has nothing to call. If yes, check that the tag name matches exactly and that the post still contains the right attributes. A missing closing bracket, a changed attribute name, or a plugin update can be enough to stop output.
Then look at the post body itself. If the imported content is inside a block that strips shortcodes, the tag can stay visible without running. If the editor converted the content into a different block type during import, the shortcode may be sitting in a place where WordPress no longer evaluates it. The WordPress editor docs are useful here because block placement can change what gets rendered.
The honest limitation is that some shortcode output cannot be preserved without the original plugin. That is especially true for plugin-generated embeds and affiliate widgets. In those cases, a replacement shortcode or a manual rebuild is better than hoping plain text will render itself. If the plugin is still available, match its version and shortcode syntax before changing the post.
This is also where a staged migration helps. Migrate a small set of posts, confirm one shortcode family and one embed family, then continue. That keeps the problem local if a tag format, plugin dependency, or embed rule breaks on the new site. A 10-post spot check is enough to expose most render issues before a full rollout.
What does a clean migration workflow look like?
A clean workflow separates content transfer from content rendering.
First, move the posts. Second, make sure the destination WordPress site has the shortcode source or an approved replacement. Third, check embeds one type at a time, starting with standard YouTube embeds before moving to plugin-generated or affiliate embeds. Fourth, review only the posts that contain shortcodes or embeds, not the entire blog at once. If you need a process reference, WordPress import and export covers the post-transfer side.
The point is not to make every old post look identical on day one. The point is to keep the source content readable and let the destination site render what it still understands. When that is impossible, replace the shortcode with a static version or a new block and keep the post useful.
This is not the right approach if the old site used many custom shortcodes that no longer have any destination plugin. In that case, a direct import can preserve the text but not the layout. A careful content rewrite may be the stable path, especially for affiliate embeds or heavily plugin-built posts.
For the wider migration of an auto blog, this page sits in the content-transfer layer of the move, not the media or settings layer. That distinction matters because shortcode failures often get blamed on “broken imports” when the real cause is a missing parser.
Why do shortcodes stop working after migration?
Shortcodes stop working after migration because the destination WordPress site does not have the same shortcode code that existed on the source site.
A shortcode is only a command string until WordPress or a plugin reads it. If the plugin is absent, inactive, renamed, or replaced, the shortcode may print as text instead of producing output. Theme changes can also matter if the old shortcode depended on theme functions rather than a standalone plugin. The Shortcode API docs describe that dependency model.
The easiest fix is to match the shortcode provider first, not the visible output. If that provider cannot be restored, the safer move is to convert the shortcode content into HTML or a new block before you publish the imported post.
How do i find broken embeds in imported posts?
You find broken embeds in imported posts by checking posts that contain embed URLs, iframe code, or plugin-specific shortcode tags and then opening a sample on the front end.
Start with a small batch and scan for the common signs: a visible URL where a video should be, an empty space where media should appear, or raw code showing in the content. If the post body contains YouTube URLs, oEmbed is the first thing to check. If it contains iframe snippets or plugin-generated embed tags, the editor or security filter is usually the blocker.
That is why embed problems are easier to catch early than after a full site launch. A 10-post spot check can show whether the destination setup accepts the same embed format before you move the rest of the archive.
Drafted with AI; not yet reviewed by a person.