admin管理员组文章数量:1334333
I used to have a single wordpress site with a buddypress section (logged out visitors would see the blog only, but logged in users would see the buddypress area). I realised this was ineffective so i converted it to a multisite, where my "public" website was the root domain, and my "intranet" was at /team subdirectory. When I visit the network site admin, I see 190 users. When I visit the public website admin (which was the original site), I see 190 users. When I visit the /team subsite admin, I only see one user: me, the superadmin. Something looks odd, but I know that at the back-end, WP has only one users table so things should theoretically be fine.
- The posts on my public website are written by people who register to be part of my intranet subsite.
- The intranet should be the area where members can update their author bio, their profile image, etc. We also discuss new article drafts there.
My questions are: Should new members register on my main root site, or on the /team subsite. That is, should the "register/join our team" link point to or ? Does it make a difference? How do I configure the backend of my multisite so that there is only one blog, and all articles, drafts, etc are shared across my main site and my team site (for example, I want each member's profile page on the team intranet to list all the posts that they have written for the public website).
Here is stuff that I have tried thus far (the last line aligns the blog posts, but doesn't sync the members):
wp-config.php
define( 'WP_DEBUG', false );
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'localhost');
define('PATH_CURRENT_SITE', '/wordpress2/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
define ( 'BP_ROOT_BLOG', 2 ); // "2" is the team subsite $id
bp-custom.php
define ( 'BP_ENABLE_MULTIBLOG', true );
add_filter( 'bp_is_multiblog_mode', '__return_true' );
define ( 'BP_ROOT_BLOG', 3 );
add_filter( 'bp_get_root_blog_id', 'filter_root_blog_id' ); // return blog ID in
I also installed a plugin WordPress Multisite User Sync/Unsync but not sure if that solves my problem. Should I add a "last activity" to each member so that they appear in my Team users list (I read somewhere this might help)?
I used to have a single wordpress site with a buddypress section (logged out visitors would see the blog only, but logged in users would see the buddypress area). I realised this was ineffective so i converted it to a multisite, where my "public" website was the root domain, and my "intranet" was at /team subdirectory. When I visit the network site admin, I see 190 users. When I visit the public website admin (which was the original site), I see 190 users. When I visit the /team subsite admin, I only see one user: me, the superadmin. Something looks odd, but I know that at the back-end, WP has only one users table so things should theoretically be fine.
- The posts on my public website are written by people who register to be part of my intranet subsite.
- The intranet should be the area where members can update their author bio, their profile image, etc. We also discuss new article drafts there.
My questions are: Should new members register on my main root site, or on the /team subsite. That is, should the "register/join our team" link point to http://main/register or http://main/team/register ? Does it make a difference? How do I configure the backend of my multisite so that there is only one blog, and all articles, drafts, etc are shared across my main site and my team site (for example, I want each member's profile page on the team intranet to list all the posts that they have written for the public website).
Here is stuff that I have tried thus far (the last line aligns the blog posts, but doesn't sync the members):
wp-config.php
define( 'WP_DEBUG', false );
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'localhost');
define('PATH_CURRENT_SITE', '/wordpress2/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
define ( 'BP_ROOT_BLOG', 2 ); // "2" is the team subsite $id
bp-custom.php
define ( 'BP_ENABLE_MULTIBLOG', true );
add_filter( 'bp_is_multiblog_mode', '__return_true' );
define ( 'BP_ROOT_BLOG', 3 );
add_filter( 'bp_get_root_blog_id', 'filter_root_blog_id' ); // return blog ID in
I also installed a plugin WordPress Multisite User Sync/Unsync but not sure if that solves my problem. Should I add a "last activity" to each member so that they appear in my Team users list (I read somewhere this might help)?
Share Improve this question edited May 24, 2020 at 8:45 Gaurav asked May 23, 2020 at 5:58 GauravGaurav 236 bronze badges1 Answer
Reset to default 0If anybody else stumbles on this, here is the answer i worked out:
Even for multi-site, there is only one users table in your WP database. So it does not matter where they register. However, unless you configure it properly when they sign up, the user will be "tagged" to the site that they first registered on, and only on that site. There are many ways to configure to do what I wanted above, and I ended up using a plugin called Multi User Sync.
本文标签: Multisite User Sync Question about blog authorship
版权声明:本文标题:Multisite User Sync Question about blog authorship 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742368249a2461723.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论