The obvious result of an incorrect media ID is that it cannot find the image (because it’s not in the media set).
One way to work around this, is to set up your images on the old site as url’s instead of media items. I’m sure this is not the only and definitely not the best solution. However, it works for me. (Select “Insert from URL” instead of “Media Gallery”. The url’s for each image are shown in the “Copy Link” field when you select the image in the media gallery). However, this means that the image have to remain available on the old website.
Related Posts:
- How to hide specific Gutenberg blocks settings from users
- How To Have Two Gutenberg Editors On One Post?
- Set Post Title to Read-only and Disable Permalink Slug Editor in Gutenberg
- How can I see a list of pages and post where my custom Gutenberg block is used?
- Get post from custom REST endpoint in Gutenberg
- How do I add a reusable block to a programmatically created post?
- Limit Gutenberg blocks available to users to choose from
- Block Editor: Reset Reusable Blocks to last saved record
- List blocks created by a specific block plugin
- How to Programmatically add an empty Block to every post on wordpress site?
- transition_post_status hook doesn’t have any POST data when publish with Gutenberg [closed]
- Block editors annoying warnings
- How to populate a select field with post titles/ids in a block
- Get post publishing date from within custom HTML block
- Indenting within a blockquote
- Override WordPress core post-template.php block template
- How to remove the ManageBlocksMenuItem in the ToolsMoreMenuGroup in the Gutenberg Editor?
- WordPress React re-rendering to many times
- How to set a Post’s default visibility to ‘Private’ in Gutenberg?
- Embedding Post Editor Into External Site
- Add data attribute of post_id for Internal links
- Auto inserted strange characters in wp post
- How to add a block to a category page?
- Is there a block to print post link standalone in a block theme?
- Notify/check if the content of a custom gutenberg block has changed on save_post
- editPost without undo entry
- ‘403 Forbidden’ when publishing a post containing different blocks
- Gutenberg block: add a multi-select for posts
- Preset category checkbox from URL parameter when creating new post
- Is it possible to create dynamic templates for block themes directly from the site editor?
- How do I get my Gutenberg element to prevent last modified from updating?
- Can’t save/get Patterns’ `post_content` attribute
- Shortcode in loop always display data of first post on the page
- Get WordPress post content by post id
- Get page ID of page that is set as the posts page
- Get Posts Under Custom Taxonomy
- How to limit the number of posts that WP_Query gets?
- Stop WordPress Wrapping Images In A “P” Tag
- When is the ‘post_content_filtered’ column in database cleared by WordPress?
- Turn a URL into an Attachment / Post ID
- GET the excerpt by ID
- Stop WordPress automatically adding tags to post content
- Determine if page is the Posts Page
- How to get ‘post_content’ without stripping tags?
- How to add an admin notice upon post save/update
- Print Current Post Index number within Loop
- Should we trust the post globals?
- Optimize post insert and delete for bulk operations?
- Get the Current Page Number
- How do you add thumbnail support for custom post types?
- How to mark every 3rd post
- Change Posts per page count
- Keep featured content post in homepage with original order
- How to display related posts from same category?
- Can posts have parents?
- Is there a action hook for the “Empty Trash” button?
- How to end the excerpt with a sentence rather than a word?
- How do I check if I linked to a post before I delete it?
- How to change the case of all post titles to “Title Case”
- Appending content with broken in 4.4
- How to get posts published between a date and today?
- ZIP up all images displayed in a [gallery] and offer as download link
- How to detect single.php (but not single-portfolio.php)?
- How to check if post meta key exists or not in wordpress database
- How to remove a column from the Posts page
- removing inline styles from wp-caption div
- What is the use of to_ping and pinged column?
- How to use “Add link” pop up for a WordPress widget
- Remove Categories / Tags From Admin Menu
- How to retrieve text only from wp_content() not from wp_excerpt()?
- Stop WP from creating “Sample Page” and “Hello World!” post
- Where is the old post permalink slug stored?
- How to Create Editable Blocks of Text for the Homepage?
- Keyboard shortcut for updating a page or post?
- Add custom Attachment Display Setting for images
- Rewriting post slug before post save
- Apply the_title() filter in post & page title, but not in menu title
- How to Change Order of Posts in Admin?
- is it possible to get next_post_link
- Get post content by ID
- How to get post creation date?
- Update post counts (published, draft, unattached) in admin interface
- Function to execute when a post is moved to trash .
- How to get post ID of the current page/post inside a widget?
- add action only on post publish – not update
- How to display by default only published posts/pages in the admin area?
- How do you add Read more … link to posts?
- How to make comments work for a post loaded per Ajax?
- Is there an if statement that can determine if a post in the loop is the last post?
- Get current menu_order
- How to show related posts by category
- Changing the post date and time with function
- simply loop through posts
- Difference between an archive and a page listing posts
- Delete Associated Media Upon Page Deletion
- Set Default Listing “View” in Admin
- Access post from post id in URL
- Count posts within a custom post type and specific taxonomy and terms?
- How to add category to: ‘wp-admin/post-new.php’?
- Post preview mechanism architecture