• Hello, I have two wordpress sites where articles are generated automatically on the first site and I want to automatically transfer these articles which are saved as drafts in a certain category to the second site with wordpress. Is there a way for example with API?

    • This topic was modified 2 years, 7 months ago by James Huff. Reason: link moved to proper field

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    You would need to hook an action like “save_post” in the source site. The action callback could gather appropriate post data and POST it to the destination site’s API.
    Ref: https://developer.ww.wp.xz.cn/rest-api/reference/posts/#create-a-post

    The request must be authenticated by the destination site. There are various possible auth mechanisms. I recommend Application Passwords.

    Thread Starter mugestan

    (@mugestan)

    Thanks

    Is there a module for this?
    I used the following module but it doesn’t work properly: “Sync Post With Other Site”

    Moderator bcworkz

    (@bcworkz)

    I’m not familiar with any, I’ve never had such a need. There are a good number of sync plugins in the WP repository, but it looks like many are intended for syncing with a specific non-WP site. But there still appear to be a few generic WP to WP sync plugins among the many.

    You might try seeking help through the current plugin’s dedicated support forum to see if it’s possible to get it working for you. That support forum doesn’t appear to be very active, but there’s no harm in asking for help anyway.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Transfer articles automatically by api’ is closed to new replies.