Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Andrew Folts
Andrew Folts
14,238 Points

Possible to update info on one Wordpress site from another?

I have a client that wants to manage a bunch of event sites from one place.

I was thinking of creating one WordPress site with a post for each event site, where they could edit simple info like start time, location, etc.

Iโ€™ve tried searching things like โ€œupdate post meta on another WordPress siteโ€, etc, but havenโ€™t turned up anything helpful or even relevant.

Is it be possible to use AJAX to edit post meta on another WordPress site?

Thanks!

Kenneth G.
Kenneth G.
Courses Plus Student 1,171 Points

You could look at services like https://managewp.com

This lets you manage multiple WordPress from a single dashboard.

Andrew Folts
Andrew Folts
14,238 Points

ManageWP is just to manage updates, etc. It's not really meant to edit custom fields (as far as I know).

Kenneth G.
Kenneth G.
Courses Plus Student 1,171 Points

Well in that case you may create a plugin and use that as main controller, and connect to other sites using WP Rest API. I would recommend using Advanced Custom Fields, CPT UI, who have add-ons for the API, and make updates via HTTP requests.

Andrew Folts
Andrew Folts
14,238 Points

Nice! That makes senseโ€”I had kind of forgotten the WP Rest API existed, because I've never had a need for it. Thanks for the advice.

Kenneth G.
Kenneth G.
Courses Plus Student 1,171 Points

No problem! Glad to help. I would recommend using also a framework like Herbert or Titan to help you get started quickly.

Andrew Folts
Andrew Folts
14,238 Points

Haha, you're just saving me all kinds of time today. I was actually in the process of building my own Wordpress theme framework from scratch, but those might be a lot more efficient.

Kenneth G.
Kenneth G.
Courses Plus Student 1,171 Points

Haha glad to help. I am using Herbert as a bridge between wordpress and a Spring/Java app and it has saved me hours of dev time.