WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Create programmatically a page for multiple blogs at once (4 posts)

  1. broncomania
    Member
    Posted 2 years ago #

    I try to build a plugin which should offer me the ability to programmatically publish and create at once the same page to multiple blogs. I found the wp_insert_post function which offers me easily to publish a page, but I can't solve the task to create the same page on multiple blogs at once. So I hope I can get some hints how to solve the problem without doing the same again and again for x blogs.

  2. widelegger
    Member
    Posted 2 years ago #

    You might look at the Diamond MultiSite Widgets plugin. It has a "broadcast" widget it can add to the editor which lets you selectively copy the Page or Post to the other blogs in your network. It doesn't auto-copy the content, but maybe that is ok for you.

    http://wordpress.org/extend/plugins/diamond-multisite-widgets/

  3. There are broadcast plugins out there.

    Broadcast a post/page to other blogs. Whitelist, blacklist, groups and automatic category+tag posting/creation available.
    * http://wordpress.org/extend/plugins/threewp-broadcast/

    Allows you to duplicate posts and pages to multiple sub-blogs at once.
    * http://wordpress.org/extend/plugins/multipost-mu/

  4. broncomania
    Member
    Posted 2 years ago #

    Thx for your reply!! I had to use the switch_to_blog() function to solve this task.

Topic Closed

This topic has been closed to new replies.

About this Topic