multisite

How to set-up Wordpress Multi-sites on Azure using sub-directories

試著忘記壹切 提交于 2019-12-06 09:57:18
问题 A question on Wordpress Multisite running on Windows Azure using Sub-directories: does it work? how do you do it?. I've installed Wordpress(4.2.2) from the Azure Gallery, updated the wp.config.php and web.config files to enable and install Multisites, but the result is a half working solution: Multi-sites is installed, and I can create and delete new sites, but the new sites have no css styling (404 errors) and I can't access their admin dashboards (404: The resource you are looking for has

How to get users who belong to a WordPress Multisite blog (site) with SQL?

China☆狼群 提交于 2019-12-06 01:58:47
I need to get all the users who have joined (are members) of a site (blog) in WordPress multisite. To complicate it, I am doing this outside of WordPress and don't have access to internal Wordpress functions, so need to construct the SQL directly. In English the SQL would break down as "get an array of user IDs of users that are members of site x" (where site relates to one of the WordPress Multisite sites). I've tried going through WordPress code to understand, but struggling with the above. I don't need the PHP, I can work that out, just an example SQL statement. Many thanks! select * from

How to set-up Wordpress Multi-sites on Azure using sub-directories

[亡魂溺海] 提交于 2019-12-04 17:42:18
A question on Wordpress Multisite running on Windows Azure using Sub-directories: does it work? how do you do it?. I've installed Wordpress(4.2.2) from the Azure Gallery, updated the wp.config.php and web.config files to enable and install Multisites, but the result is a half working solution: Multi-sites is installed, and I can create and delete new sites, but the new sites have no css styling (404 errors) and I can't access their admin dashboards (404: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable). So, for example, the base website:

Sync all User Roles between two Wordpress Installs sharing the same wp_users and wp_usermeta tables.

只谈情不闲聊 提交于 2019-11-29 14:59:35
I have created a Woocommerce Store (database prefix wp_) and a Wordpress Blog (database prefix wp_new_) that share the same users (sharing the same wp_users and wp_user_meta tables). I want to sync not just users but also user roles (multiple user roles) of all users. For this I tried the solution offered by https://kinsta.com/blog/share-logins-wordpress/ function ksu_save_role( $user_id, $role ) { $prefix_1 = 'wp_'; $prefix_2 = 'wp_new_'; $caps = get_user_meta( $user_id, $prefix_1 . 'capabilities', true ); $level = get_user_meta( $user_id, $prefix_1 . 'user_level', true ); if ( $caps ){

How can I create and load a second database in ddev?

被刻印的时光 ゝ 提交于 2019-11-29 08:11:11
I have a Drupal multisite that needs to have one database for each site, and want it to run in ddev, but ddev just has the one database by default, named 'db'. How can I get a second database? This isn't too hard, but I think it's undocumented at this point, and definitely for advanced users. The root password for the MariaDB container is 'root', so you can mysql -uroot -proot in there, and you can also do it on the host. Assuming you have the mysql client on your host, you can do this: Use ddev describe to get the mysql command and port number. Change the command there to use username=root,

Sync all User Roles between two Wordpress Installs sharing the same wp_users and wp_usermeta tables.

北慕城南 提交于 2019-11-28 09:17:16
问题 I have created a Woocommerce Store (database prefix wp_) and a Wordpress Blog (database prefix wp_new_) that share the same users (sharing the same wp_users and wp_user_meta tables). I want to sync not just users but also user roles (multiple user roles) of all users. For this I tried the solution offered by https://kinsta.com/blog/share-logins-wordpress/ function ksu_save_role( $user_id, $role ) { $prefix_1 = 'wp_'; $prefix_2 = 'wp_new_'; $caps = get_user_meta( $user_id, $prefix_1 .

How can I create and load a second database in ddev?

纵然是瞬间 提交于 2019-11-28 01:42:38
问题 I have a Drupal multisite that needs to have one database for each site, and want it to run in ddev, but ddev just has the one database by default, named 'db'. How can I get a second database? 回答1: This isn't too hard, but I think it's undocumented at this point, and definitely for advanced users. The root password for the MariaDB container is 'root', so you can mysql -uroot -proot in there, and you can also do it on the host. Assuming you have the mysql client on your host, you can do this: