Help creating Wordpress pages from Laravel app

Posted 1 year ago by makapaka

I have a Wordpress site and within it, an automation folder which contains a Lumen app that I am using for processing backend stuff.

I would like to create Wordpress pages/posts from this Lumen app and I found this interesting blog article https://www.adampatterson.ca/2017/building-an-api-using-laravel-and-wordpress-part-1/

which describes a way to do it without the rest api - authentication via the api looks like a pain so for the moment I am looking at this option, however this blog just talks about GETting posts, where I would like to create new pages entirely programmatically.

This blog article looks like he's able to run Wordpress functions like \WP_Query from Laravel - which is great, but I'm hoping someone with some experience might be able to verify you can also create data in a similar manner, before I go fully into this solution.

Thanks

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.