Multisite - How sync posts to multi sites

I have a network with multi site and I need that there's a "main" site where I can add posts, taxonomies, pages (and also translations about them) and I want the possibility to share the different post type to different sites along my network. For example: My network has: Main Site Site 1 Site 2 Site 3 In the Main Site I have these posts: Post 1 Post 2 Post 3 Each post could have a lot of data related …
Category: Web

Sync user meta data to a second database

I need to sync data from the wp_users and usermeta databases to a second table upon registration. I have accomplished the wp_user part successfuly by placing the following code in my functions file: function add_to_YjT_bookly_customers($user_id) { global $wpdb; $user_info = get_userdata($user_id ); $wpdb->insert( 'YjT_bookly_customers', array('full_name' => $user_info->user_login,'wp_user_id' => $user_info->ID,'email' =>$user_info->user_email,'first_name' => $user_info->first_name), array('%s', '%s', '%s', '%s') ); } add_action( 'user_register', 'add_to_YjT_bookly_customers');``` But I also want to sync data from the usermeta db, specifically the first_name and last_name. You can see …
Category: Web

WordPress Multisite Profile Picture Sync Error with Nextend Social Login Plugin

I am using Nextend Social Login plugin for the login and registration system of my WordPress Multisite. This plugin fetches profile pictures from Facebook accounts. Suppose there are two websites: example.com and blog.example.com My users log in through example.com/wp-admin/ and this plugin fetches profile pictures from their Facebook account to the root website (example.com). I only allow/add some users to blog.example.com. But whenever I add them, their profile pictures become blank despite being available on the root website (example.com). How …
Category: Web

How to synchronize user profile fields in multisite?

I'm using wordpress multisite. I installed Multisite user management plugin. If a user register in my main sites then that user automatically added in all my sites. My problem it doesn't copy the profile datas. I don't want my users to fill the same data in all 50 sites. So is there any code available to sync the datas? I mean if a user fill the profile fields in main sites all sub sites should be updated with the same …
Category: Web

Sharing Browser Links between PC and Phone

I'm starting a wiki to compile a short list of browsers, apps, extensions, etc. that allow users to easily link or bookmark webpages between their PC and phone. This is ultimately just a "best apps" question, so answers should be made CW. I placed an answer below. Any other suggestions are appreciated!
Category: Android

Sync posts via JSON API

We have a custom post type Events on our Wordpress website. Every event has a title, description and date. From our CRM-system, we can create a JSON feed where we list all Events. Every event in the feed will have a unique ID, title, description and date. Now we want to set up a sync from the CRM > Wordpress system. In general: Automatically sync every x hours the data from CRM to Wordpress If an Event does not yet …
Category: Web

ACF won't load from a custom JSON location

I’m trying to set up local json sync with ACF on a multisite installation. It worked with the default acf-json folder in the child theme, but I’d like to save and load everything from the parent theme. I managed to make it work when it comes to saving (custom fields will get saved to the parent theme folder from all subsites). However, the filter for loading (acf/settings/load_json) doesn’t seem to trigger. Even when I just try to output some strings …
Category: Web

copy fields value to another field

I've make a custom field named "Phone" using buddypress xprofile plugin, but this field cannot be searched by Wordpress primitive searching engine, I found another field which is "user_url" this field is searchable. The solution I'm looking for : (either one) Make "Phone" field searchable. hook "Phone" field's value to the "user_url" when user registering. Using "user_url" make the "phone" field's value become searchable. or setup a cronjob sync both fields hourly. or others genius idea make it happen!
Category: Web

Migrate a WP website from a single-server single-domain to a multi-server multi-domain installation

We are currently hosting a WordPress website at GoDaddy from the US that ultimately needs to serve customers in both China and the rest of the world. For performance and security reasons we require to host both a .cn website from within China and a .com website from outside of China (the .cn and .com websites will be identical). The .cn and .com websites have to be synchronised at all times and maintainable by a single WP Dashboard. I believe …
Category: Web

Syncing production with staging

we have a staging server in order to test out plugins and roll out new features and also re designing sites. The issue is that the staging version of the site will be out of sync as soon as new content is done on live site, or a new image is uploaded. What is the best way to keep the staging version in sync with the live one, including all posts, images and plugins as well as the whole database …
Category: Web

Sync up localhost copy of my website to the online version

I create my websites on my PC using Xampp localhost. Then when I am ready, I upload to the server. That all works fine. I have a particular site that has been up online for several years, and all new edits to the site have been done online. Now, I want to get my local copy of the website to be exactly the same as the online one. (I need to do some local testing.) What is the best way …
Category: Web

Wordpress & WooCommerce: Localhost, Staging and production environments and how to sync them without losing data

I'm working on my first WooCommerce site for an e-commerce shop I'll be launching hopefully in January (I should say that I've been working with Wordpress since the very beginning, so I'm not new to WP or PHP development) but I'm struggling with how to setup a good development/production environment. I've been searching for an answer to this but so far the closets I've come to an answer was that there is no "good way" to do it and require …
Category: Web

Seeking solution to sync wordpress sites with Server

I am searching for a solution to develop wordpress sites on my local machine via XAMPP and easily sync changes to my webhost. And with changes i mean everything, all files and the database. The only criteria i have that i dont want a subscription model. I found a couple solutions but these are all monthly or yearly subscriptions. I am absolutely willing to pay money but i want to pay once and thats it ... Does anybody know any …
Category: Web

Is there an actual way to synchronize 'production' and 'develop' WordPress databases?

I work with WordPress and I work with git. My code is versioned and I am happy with the workflow. What bugs me is database synchronization. I need to work with cloned database on my local development environment so I can easily alter any settings, publish new stuff, etc. In the meantime (say two weeks) when my work is done, I want to push all changes to the production. Git handles the files, but the database is a huge problem... …
Category: Web

Sync plugin settings (wp_options table) on multiple environments

How do you guys handle database changes, more specifically the settings (wp_options)? Im looking for something like, having a JSON file (or migration files bit similar like Laravel) with settings, that I can run after a deployment. For example once I install WooCommerce I have a list with default settings (presets) I want to use and import at once. But also once I add a new feature or plugin that I can migrate those settings across multiple environments. Would be …
Topic: sync Wordpress
Category: Web

How to sync staging to production but keep plugin settings

Is there a way to sync my staging and production environments, but keep the settings for certain plugins? For example, I am using a plugin for the Google tag manager. Each environment has a different container id, set in the plugin settings, that I don't want to be synced. I understand that the plugin data might be saved in the wp_options table. I can't just skip syncing the table as there are parts of that table that do need to …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.