There isn’t really a super easy way to import content that’s saved in this manner. If you have a lot of pages with a similar structure, you may want to look into writing a script that can parse your HTML and add the images the WP way – through the Media Library. Depending on the JS you have on each page, if it’s similar or identical across pages that’s not too hard to enqueue, but if it’s unique to each page it will take time to isolate the conditions and only enqueue on the appropriate page.
So, if you have a few dozen pages, it’s likely that rebuilding them in the Block Editor will be the fastest approach (and then for the JS, you’ll need to create a child theme or a plugin to enqueue on the appropriate pages). If you have more than that, writing a custom script to parse everything may save some time.
Related Posts:
- How do I check if I linked to a post before I delete it?
- How to check if post meta key exists or not in wordpress database
- Custom Post Types, slug, archive and SEO plugins
- Portable Post Links
- Related Posts by Multiple Tags?
- Action hook ‘wp’ firing twice… why?
- Dynamically update post title in admin page
- How can I display 7 posts on the home page, but 9 posts on the subsequent pages?
- WP REST API, query total posts in a category
- duplicate posts when trying to update a post using the wp_insert_post.
- Add custom field to all posts in specific category
- 404 error after publishing a post
- How to remove_filter that filters iframes in posts? [duplicate]
- Hiding by default specific post status on backend list?
- How to edit layout of a particular post format?
- Displaying Page Title on index.php
- Detect Post Type when publish_post is ran
- Showing Thumbnail from Previous and Next Posts
- WP_Query in functions.php overrides global $post object, even with wp_reset_query()
- How to automate filing a form as a user
- WP rest api returns 404 only when author param is used
- What Is meta_id In wp_postmeta?
- the_posts filter been called multiple time
- Reset/Reorder posts ID in the MySQL wp_posts table
- Encrypt / Decrypt Post Title and Details
- Limiting the number of posts in WP_Query leads to unexpected result
- how to set beforsend option in wordpress ajax methods
- Prepend or add an Image to the content of a Post
- Guest Author – How to display posts on /author/ archive page
- How to add pagination in between post and comments?
- Posts not showing on page
- Select a specific post to display in a news box
- Redirection not working in this front end post submission form?
- Add Word Limit to Posts
- Having trouble with the_post_thumbnail to display thumbnail with custom size
- How to Programmatically add an empty Block to every post on wordpress site?
- Pulling in post category and children within category
- get query() without post content?
- Getting value from get_post_custom
- posts_per_page option limits the number of Gallery items
- show custom post type category dropdown sorting result on same page
- How to exclude visited posts from loop
- Get posts and include taxonomy term
- Number of displayed posts
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Add custom text automatically on each post
- What date to use as a post date? date_gmt or modified_date_gmt
- Display current post position in Elementor Posts widget
- singular posts using archive styling
- My Custom Post Type Still Using index.php
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- How to get the form code from the edit page of a specific post?
- Send email for pending post
- Get the post id from a plugin
- get_posts not pulling the correct number of posts
- change the post time on multiple posts
- If custom field is empty, use one from a previous post
- Making posts permalinks consistent numbers
- How to show category based post in home page?
- I can’t find the relevant part of the loop in my theme file. How do I find the full content with “More…”
- Locally change the font family [closed]
- WordPress single.php different layouts projects / posts
- WordPress Post via e-mail writes a random string for the post body
- YARPP php question
- Classic Button in Classic editor
- Export post another site
- Css and function issue on author archive page
- How to show post views shortcode data for each post on Posts List Page?
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- Related Customs posts
- How to add a ‘News’ section to specific posts in WordPress
- Get post attachment with post id
- I have two post types in the same query, how can I use CSS to select only one post type?
- How to hide meta from search result only on pages?
- How do I display posts ordered by a date custom field?
- How to show category image if no featured image is set?
- How to add category base prefix to wordpress permalink
- Get post id outside loop : Notice: Trying to get property of non-object
- Post formatting bug in WordPress
- WordPress Request Post All Post ID in a Loop? [closed]
- Custom Select Query pagination not working properly
- Template Body to posts
- Adding image in title
- Editing WP Plugin
- Bulk replacing content of multiple pages/posts?
- How can add posts without category into category
- Count > 1 Navigation Slider
- display post according to the term
- Home page: using custom fields for posts and pages
- Can’t match title in database
- Setting default category for display
- Get Video Attachment to post
- how to create child posts with parent post in wordpress?
- Index.php is ordering posts strangely
- Exclude sub sub categories from displaying in the archive page
- Change from all posts to specific categories post on main page?
- How to sort the post to a specific category
- Need fixing generic posting on facebook
- Broken images after importing posts and opening in Gutenberg
- Notify/check if the content of a custom gutenberg block has changed on save_post