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
- 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?
- WordPress custom post_status after 6.6 version
- is it possible to get next_post_link
- Code to make a post sticky
- How to receive HTTP POST in WP?
- Why declare $post globally?
- Modify ‘Read more’ link adding a new class
- Modifying admin sidebar contents to show pending posts indicator
- Open WordPress ‘Add New Post’ admin page with parameters set via $_GET
- How to query posts with current or future date only
- When a user creates a post (pending), send a confirmation link that allows them to publish
- Get post only from ‘standard’ post format
- Add “Post Options” for new wordpress post
- Posts Page Featured Image [closed]
- Use template of parent category for single post sub-categories
- Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}
- Can’t publish new posts
- Two posts are loaded instead of one?
- how to find user ids of all commenters in a post
- When I re-save a post with [code] sections, the entities are double-escaped (> becomes > etc)
- How can I write comments/hidden text in a post?
- Automatic post deletion
- Lose “Blog Archive” from page title
- Should a photo gallery be in a post or on a page?
- Getting category posts from a certain year
- How can I show many posts an author has per week?
- Disable inline_edit() on edit.php
- Display post X of Y in category
- custom post scheduler for drafts
- Ajaxify This Code
- How do I display some posts fully on the homepage, and some as an excerpt only?
- How to bulk add vast amounts of posts
- Users problem (multi-author plus multisite)
- Avoiding “Missed Schedule” errors when inserting future posts
- Using setup_postdata() with multi-dimensional array
- Deleting post specific content at beginning of post
- Change Post Title For Specific Category
- How to display the requested post only?
- Export all posts to import as product items
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- Prevent duplicate pages from being added
- Can I style single post that are in multiple catergories?
- Older blog posts not showing up on WordPress
- Show single post child category from a determined parent
- Go back to the exact post page number
- Add CSS and JS files of the template post on a WordPress page
- New Post bubble
- show only one category and filter by tag
- How to redirect if is post edit or publish page?
- How to delete/customize imported demo content from a theme or add my own?
- How can I exclude only a specific sub category post from category display?
- testing result of $.post with json_encode
- Clean up customize_changeset in DB
- count_posts to a standalone link
- Add a unique meta desciption
- Post as frontpage – avoid duplicate content
- Blog styling in SASS
- Get results from the main wp_query
- Is there a way to change the complete URL of the blog post for a redirecting tracking link?
- WordPress with static posts page and custom permalink structure doesn’t find posts with numeric permalinks
- Preview own posts if logged in
- Pagination for custom query won’t let me back on page 1
- thumbnail image path and file path for gallery thumbnail images
- Displaying warning if no featured image has been set – Post Editor
- How to highlight most recent posts in a list
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- How to add a new page that will function as a separate blog/news article page
- How to set value in Query Loop?
- How to use shortcode to get the second to newest post?
- How can I enable checkboxes for custom post type posts on their post list – WordPress
- How to remove image from starting of wordpress blog post?
- Can`t attach image to a multiple posts
- how to display the actual size of the picture in post