how to load random related posts with specific custom fields?

I want to load 3 posts that have the same custom field value as the current post.
for example:
The current post has 3 custom fields:
color: black
background: red
lastname: doe
Now I want to load three posts with these custom fields:
first post: color:black
second post: background:red
third post: lastname:doe
these are my codes:

ACF put a comma after the last repeater field value

I’ve the following code <?php if(have_rows('ore')):?> <?php while( have_rows('ore')): the_row(); $start = get_sub_field('start'); $end = get_sub_field('end'); ?> <?php if( get_row_index() != 1 ){ echo '/'; }?> <?php echo $start;?> – <?php echo $end;?> <?php endwhile;?> <?php endif;?> Which outputs the two fields (“start” & “end”) in this form: 12.00 – 13.00. In case there are … Read more

Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)

I’m using Advanced Custom Fields and I’m trying to show a custom field below the single post. I managed to get the code to render below the post, but when I set the field movie_actors and save, the entire page goes blank after I refresh it, it doesn’t show any errors on the screen although I already have debug mode enabled.
My field is set as User Object inside ACF, and the field type is user.
What I’m trying to do is to show a link to the user profile in Ultimate Member. I also tried to show a link to the default wordpress user profile just in case, and it also gives me the same result.

Using a post-signup hook to get user details

Update: I got this working with a different hook user_register. It looks like wpmu_activate_user was never triggering. I would still like to have this happen after the user verifies and sets a password though. Can anyone help? Current Code: function xxx_whmcs_signup($user_id) { //Get User Fields $user_info2 = get_userdata($user_id); $id = $user_info2->ID; //Get Custom Fields $first_name … Read more