Check this out
Recent comments …
kento on Affiliates Pro WooCommerce Integration PackHi Ty, if a customer makes a purchase and has visited...
Ecwid & Affiliates Pro Video « Easy Affiliate Revenue on Ecwid & Affiliates Pro Video[...] the article here: Ecwid & Affiliates Pro Video Comments [...]...
kento on Affiliates Pro WooCommerce Integration PackHi Colin, you can use a plugin for that, the SB...
kento on Affiliates Pro WooCommerce Integration PackIt doesn't include multi-tier yet, is being asked ever more frequently...
Colin on Affiliates Pro WooCommerce Integration PackI am using the affiliates pro for Woo commerce and all...
Groups
Extensions
- Groups File Access Groups File Access is an extension that allows to provide file download links for authorized users. Access to files is restricted to users by their group membership.
Features
User groups
- Supports an unlimited number of groups
- Provides a Registered group which is automatically maintained
- Users can be assigned to any group
- Users are added automatically to the Registered group
Groups hierarchy
- Supports group hierarchies with capability inheritance
Group capabilities
- Integrates standard WordPress capabilities which can be assigned to groups and users
- Supports custom capabilities: allows to define new capabilities for usage in plugins and web applications
- Users inherit capabilities of the groups they belong to
- Groups inherit capabilities of their parent groups
Access control
- Built-in access control that allows to restrict access to posts, pages and custom content types to specific groups and users only
- control access to content by groups: shortcodes allow to control who can access content on posts, show parts to members of certain groups or to those who are not members Shortcodes: [groups_member], [groups_non_member]
- control access to content by capabilities: show (or do not show) content to users who have certain capabilities Shortcodes: [groups_can], [groups_can_not]
Easy user interface
- integrates nicely with the standard WordPress Users menu
- provides an intuitive Groups menu
- conceptually clean views showing the essentials
- quick filters
- bulk-actions where needed, for example apply capabilities to groups, bulk-add users to groups, bulk-remove users from groups
Sensible options
- administrator overrides can be turned off
- optional tree view for groups can be shown only when needed
- provides its own set of permissions
- cleans up after testing with a “delete all plugin data” option
Access Control
Groups defines some capabilities of its own. The groups_read_post capability is used to restrict access to certain posts or pages to groups (and users) with that capability only.
Framework
- Solid and sound data-model with a complete API that allows developers to create group-oriented web applications and plugins
Multisite
- All features are supported independently for each blog in multisite installations
Your opinion counts
You & Groups
Beta-testers and developers who need to integrate group-based features in their plugins and web applications: please use it and provide your feedback.
Feedback
Feedback is welcome!
If you need help, have problems, want to leave feedback or want to provide constructive criticism, please do so here at the Groups plugin page.
Please try to solve problems there before you rate this plugin or say it doesn’t work. There goes a lot of work into providing you with free quality plugins! Please appreciate that and help with your feedback. Thanks!
Follow me on Twitter for updates on this and other plugins.
Introduction
Content Access Control
Access restrictions on posts
On posts an pages (and custom content types) a new meta box titles Access restrictions appears. By checking Enforce read access, you can restrict access to the post to groups and users who have the groups_read_post capability. You need to assign this capability to a group and make users members of that group to allow them to see those posts.
Content visibility for members and non-members
The [groups_member] and [groups_non_member] shortcodes are used to limit visibility of content to users who are members of a group or users who are not members of a group. Multiple comma-separated groups can be specified.
Example: Limiting visibility of enclosed content to registered users.
[groups_member group=”Registered”]
Only registered users can see this text.
[/groups_member]
Content visibility based on capabilities
The [groups_can] and [groups_can_not] shortcodes limit visibility of enclosed content to those users who have the capability or those who do not have it. Multiple capabilities can be given.
Example: Showing enclosed content to users who can edit_posts (standard WordPress capability).
[groups_can capability=”edit_posts”]
You can see this only if you have the edit_posts capability.
[/groups_can]
Integration in the ‘Users’ menu:
Users – group membership is managed from the standard Users admin view. Users are automatically added to the Registered group. You can add multiple users to other groups here and also remove them.
Sections in the ‘Groups’ menu:
Groups
Here you can:
- add groups
- remove groups
- assign capabilities to groups
Capabilities
This is where you add, remove and manage capabilities.
Capabilities can be assigned to groups and users (1). These capabilities include the standard WordPress capabilities but you can also define additional capabilities for your web-application.
Groups defines some capabilities of its own. The groups_read_post capability is used to restrict access to certain posts or pages to groups (and users) with that capability only.
(1) Assigning capabilities to users is not integrated in the user interface yet but can be done through API calls.
Options
Administrator override :
Administrator overrides can be turned off.
Permissions :
For each role these permissions can be set:
- Access Groups: see information related to Groups.
- Administer Groups: complete control over everything related to Groups.
- Administer Groups plugin options: grants access to make changes on the Groups > Options admin section.
Testing the plugin :
A convenient option is provided to delete all data that has been stored by the Groups plugin. This option is useful if you just need to start from fresh after you have been testing the plugin.
Shortcodes
Limit content visibility
These shortcodes are used to limit the visibility of the content they enclose:
- [groups_member]
- [groups_non_member]
- [groups_can]
- [groups_can_not]
See above for examples and descriptions.
Show group information
- [groups_group_info]
This shortcode takes the following attributes to show information about a group:
- group : (required) the group ID or name
- show : (required) what to show, accepted values are: name, description, count
- single : (optional) used when show=”count” and there is 1 member in the group
- plural : (optional) used when show=”count” and there is more than 1 member in the group, must contain %d to show the number of members
Examples:
- [groups_group_info group=”Registered” show=”count”]
- There [groups_group_info group=”1″ show=”count” single=”is one member” plural=”are %d members”] in the [groups_group_info group=”1″ show=”name”] group.
Show user groups
- [groups_user_groups] – This shortcode lists the current user’s or a specific user’s groups.
Attributes:
- user_id – user_id or user_login or user_email identify the user, if none of these is given, groups for the current user are listed
- user_login – …
- user_email – …
- format – (optional) one of list div ul or ol – list and ul are equivalent; defaults to list
- list_class – (optional) class applied to the list
- item_class – (optional) class applied to the list items
- order_by – (optional) name (default) or group_id
- order – (optional) asc or desc
Show site groups
- [groups_groups] – This shortcode lists the site’s groups.
Attributes:
- format – (optional) one of list div ul or ol – list and ul are equivalent; defaults to list
- list_class – (optional) class applied to the list
- item_class – (optional) class applied to the list items
- order_by – (optional) name (default) or group_id
- order – (optional) asc or desc
Download
Download the Groups plugin on WordPress.

hi..looks good …ithere any way or shortcode i can use to show the number of registered users in a group or sub group.
ciao
Claudio
Not yet, but that would be a useful addition.
The new release (beta-3) now includes the [groups_group_info] shortcode which you can use to show the group’s name, description and number of members in the group.
Is there currently any way to say ‘if user-group = x’ then ‘allow access to blog id#4′ in a WordPress multisite subfolder installation?
Basically I created a blog ‘members’ in multisite where all of my members content resides. Trying to find the easiest solution to only allow certain groups to access that blog. guests/visitors see page saying members-only with options to register.
Is this currently, or considered for future updates?
*After a lot of trying determined s2members is not capable of this
wpmu memberships plugin comes close but still has issues after weeks of trying with their devs. Pretty much I do not see a current easy to use solution to this.
I find that very interesting.
From what you say, I understand that you would like to grant access to a certain blog based on group membership. There are at least two perspectives that I can offer to that:
1 – Grant access to the whole blog based on group membership
2 – Grant access to a blog’s articles based on group capabilities
With the current beta-1 you can do #2 but you can’t do #1 directly. To do #2 you simply protect all entries by the groups_read_post capability and assign that capability to the privileged group on each blog that you want to protect. For #1 it’s certainly something to consider and for #2 I’d say one would have to reduce the capabilities of the subscriber role and add those back on to the privileged group(s). Of course #1 would be much easier to handle on large deployments … actually I found myself wondering today why not allow to remove capabilities based on group membership because it might have come in handy on a project. Anyhow, if you’d like to try #2 and let me know about how it suits what you’re trying to achieve? There’s room for useful features …
#1 would be much easier for larger systems. Having a simple blog url restriction rule that covers all the content on that particular blog for a certain group would be easy to handle.
#2 becomes more difficult to maintain, esp as I am not just protecting posts, but custom post-types, taxonomies, forums, etc.
well hope some of the ideas are valid.
I’ve been on this journey for a few weeks now and frankly, there really isn’t an elegant solution available for multisite setups.
I agree and to do #1 seems challenging … also it would be interesting to take a look at the use cases.
Just checking back to see if #1 ever made it into the groups plugin.
My specific use case as you asked for it:
I create a completely separate blog on my network for support which holds my support docs, bbPress forums etc.
I have a setup where when a user purchases a product via woocommerce, then they are added to a ‘members’ group.
You have to be a member of the ‘members’ group in order to access the ‘members-only’ blog I talked about earlier. Everyone else gets sent to a page saying members only, please signup.
*I am not currently using your plugin for this, but rather a couple of others with a lot of personal hacks built in. Looking for a more elegant solution.
I could not get it to add capabilities (nothing would happen). What else is required?
How did you add the capability? If you did it on the Groups > Capabilities screen the capability has been added. Have you checked your filters on top?
What happened here was probably related to the issue with the capability table. This has been taken care of in the latest release.
Played around with the plugin and have following feedback:
1. Assigning capabilities to a group is time intensive; you have to assign capability for capability via the dropdown. Would be handy to have list of capabilities on the group edit screen in which the checkboxes can be ticked for required capabilities.
2. Currently am not going to use this plugin although it looks very promising. Reason is that visibility of posts is completely dependent on the capability “groups_read_post”, while I would like to assign groups to the post, so I can for example make certain posts visible to family members only and not to friends. But each group would require the groups_read_post capability to make sure they can read other posts.
Thanks for trying it and sharing that
Regarding 1 – if you want to assign multiple capabilities to groups it would really be a nice option to be able to do that.
On 2 – I can see what you mean. It would make sense to be able to use your own choice of capabilities.
Hi,
When I add a capability and click save, nothing happens and the page stays on the Add a capability.
If I go to groups then back again to capabilities, there is nothing added.
Any tip ?
Can you give some details about your testing environment please? What you experience is certainly not how it normally works, sounds like there might be a conflict …
Tx for your reply
I’m running WordPress 3.3.1 on a dedicated server.
The website is on a subdomain.
I don’t know what I can say more …?
Any specific details you might need ?
Yes please, what theme are you using and what other plugins are active?
This will work now, try the latest release please.
Hi Kento,
We are a small consulting company and would like to have customer specific pages and posts on our site that would require a customer to login in order to see their specific content. Each customer will have a unique set of pages with information confidential to their business.
Does your plugin sound like a fit for our use case?
Two other questions:
1. Is there a way to protect files so that customers can only download files specific to their group?
2. Is protected content hidden from WordPress’s search results?
Thank you!
Bill
Hi Bill,
Thanks for considering to work with Groups. Wouldn’t a multisite seem like the appropriate solution for this? You could add a site for each customer and protect its posts using the standard access restriction that Groups provides. This might even add prestige, as each site can reflect the customer’s corporate identity.
Regarding the other questions:
1 – Unless the files are protected by additional means, anyone who knows the file’s URL will be able to access it.
2 – Yes.
Hi Kento,
Thank you for your reply and your ideas. Re: Your Multi-Site suggestion: An excellent idea, but we’d like to keep all our content in a single site.
We’ll give your plugin a shot and see how it works.
Regards,
Bill
Update regarding 1 – protect files so that customers can only download files specific to their group – the Groups File Access plugin provides that functionality.
Can I get this to work with buddypress groups? double entry?
Should be possible but has not been done yet.
Hi
I am interested in using Groups, as I would like to group content for people to view but not limit access.
For me i would really like
1. php code in addition to the posting shortcodes (for more varied content)
2. to be able to list ‘my groups’ for logged in user
3. as iamjwk suggested above, I would need to add certain posts or categories to groups.
I haven’t tried using ‘do_shortcode’ for point 1. but the other 2 are essential to me at the moment.
It would be great to look into these if you are continuing to develop.
thanks
elvis
Thanks for your suggestions elvis, yes this is actively being developed further and what you propose makes sense to me as well. We can expect to see 2 and 3 done shortly and the documentation that is being prepared will help people to understand the API to integrate with their own projects.
On 2 – As of Groups version 1.1.5 you can list the groups for a user using the [groups_user_groups] shortcode. 3 is being worked on and 1 is provided through the API.
Hi, this is perfect for my needs…if I can get the shortcodes to work. If I want to have a bit of content appear for members and a suggestion to register appear for non-members, wouldn’t this be right?
[groups_member group="1"]Here’s your content.[/groups_member]
[groups_non_member group="1"]Please register.[/groups_non_member]
This works to hide or show the first bit, but the “please register” message is never hidden, group members see it as well as non-group members (and not just administrators). This is on the latest version of WP.
Also, I never seem to be able to unset the administrator override. Thanks for writing the plugin!
Could you try it like this please?
[groups_member group="Registered"]
This is visible to registered users only.
[/groups_member]
[groups_non_member group="Registered"]
This is visible to non-registered users only.
[/groups_non_member]
I would say it’s either because the actual content is not on a new line (as in the example I give above) or it might have to do with the double quotes used (e.g. using right double quotes instead of normal double quotes).
Hey also great to see this suits you, please let me know if the above solves it.
Thanks also for mentioning the administrator override issue, this looks like a bug – will need to fix it
I switched to single quotes, though I was definitely using normal double quotes before, and it works. Yay! Thanks again.
I would like all users to be able to access all my site content but I would like to control the email announcements of blog posts.
Example 1:
Real-Time Group – Gets email notice as posts are published
Daily Group – Gets email notice of new posts once a day
Weekly Group – Gets email notice of new posts weekly
Can I use Group to accomplish this?
A notification extension could be built based on these requirements and the Groups API, but it is not something that you could do with Groups OOTB.
How can I use your plugin to hide an entire page? Example:
All registered users can see Pages A, B, and C
Members of Group A can see Pages D, E, F, and X as well
Members of Group B can see Pages X, Y, and Z as well
Would like to have the entire Page hidden so it appears in the site navigation for the appropriate users only.
Thank you!
Thanks for the input Ben, in the current version 1.0.0-beta-3 Groups handles access to posts through the groups_read_post capability. This controls access to posts via back and front end but has its limitations – if a Group has the capability, its members can access any page that requires it. This is going to be changed so that cases like the one you describe can be covered easily as well.
Meanwhile (it’s not the ideal but an option for your case) you could wrap the content of the pages in question within Groups’ [groups_member] shortcode. Most probably the next release will cover your case fully.
Hey there itthinx,
Just installed the plugin, I am planning on using it to manage our Street Team. It is pretty redundant but I would like to be able to have a member be able to press a button and be automatically added to a certain group. Can this be done?
Thanks!
Hi Peter,
Yes you can do that through the API. Your button handler could end up adding the user to a group:
Groups_User_Group::create( array( 'user_id' => $user_id, 'group_id' => $group_id ) );Hope that helps, Cheers!
I need a paid subscription group membership. Can I use Groups together with a paid subscription plugin?
Yes you can use it that way, what features would you expect from the two together?
Same problem with adding new Capabilities
I did some checking and the capabilities table does not exist!!
It was there… but I have deactivated/activated the plugin a couple of times – requesting it delete all its data – which it does successfully.. but the activate does not seem to create the capabilities table – all the others are there – – nothing obviously wrong in the controller.php – so I’m puzzled…
WP 3.3.1 – Plugin Beta 3
Thanks for reporting your issue. Can you please forward a zipped dump of the site’s database? (You can send it to the email on this page)
Sent
Great, thanks. Will have a look and let you know.
Released beta-3b, please deactivate and activate the plugin after updating, it will take care of creating the missing table.
Working nicely now on beta-3d
It’s been fixed in the latest release.
Can I email the members of my groups, please? If not, is anything planned for the future that might let me do this at some stage? BTW – thanks for the plug-in – works great so far. This one little addition would make it perfect for me!
Thanks Michael, it would be fairly easy to build that functionality, given that Groups’ API provides everything necessary for that. It’s a feature that surely would be welcome in many cases, probably as an extension but currently I can’t give an estimate for when this would be available because the next release of the Groups core has to come first.
Thanks for the prompt reply. Glad to hear it is on the list
I don’t see any way to add users to a group on either the group or user menu. Did I miss something during install?
You can assign users to groups on the usual Users screen. On top of the user list, there are two new buttons to do that.
My bad, thanks!
Hi! Please help me. Can I add my own capability checkbox to Access restrictons meta box on posts and pages, which provides read access to the group I created?
This is going to be possible in the next release. It’s already being developed.
Thanks for the response! And when the following release is planned? This possibility is necessary to me very urgently((
An exact date for that isn’t there yet, the project’s powered exclusively by my own resources right now but I hope that it won’t take long as it’s something that I would like to see as soon possible.
I need to use another shortcode inside.
Example:
[groups_member group="Registered"]
[GLOBALMAP]
[/groups_member]
Show: [GLOBALMAP] instead of real map
Example2:
[groups_member group="Registered"]
[contact-form-7 id="38" title="Contact form 1"]
[/groups_member]
Show: [contact-form-7 id="38" title="Contact form 1"] instead of form
Please help
Ok, I don’t quite get what exactly is your question. Could you please explain? The nested shortcodes should work, do you see any issues there?
Sorry, my English is very poor.
The following page http://www.zofoptogerman.ro/auto/?page_id=8 contains:
___________________________________________
[groups_non_member group="Registered"]
Please complete the following form:
[contact-form-7 id="38" title="Contact form 1"]
[/groups_non_member]
[groups_member group="Registered"]
[GLOBALMAP]
[/groups_member]
___________________________________
What you see is in page is:
Please complete the following form:
[contact-form-7 id="38" title="Contact form 1"]
When i use just:
Please complete the following form:
[contact-form-7 id="38" title="Contact form 1"]
without
[groups_non_member group="Registered"]…..
in the page it’s show the form like this:
http://www.zofoptogerman.ro/auto/?page_id=44
Thanks, I’ve updated the shortcodes to allow nesting. This is in Groups release 1.0.0-beta-3c – please update to that version.
I am attempting to use your plugin but the capabilities area is empty and when I try to add a few that I see on the screen shots of the plugin, nothing happens, a bit disappointing so far
This issue has been reported and is currently being looked into. You can help to solve it by providing details about your installation: What server, plugins activated, theme, …
I installed the plugin directly from the wp plugin list within my dashboard, I do have a couple other plugins operating, TheThe Fly tabs, WP Auctions and BWS Contact form but I don’t see them causing any problems
Thanks, what about the server OS, PHP version, MySQL version?
This issue has been fixed in the latest release.
Do you know how can i make a user from a group (Group 1, for example) see only members from that group in the Users page?
Nice plugin, bytheway =D
Hey thanks Minaki
Currently I only see two feasible solutions for that, one would be to create a custom Users page which uses Groups’ API to make that work, the other one would do a similar thing on the front end. So yes it can be done with Groups but it would have to be coded. I hope that helps.
It’s look complicated. Can you help me? I don’t know where to start.
Thanks =D
Yes, it requires a certain level of expertise. It’s not something I would do for free, if you want to have this done for you, please contact me here.
Hi
Sorry I hope I am not being to lazy. is it possible to let users define the group field on one of my plubic website page (E.g. “register a group” page). Thanks for replying
Hi Ted, not at all
You can use the API to handle creating the Group using the
Groups_Group::create( $map )method.How to get the author groups from theme template (php) ???
Do you want to show what groups the author belongs to? Have a look at the Groups_User_Group class and related, you should be able to understand how to retrieve that from it.
Hey Kento, I have a website that uses wishlist member. First question: Does groups work with wishlist?
Second is: Can users be added on the front end? Because I created a front end dashboard on the site. So everything has to be front end
Third: Users will register to wishlist, can they add themselves on the group?
Hope you can clear this for me, and really great work on the plugin. Been looking for this feature for a long time
Thanks man!
Hi Sanjay, thanks for your comment. There is no integration with WLM for Groups although maybe you can do that depending on what exactly you need to do. Sure you can add users to groups from the front end, have a look at the classes that handle users and groups, it’s very easy to use. Same thing for your third question, you can provide a means for them to add themselves to a group.
Hello,
If I already have many groups set up already in my site will your groups show up or not? I have over 3,000 groups set up on my site right now and though I tried to set up two new groups with the Groups plugin, I cannot see them live on my site. Or is it due to plugin incompatibility? I have BP Group Hierarchy and BP Group Management also installed.
Thank you,
Margy
Hi Margy, actually the Groups plugin is completely independent of BP. I understand what you expected to see, but as these are different systems and no integration has been done, it won’t be possible – at least for now. Cheers
Hi, Kento! Great plugin!
Above Peter asked about how to make it so a a user could automatically be added to a certain group when they clicked a button. I would like to be able to have a button like that, but I am a newbie and I don’t have the slightest idea how. I would really appreciate some help.
Thanks,
JD
Hi JD, basically you use the API call that I’ve mentioned in my reply to Peter. If you don’t know how to use that information, right now it would be rather difficult for you to achieve this. Maybe at some point that button thing could be a good idea to offer as a shortcode. Then it would simply be placing the shortcode where needed and it would work. Let’s see if there is more interest in having that and it’s worth the effort of adding it …
Okay, thanks, Kento. I really don’t know what to do with that information but I will try to figure it out.
Thanks again,
JD
I installed Groups in my WP blog website. I wanted to create a group that would be able to read and write to private posts and private pages. Not only was I unable to make it work, Groups has now rendered the pages of my website undisplayable. I am able to open and edit a page or post in the dashboard — the content is still present — but it will not display when I try to load the page or when I click VIEW when looking at the content the edit screen. I tried disabling Groups and that doesn’t make any difference. I’m rather desperate. Can you help please?
That sounds like a conflict with another plugin on your site. What you can do for now is go to your plugins directory and delete the groups folder. Please let me know what other plugins you have installed and activated as well as the current theme, we can then check to see what’s causing that.
Thank you, Kento. I deleted the Groups folder and deactivated my plugins and the display came back. Now I am checking which plugin was in conflict… OK, apparently the conflict was with Wiziapp. I had not created an app with it so I deactivated it and everything is fine. Thanks again for your help!
Thanks for taking the time to test that Nelson. I will check that to see what’s causing the conflict.
Hi, please allow me to quote from a previous comment
Quote: “Hi
I am interested in using Groups, as I would like to group content for people to view but not limit access.
For me i would really like
2. to be able to list ‘my groups’ for logged in user”
Has this feature been updated yet? .. I am really scratching my head because i can’t access my groups. I just installed the plugin and i created one additional group.
I was really expecting to see a link menu item called ‘Groups’ in the navigation bar on the live site, such as i have seen on another website.
I cannot see it even when i am logged in! Meaning i can’t access my own groups to start adding content.
And the available shortcodes can’t seem to realise this. I want the Groups menu item in the navigation bar to be visible also for regular non member/non registered visitors (but not the actual content, instead just a list of available groups on the site)
Please help me.
Thanks
Betty
Hi Betty, thanks for the suggestions. You are looking for two features then, list a user’s groups and list the site’s groups? But I assume you would also want to link these to content assigned to each group. You mention “I would like to group content for people to view but not limit access.” – wouldn’t categories work for you? In that case, you don’t really need the groups, just categorize your posts.
BTW the features list user’s groups and list site’s groups are now available through shortcodes in release 1.1.5
Hi, we use the groups plugin, and we were wondering if there was a way to make more capability show up on the menu at the top right when making a post or page, to only allow groups with that capibilty to get to that page, as we all ready use groups_read_post for moderators.
Any help would be appreciated.
Thanks for asking, it’s being worked on right now. There is a new release being prepared which will officially pull Groups out of beta, it’s not sure yet whether that is going to be available with the new release, if not, it won’t take long.
Hi
I have a strange issue, when using your plugin I got an issue in other plugin Mailpress. The issue is that content in mail created via Mailpress is not showing up at all. It works as normal if I deactive your plugin.
I have tested to add in all capabilities to a certain admin group and add in admin into this this group, dont work. I have tried the option to have administrator override marked, dont work.
Any idea what the problem can be and hor can I solve it?
Per
Thanks for the info, I will test it with Mailpress. What other plugins are activated on your site?
Hello,
In my wordpress general options there is a default user role set to new users. I was wondering if there was a way to set a custom user role to someone registering as an affiliate with affiliates pro?
Could I use this plugin to achieve this?
What I really wanna do is have all new affiliate sign up with a custom user role and not the default one set-up with wordpress.
That’s possible but you don’t need Groups to do that. You don’t need Affiliates Pro for that either. If you don’t mind posting this on the Affiliates plugin page, I should be able to show you how it can be done.
Hi,
Great Plugin. I’ll be getting the downloads version at Codecanyon.net
I’ll be bulk uploading tens of thousands of posts and users. I’ll need to bulk upload a post and Access restriction groups_read_post. Also, I’ll need to upload users wiht their groups_member group. (I’ll ftp images.) Everything will tie back to the post ID/slug. I’ll also tie in downloads.
What is the best method for uploading thousands of posts and users with the groups_read_post, and users with their groups_member group(s)?
BTW: I’ve been searching for a solution for 2 days. This is the best!!
Cheers,
Jack
Hi Jack,
There is this plugin https://github.com/joeyblake/WP-Bulk-Posts-Meta I haven’t used it myself, but it sounds like it might help you. If it works as I assume, it should let you assign groups_read_post to the posts’ meta. Note that as of version 1.2.0 you will have to assign meta_key = ‘groups-groups_read_post’ and meta_value = ‘groups_read_post’ or any other capability you want to use (this is new, before 1.2.0 you could only use groups_read_post to restrict access, now you can use any capability).
For the users, I would simply use the bulk assign feature available on the Users admin screen. Select all you want to assign to a group, select the group and click Add.
I hope that helps, let me know how it turns out.
Cheers
Hi,
I found groups_read_post under wp_groups_capability in the sqltable. So, it could be populated via csv direct into sql for bulk groups. I think. As to the user groups_member it would be best for the user to do it. But, how without making a mess with key entry errors. I think the author field for a post couuld be their group. An ajax summarizing all authors alphabetially in the profile page letting them select their author (group) could make an error free, simple group allocation that is moderation-free. I think.
I ain’t no programmer, so …..
Cheers,
J
Ok now you’ve lost me here
– what exactly do you want to achieve?
Hi,
Thank you.
I’ll have large numbers of posts, groups, and users. So, bulk upload is my only option.
A previous post mentioned the user should have an ability to pic their group and an admin approve. This would be great since users make mistakes and it would allow the admin to keep the group clean–not me.
I’ll likely use multisite to break up the large number of posts and assign it to one group per your suggestion above. So, that will help alot.
Regards,
V