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 trialAndrew Folts
14,238 PointsPossible 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!
Andrew Folts
14,238 PointsManageWP is just to manage updates, etc. It's not really meant to edit custom fields (as far as I know).
Kenneth G.
Courses Plus Student 1,171 PointsWell 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
14,238 PointsNice! 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.
Courses Plus Student 1,171 PointsNo problem! Glad to help. I would recommend using also a framework like Herbert or Titan to help you get started quickly.
Andrew Folts
14,238 PointsHaha, 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.
Courses Plus Student 1,171 PointsHaha 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.
Kenneth G.
Courses Plus Student 1,171 PointsKenneth G.
Courses Plus Student 1,171 PointsYou could look at services like https://managewp.com
This lets you manage multiple WordPress from a single dashboard.