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 can i put image to come first than the title?
- Replace the attribute_escape to esc_attr()
- Overwrite URL on blog posts
- WP_Query: Fetch posts that are in (category1 and not in category2), OR posts that are not in cagegory1
- post content includes and seo vs. duplicate content
- Should new posts already have tags?
- Is it possible to have different header style blog titles in different categories?
- Creating pages and getting their values from the database table
- Posts don’t appear on the Blog page
- Older entries link within a category page
- Display the first post’s comments of category in comments.php template
- How do I display a full post, not just an excerpt?
- Show last post of employee in his profile page
- Remove read more
- include other content type post ID not working
- Insert link to my thumbnail images
- 1 post, 2 templates
- Custom Post Title as search term
- Commenting on a post from the admin panel?
- How to filter categories of a post
- Change places custom fields with title field in post wp-admin
- Make division in post_query?
- Category pages vs single post pages
- WP_Query based on a custom field result
- How to limit post query to only return a total count of items with certain post statuses?
- Columns in a “post”
- Get image paths from RSS feeds
- Redirect posts to sub domain except pages
- making a few sites in wordpress
- How do I display the next 3 posts in the sidebar?
- How to use wp_editor(); in functions.php then retrieve content in the template
- 2 tick boxes appearing below comments
- display post according to the term
- Insert new post for each user infinite loop error
- Home page: using custom fields for posts and pages
- Last three posts not being put in order by date. How to fix this?
- WordPress sub-posts and permalinks
- Display the popular tags by default in the backend post edit page (without having to click on the link that displays them) [closed]
- Add default content to post (for specific category)
- Can’t match title in database
- Displaying posts on Homepage
- Adding a time stamp on post view
- How can I allow users (subscribers) to download selected posts into a single PDF? (RESOLVED)
- limit posts per page
- WordPress Admin Tables in Post View
- Can I hide only one category from admin post list?
- Setting default category for display
- How to change text (date) in post base on the day
- How would I attach media/images to a post based on a ID stored in a each post’s custom field
- Get most recent posts by category that aren’t first overall [duplicate]
- How to get single post by one author?
- Where are my posts linked to? I keep getting a Not Found Error, and I have no single.php page
- How do I insert a custom field in a user submitted post?
- Choose options via url
- Latest posts on all pages
- How to handle dates, trying to calculate time since a post
- how to add pagination to the organize series plugin
- How to Post to Specific Pages?
- Post Attachment missing head (stylesheets/js/what-not)
- How to display subcategory articles in the category view?
- how to style an individual page in a category [duplicate]
- Show related (archive) month and year to post
- Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]
- associate posts to a page
- Sort by category and then date?
- List posts that are in the same category as the current post title
- Change posts URL [duplicate]
- thumbnail image path and file path for gallery thumbnail images
- Wanting to apply different featured images for each post
- Only show posts with image and the correct ammount of posts in loop
- Is there a way to separate wordpress titles from their posts?
- retrieve post slug by post_tags taxonomy
- Related posts by searching post tags of single post as terms
- How to display a certain template element only for posts published within certain time range?
- The loop: more posts than I want to fit on one page
- List direct children of page
- adding custom meta as well as looping through posts
- Unable to get posts with category on my page
- each user having category with their name and can add sub categories post in that category
- Loop not allowing infinite scroll after post per page limit
- Customise the appearance of 4 specific post ID’s within the loop?
- Multiple post back-to-back display only one gallery
- Specific Post Format Image Thumbnail
- Display ONLY Latest Post From Several Categories
- Attaching global meta to custom fields
- How to make a posts page display only intros of posts?
- Can’t assign another category other than Uncategorized int he following front end post submission form?
- wordpress radio button on single post page
- get post custom value
- Multi Quick Edit – Possible Or Impossible?
- Error establishing a database connection
- How to limit the number of posts a user can publish based on user type
- Admin moderates ALL comments (including post author)
- Load posts from external source if not found in database
- WordPress strips some attributes for author posts
- jquery: getting contents of #content field on post page
- How do i put a dropdown list of ALL my post in the sidebar menu?
- Post count by Parent Category
- First Custom Post Custom Fields Empty After New Custom Post
- Automatically delete default posts and pages on theme install?