Plugin: AJAX query external API to sync to tables

Sketch/Concept To make requests to remote/external APIs, use the WP HTTP API. More in depth examples/details can be found in some of my answers here. Then simply add an admin page with add_submenu_page() or add_menu_page() or the related functions. Finally add a script via wp_register/enqueue_script() on the admin_enqueue_scripts-hook. There you fire an ajax (search archives) …

Read more

WordPress – Sync wordpress post with JSON feed

The important step is to assign a unique ID to every item you get from the source. Hopefully the JSON feed already includes one, but otherwise you will have to somehow create one yourself based on the JSON content. Once you have the value, you store it as a meta value of the post being …

Read more

Two live WP websites – how to sync?

You have basically tree ways. WP API (JSON) Feed (XML) XMLRPC API I think the first solution via WP JSON API should be your prioritized way. The WP API will implement inside the core of WordPress in the next releases. Currently you can use it via plugin. I think, this is the standard for the …

Read more

How to sync tags between posts that are linked through Posts 2 Posts?

I think there are 2 solutions for you problem. The first is rely on P2P functions like each_connected (see this as example) and retrieve the connected ‘Person’ after running a taxonomy query for ‘Activities’. Maybe this solution can be easier, faster and straightforward. Second solution is what you says in your question: apply the taxonomy …

Read more

Syncing production with staging

If you are using Pantheon for hosting it turns out to be trivial to do this as a test (they call it dev), stage (they call it test) and production server are built into their platform along with tools to manage moving data and files around. Plus with Pantheon you get easy but optional Git …

Read more