ljkeashly
Forum Replies Created
-
Hi,
Thank you for releasing the new version. This has fixed the errors on my sites.
Hi,
I have Xcloner 4.8.0 and Watchful 2.0.7.
Stop the WordPress automatic cron jobs and make an external cron job for WordPress. This is the external cron job code I am using:
cd /home/customer/www/xxx/public_html; wp cron event run –due-now
I run it twice a day.
Thank you
Hi,
Success the list is now showing the 4 users that it should.
Thank you so much for all your help!!!!!
Hi,
I found the setting, I wasn’t seeing it as I have the Privacy Tab disabled for users.
I don’t have any custom code for UM other than what you gave me. I do have 2 of your plugins installed:
- Ultimate Member – Additional Email Recipients – 2.3.0
- Ultimate Member – Admin Email Profile Update – 4.7.2
Thank you
- This reply was modified 11 months, 2 weeks ago by ljkeashly.
Hi,
I am using UM 2.10.3 and don’t have an “Allow users to hide their profiles from directory” under UM > Settings > General > Account.
Thank you.
Hi,
I commented out those lines in functions.php but still no users are showing up.
I don’t know where to look to answer your question: “How is the setting for these Users about “Hide in Directory”?” I don’t see a “Hide in Directory” setting in the Member Directory for Paper Mail List or anything like that in the User settings.
Thanks again for your help.
Not good as the UM directory listing is displaying no users instead of the 4 that is should be showing.
Hi,
SELECT*FROM
xx_usermetaWHEREmeta_keyLIKE‘%snail_mail%’ gives the results:snail_mail a:1:{i:0;s:3:”Yes”;}
SELECT*FROM
xx_um_metadataWHEREum_keyLIKE‘%snail_mail%’ gives the results:snail_mail a:1:{i:0;s:3:”Yes”;}
So, it looks like both tables give the same results.
SELECT*FROM
xx_um_metadataWHEREum_keyLIKE‘%snail_mail%’ANDum_valueLIKE‘%Yes%’shows 4 results
SELECT*FROM
xx_usermetaWHEREmeta_keyLIKE‘%snail_mail%’ANDmeta_valueLIKE‘%Yes%’also shows 4 results.
Hi,
Thank you so much for writing that function. Unfortunately it did not work. Now I don’t get any users showing on the list.
Hi,
The Admin filtering doesn’t let you specify a value for the field you choose. And since all users have the Paper Mail field they all show not just the ones with the field set to Yes.
Hi,
Yes, Enable custom table for usermeta is checked.
So, is there a way to do this with the custom usermeta table?
Thank you for your help,
I added it to my theme’s functions.php file.
Yes, the Directory ID is correct. This is the shortcode for it: [ultimatemember form_id=”765″]
Thank you for your suggestion. I made the change but nothing changed, still getting all members showing up.
I have triple checked and the meta key is snail_mail. There are only 4 members that have that field checked. The database shows:
snail_mail a:1:{i:0;s:3:"Yes";}for checked users and
snail_mail a:0:{}for unchecked users.
Should I maybe be using 1 as the value rather than Yes?
Thanks for your help, much appreciated.
Hi,
Thank you for your response. But this doesn’t seem to be limiting the users for me.
My meta key is snail_mail and has 1 Edit Choices of Yes.
So I changed your code to:
add_action(‘um_user_before_query’,’pp_show_snail_mail’, 10, 2);
function pp_show_snail_mail( $query_args, $obj ){$directory_id = $directory_data['form_id']; if( 765 !== $directory_id ) return $query_args; $query_args['meta_query'][ ] = array( 'key' => 'snail_mail', 'value' => 'Yes', 'compare' => 'RLIKE' ); $query_args['orderby'] = array( 'lot' => 'ASC', ); return $query_args;}
the new member directory I made for this is 765.
When I display this new member directory it is showing my all member and the ones that have snail mail enabled are showing Yes under the Display name in the tagline area.
Any ideas as to what is wrong with my function?
Thanks again for your help.