Tag Info

Hot answers tagged

11

WordPress already has a XML-RPC client class implemented. It's in the same file as the server part: class-IXR.php located in wp-includes. The following code will generate a new post. You could wrap this in a function and attach it to the save_post/update_post action hook. To sync both parts, you could check for the post-slug or submit the same post-id to ...


6

The reality is that what we want is this: http://www.liquibase.org/ Liquibase is an open source (Apache 2.0 Licensed), database-independent library for tracking, managing and applying database changes. It is built on a simple premise: All database changes are stored in a human readable yet trackable form and checked into source control. However ...


3

Take a look at the FeedWordPress plugin, I've used this on one client site to aggregate feeds from their other sites and republish the latest post from each site. The UI is a bit complex and unfriendly, but it does the job.


2

I suggest if you want to use BuddyPress always, just ignore/remove WordPress profile informations and you can: Redirecting User to Their Buddypress Profile when They access their wordpress profile(wp-admin/profile.php): http://buddydev.com/buddypress/playing-with-buddypress-and-wordpress-some-codes-for-the-site-admins/


2

Once you have same db, you will have same users, so offcouse the password for the user 'admin' (please do not use 'admin' as username) will be the one setted in database, and of course is the same for the 2 sites, once they shared the db. However you can create users that can login only in one site and users that can login in the other. To do that, add a ...


2

as for your first answer , Like always, you can do that in many ways.. you can use a local folder synch write a function to allow wp to use a themefrom other install (3 filters to check : template_directory_uri // theme_root //theme_root_uri ) install a multiblog network mode and use the same theme for all. IMHO the best would be to to use local ...


1

You can easily use Windows Live writer and manage several blogs from your home and get a preview on how the post would look like in your blog pre-publish Try it you gona love it!


1

This code works, but please note that it is provided as is. It had only been tested in a localhost development. There's a function extracted from the plugin Multisite User Management, which is based on the get_blog_list function, that has been deprecated. No alternative available. For performance reasons this function is not recommended. The user ...


1

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 ...


1

Database synchronization between dev/staging and production Easily Move a WordPress Install from Development to Production? Maintaining synced staging/production WP sites


1

There's an action hook in the set_role function. It's a matter of detecting if this is happening in the main site, and, if it does, get all blogs of the user and change all roles. More details in code comments. add_action( 'set_user_role', 'sync_user_roles_wpse_91745', 10, 2 ); function sync_user_roles_wpse_91745( $user_id, $role ) { // is_multisite() ...


1

I don't know what you mean by sync users. Users are global in the network and can be assigned to any blogs. "both their public website and backend both use their own multisite blog. " This doesn't make sense. Can you clarify?


1

I have some modifications that I make in wp-config.php that allow for WordPress to work with my version control process. I think with some adjustments the modifications could work for your purpose as well. 1) Make URLs relative instead of absolute. This is useful because WordPress likes to write absolute URLS to the database, but since you're serving the ...



Only top voted, non community-wiki answers of a minimum length are eligible