Jon
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Display their Jobs in their profile pageHey @niko87 I ended up creating a function, that adds a new “Our Campaigns” tab (since, for this specific site, we called “Jobs” as “Campaigns” instead).
Then I also created a function, that makes a shortcode that can be used to generate a list of “job_listing” posts, based on the User ID passed in the shortcode.
Within the custom UM tab function, I have it checking to see who the UM user is (for the profile being viewed). Then, I have it so it adds that user’s ID to the shortcode. Therefore, it outputs any posts (custom post type of job_listing) that were authored by the User ID of the profile person. So essentially, it’s a loop of the author’s “jobs” posts. Then I did some CSS to style the list that shows up in the profile tab content area.
If no job is found for that user profile, it adds a “not found” message.
Note that I also have the loop pulling in some of the job fields.
One more note. This PHP is also adding a second tab for “Applications”, based on certain roles.
https://gist.github.com/Garconis/c29c91d06df9b3367685ffae20c43fd5
@schulz, their support here is pretty lacking. So, it shouldn’t be me that is telling you this, but they have released a UM 2.0 version. But it’s still in “beta”, I think… and somewhat buggy if you ask me: https://docs.ultimatemember.com/article/262-manually-updating-to-2-0
I guess not…
Forum: Plugins
In reply to: [User Role Editor] User Capability changes not savingHello? Any help here?
Forum: Plugins
In reply to: [Custom Post Type UI] Hide Meta Box when editing postsExcellent. Thanks!
Any updates here?
Excellent. That seems to have worked well.
Forum: Plugins
In reply to: [User Role Editor] Assign role on registration?Any additional assistance you could provide, to always check if a user has a specific role (e.g., Subscriber) and if they don’t have that role for their user … automatically add it as an additional role (while maintaining any other existing roles they have).
- This reply was modified 6 years, 11 months ago by Jon.
Perfect. Thanks!
Forum: Plugins
In reply to: [WP Job Manager] Company Logo image thumbnail dimensionsInstead of overriding those template files, I just bumped the thumbnail image dimensions for my Media settings, to 250 x 250… instead of the 150 x 150. That works for now, I suppose.
I’d rather not override too many template files, for such a minor change, in case of a future update.
Thanks for the help though!
Forum: Plugins
In reply to: [WP Job Manager] Company Logo image thumbnail dimensionsSo is there a way in my functions.php to override this:
function the_company_logo( $size = 'thumbnail', $default = null, $post = null ) {...
To be a custom size other than thumbnail?
Forum: Plugins
In reply to: [User Role Editor] Assign role on registration?Unfortunately that did not seem to work. I realize it was just an example, but I’m not sure how to get that to actually work as intended.
Is there any way to run a check to automatically assign a secondary role to all users, if it doesn’t exist? Maybe on login, or on an hourly basis?
Just trying to figure out the best way to ensure all users ALWAYS have at least the role of Subscriber. Eeven if they have already have another role, they should still have Subscriber role.
Forum: Plugins
In reply to: [User Role Editor] Assign role on registration?Or is there maybe a PHP function that I can set up on a 2 minute Cron, that will automatically check all users… to ensure they have a secondary role of Subscriber? Without overriding any previous role they may already have?
Unfortunately User Tags is not nearly the same. I don’t see that offering a way to control users based on their tag.
The benefit to multiple roles is being able to set WP Capabilities to a role. And also to be able to change that role via WooCommerce purchasing, as well as based on what Form they register with … all while maintaining a secondary role that ALL members have.
What is the “Group” extension that’s being worked on? Is there an ETA on that?
The current issue I’ve found, is even if I have a user that ALREADY exists with multiple roles (using the User Role Editor plugin)… if they purchase a product that “changes” their role… it will remove ALL of the previous roles from that user… and replace it with the one that was set on the WooCommerce item.
I really need a way to ADD a role based on a WooCommerce purchase…so it doesn’t remove existing roles. In addition, I need new users to get a default/base role upon registration AND the one that I tell the UM form to assign.
All users should have a Subscriber role AND the role that I tell it within UM 2.0 settings (form or Woo product).
- This reply was modified 6 years, 11 months ago by Jon.
Really needs an option to work with 2 roles though. ??