Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter samngel

    (@samngel)

    Thank you for the update! I’m glad to hear that an integration with Ultimate Member will be added in the next version of Site Reviews. This will certainly help with the current issue I’m facing. I’ll keep an eye out for the release and test it as soon as it’s available.

    Thanks again for your support!

    Thread Starter samngel

    (@samngel)

    Thank you for the explanation! It makes sense now that the issue is due to Ultimate Member using Ajax to load the user list instead of The Loop. I appreciate you looking into adding an integration for this, and I look forward to seeing this feature in the settings.

    Thread Starter samngel

    (@samngel)

    I have integrated the [site_reviews_summary] shortcode in two ways:

    1. By modifying the Ultimate Member profile cards template directly.
    2. Using the Code Snippets plugin to add the shortcode dynamically to the profile cards.

    Despite these attempts, the reviews are not displaying correctly. I’m not sure if it’s related to the interaction between Site Reviews and the um_get_requested_user() function or something else.

    Thread Starter samngel

    (@samngel)

    I have displayed the member directory in two different ways:

    1. Using the block added by the Kadence theme.
    2. Using the Ultimate Member directory shortcode.

    The link to the page is: https://biharmonie.com/membres/

    The form for leaving reviews on a profile uses this shortcode:

    [site_reviews_form assigned_users="profile_id" hide="content,email,images,name,terms,title"]

    And the average reviews are displayed on profiles with this shortcode:

    [site_reviews_summary assigned_users="profile_id" hide="bars,summary,text,count"]

    Thread Starter samngel

    (@samngel)

    Hello,

    I tried using the code you suggested to display the user ID with um_get_requested_user(), but it’s still not showing anything in my profile cards. Here’s what I tried:

    echo sprintf('User ID: %s', um_get_requested_user());

    However, the user ID does not display. I also tried another hook to retrieve the user ID from the profile cards, but with no success. The reviews are correctly assigned to the users in Site Reviews, but I still can’t get the average reviews to display properly for each user on their Ultimate Member profile cards.

    Do you have any other ideas on how to proceed or any suggestions to fix this?

    Thanks in advance for your help!

    Thread Starter samngel

    (@samngel)

    Hello,

    Thank you for your previous suggestion regarding the hook filter site-reviews/assigned_users/profile_id. I implemented the code you shared, but unfortunately, the correct user-specific reviews are still not showing on the Ultimate Member profile cards. The reviews displayed appear to be the same across all users, rather than being tied to the individual profile.

    Here’s the code I used:

    add_filter('site-reviews/assigned_users/profile_id', function ($profileId) {
    return um_get_requested_user();
    });


    I also added the function to display the reviews using this shortcode:

    echo do_shortcode('[site_reviews_summary assigned_users="' . $user_id . '" hide="bars,summary"]');

    Even with this setup, the reviews don’t seem to be dynamically fetching the correct user-specific data. It always displays the same review summary regardless of the profile.

    Is there something I might be missing in terms of correctly linking the profile ID to the reviews on each individual card? Could you advise on a more detailed way to ensure that the reviews are correctly tied to each user’s profile?

    Thank you for your help.

    Thread Starter samngel

    (@samngel)

    Thank you for the suggestion to use profile_id.

    I tried using profile_id in the shortcode like this:

    [site_reviews_summary assigned_users="profile_id" hide="bars,summary,text,count"]

    However, the issue persists: all users in the Ultimate Member profile directory still show the same average rating. It seems that profile_id is not correctly retrieving the individual user’s reviews for each profile card, and instead, the same rating is applied to all users.

    Is there something specific I should check in how Ultimate Member passes the profile_id for each card in the members’ directory? Or could there be another approach to dynamically display the correct average rating for each user?

    Thanks again for your help! Any further guidance would be appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)