Programmatically generate new pages for a site based on page template and content elements accessed via DB

I ‘d like to programmatically generate new pages for a site – the textual and visual components of the content are stored in a DB, this includes the names for the different locations the pages are for, links to the location specific images and custom description text.

My first attempt would be to code a template for the page the way I want it to look like with the different sections, elements etc and then retrieve the relevant content for each page from the DB (by using the corresponding reference names for the elements as defined in the template)and send it to wordpress (with a post request to the rest api presumably)

(This is a data analyst’s attempt to automate a web development process.)

1) Is the above process feasible and meaningful ? (in theory)

2)Are there any plugins or instructions that would facilitate this (in practice) especially without reinventing the wheel ?

Read more here:: Programmatically generate new pages for a site based on page template and content elements accessed via DB

Leave a Reply

Your email address will not be published. Required fields are marked *