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
- Stop WordPress automatically adding tags to post content
- How to prevent posts from being published too close to each other?
- Let private posts stay in status “private” after edit through “editors”
- how to get a different html for odd/even posts?
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- How do I create a link that will always show the latest post?
- How to display posts by current user/author in a custom page template?
- featuring old articles without messing up with the archive
- Display most recent post in category instead of archive?
- Human Time Diff, change mins to minutes
- How do I programmatically add an image to a post?
- problem to delete page
- Display the latest posts, published in the last hour, with WP_Query
- same template for multiple custom post type single
- Allowing the SoundCloud player to appear in a post excerpt
- Display the Content of a Post with qTip2
- Converting multiple loops into one single loop with pagination
- Run a function when post is deleted?
- Server-side sorting of posts
- Exclude posts w/ specific post_meta on Rest API endpoint
- Should $found_posts be returned as string in ‘found_posts’ filter hook?
- Add icon/badge next to posttitle of specific category
- How to change wordpress dates to native language (even if the languge not available i wordpress)
- Theme removed “Edit Post” link on the front end. I wish it back
- delete_post hook – deleting multiple items
- How do I exclude the current post from listing in recent posts
- WP_Query orderby not working with meta_value_num and menu_order
- Custom WP_Query with complex ‘post_status’ argument
- Saving category to a post, before publishing the post
- Custom Post Archive Page not working
- Wrong post title displayed from loop
- Custom post types related to same custom post type?
- Bulk delete WordPress posts with phpMyAdmin
- Disable WordPress Archive Conflict Check
- How To capitalize The First Letter Of Every Word In The Post Title
- Show post content and title in diferent divs using WP_Query using a loop
- Check if a custom post type has already been created
- Uploading images in custom post form
- Reinstall WordPress while keeping attachments
- Display on page every post in blog WITH comments
- Custom WP_Query not working correctly
- Echo the number of posts being displayed
- Get post related to particular meta box? [closed]
- Exclude a category of posts in author template
- Dark Bar at the top of wordpress page can’t be seen?
- Open post within Foundation 3 Reveal
- How to make ajax load posts from the current category?
- Format array of objects to json for wp-json
- created post displaying differently on front end
- How can I create a ‘sub-blog’ which has its own sidebar on individual posts?
- MYSQL: Create SQL query to search for string and replace
- WordPress empty page! what is wrong with this code?
- Centre Blog Index (Posts Page) on Home.php
- Dropdown Select Post Filter
- Add postmeta to all blog posts
- Enable HTML Tags in WordPress Post excerpt
- Checking if a post contains an html tag
- If taxonomy has more than 6 posts, display show all
- How to give priority to page than to posts permalink structure?
- Add category information beneath post?
- how to remove entry meta from wordpress archive category and change its display
- Save/retrieve form data best practises for theme development
- Removing standard links in the posts page
- How to handle a post before publishing?
- Changing permalink of custom category
- Special Query: Title, Terms, Content – %LIKE%
- Error establishing a database connection
- How to limit the number of posts a user can publish based on user type
- Single post pagination
- posts_per_page – Repeats only first posts ‘post__in’ array
- Add News Feed to bespoke website, only to one page on whole site
- How to display my categories in a list (to a post, not the sidebar)?
- Site ‘Categories’: save an admin global setting with post metadata [closed]
- How to get post ID after removing that post?
- I cannot see the pagination in /wp-admin posts page