Points 1 and 2:
Use the wpdb class
to read the table. Then use wp_insert_post()
to create your page.
Point 3:
WordPress has a Template Hierarchy that allows you to define which theme file to use.
Point 4:
Read the article on Writing a Plugin and add your code in it.
Point 5:
Choose a way to mark which was the last item that was processed, You can for example, save the index of the last article you processed assuming the index increments after each new record. You can even automate the job using wp_cron
.
Related Posts:
- Create pages automatically if they don’t exist
- Editing Complex Pages in Visual Mode
- Change admin startpage to Pages-page?
- Different fields in My Profile page depending on user role
- What’s the most minimal way in which a page can be hooked into WP?
- Associate Page with User
- Export only pages and posts with mysql dump
- Static files or dynamic WP pages for “static content”?
- CMS: Making complex pages editable by the end user
- Remove specific page/post from feed
- Custom page template not working
- How to create a page that contains a list of post titles from specific categories?
- How to detect if is_404() or is_page() or etc…? [closed]
- Redirect page to default subpage
- How can I use “getarchives_where” to get monthly archives for static pages?
- How to add an external php page with wordpress?
- Add a static page that links to homepage
- Create page template with some static contents
- Can I change the “Home” text in the menu?
- pre-existing data, and entities
- Automatically generate pages from SQL
- Get rid of “comment” field on non-blog pages [duplicate]
- How do you set the default page in WordPress?
- Pages that don’t look like blog posts?
- After creating a new page, filling the page with structure
- How to backup just pages from my site, but not posts with other post_type values
- Custom user tables not working after migration
- New Page/Post Screen Opens an Existing Post
- Problem with deleting a “Page”
- How do I make just one of my pages a Blog Page?
- pagination does not work with query_posts. Help! [duplicate]
- How to remove title (home) from static page skeleton template
- Multiple WordPress Pages
- How to create an user defined page?
- Adding a filter to wp_edit_posts_query() to prevent hierarchical display of pages
- Load new Posts on Scroll on Page
- Default pages to be unpublished – possible?
- How to remove the trackback and pingback text on the bottom of my pages?
- How to display text of a page in home or custom page?
- Add infinite scroll to content splitted post
- MySQL Database User: Which Privileges are needed?
- Check if wp-login is current page
- How to get current page ID outside the loop?
- Database synchronization between dev/staging and production
- Contact Form on WordPress Sites?
- Page returns 404 with POST variables, but not without
- Custom templates not showing up in template dropdown
- Get page id by template
- How can I make updates to a site, on a development copy, but then move updates back without overriding live site’s evolving database?
- Using pre_get_posts on true pages and static front pages
- Get the content of a specific page (by ID)
- How to get page title with the page ID?
- Show more than 20 items in pages or posts edit dashboard
- Allowing user to edit only certain pages
- Delete tables from database when deleting plugin
- How to display last 3 posts (recent posts) in a static page?
- How to give paged links custom title?
- How to set post slug when using wp_insert_post();?
- Safest way to bulk delete post revisions
- How can I keep the content of my pages version controlled?
- How to load javascript on custom page template?
- How to configure WordPress to handle 75,000 pages?
- How to update page status from publish to draft and draft to publish
- Check if is on child-page of a particular page
- Change page template programmatically ?
- Conditional tag to check if ‘page.php’ is being used?
- Customizing the URLs of WordPress Login and Sign-up Pages?
- How to disable posts and use pages only
- How can I delete orphan keys in WordPress database tables?
- featured image as background image on pages
- Check IF is a “single product page” and Check the “role” for a Redirect
- A check for if is parent page, if has children, if has grandchildren
- How to display by default only published posts/pages in the admin area?
- How to load JS and CSS only on specific Pages using is_page()?
- Listing pages which uses specific template [duplicate]
- How can I make a WordPress database portable and url independent?
- How to delete all records from or empty a custom database table?
- Proper way to get page content
- Access the same page from multiple urls (wildcard)
- Create a page without adding a page in the Database
- Is there a way to change the default page template selection?
- Can I have two child pages of different parents with the same name?
- What methods to use to create small, editable pieces of text for static pages?
- Show Default Editor on Blog Page ( Administration Panel )
- How to disable page delete
- Hide page visual editor if certain template is selected?
- What is the difference between $paged and $page?
- multi page password protection
- Create a “Dummy” parent page for a hierarchy in page listing?
- How do I convert a page’s title to lower case?
- Get top level page parent title
- Backup the Database and Restore from the Backup?
- get_pages() not ordering as it should
- How to add a specific widget to only 1 page?
- Restrict admin access to certain pages for certain users
- page title, parent tilte and grand parent title
- How to add jQuery script to an individual page?
- WordPress page edit does not save selected template
- Add a Page without header and menus?
- Using single.php from plugin folder instead of default template folder