• Is possible publish a post in one blog and update another blog? I want update two sites without publish same post two times, it would be like a remote posting.

Viewing 1 replies (of 1 total)
  • Thread Starter Angelo Rocha

    (@angelorocha)

    I create a function called: remote_post
    and add a hook:

    add_action('publish_news','remote_post', 10, 2);

    In function scope i get the current post data:

    $post_title = $_POST['post_title'];
    $post_content = $_POST['content'];
    ...

    But i don’t know how to send this data to another wordpress site.
    I’m not using multisite, but the two sites are on the same network.
    Any idea?

Viewing 1 replies (of 1 total)
  • The topic ‘Send post for another wordpress site’ is closed to new replies.