• Resolved sgtan2264

    (@sgtan2264)


    hello hi!

    I was hoping if you could help me, I would like to limit the site review based on the url. I like to use it for the author page so people can review the author.

    right now, it is displaying all reviews for the entire site. cheers.

    • This topic was modified 2 years, 11 months ago by sgtan2264.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter sgtan2264

    (@sgtan2264)

    Because its a template page, hence I cant set a post id to it.

    Is it possible if we set the reviews unique based on its own url instead of assigning it to a post id?

    Plugin Author Gemini Labs

    (@geminilabs)

    Archive pages (i.e. blog page, tag pages, category pages, etc.) and author pages do not have a Post ID, so you cannot assign reviews to them using the assigned_posts option. Instead, you can create Site Reviews categories and assign to the categories using the assigned_terms option.

    You can also assign reviews to User IDs. If you can edit your template page, you could use the do_shortcode function like this:

    $userId = get_the_author_meta('ID');
    $shortcode = sprintf('[site_reviews assigned_users="%s"]', $userId);
    echo do_shortcode($shortcode);
    Thread Starter sgtan2264

    (@sgtan2264)

    hi, thanks so much for answering!

    hmm.. i cant assign user id as it is a template for all users.

    May I know how I can assign categories using the assigned_terms option?

    I cant find in the plugin page or help section.

    Thanks so much for helping.

    Plugin Author Gemini Labs

    (@geminilabs)

    Plugin Author Gemini Labs

    (@geminilabs)

    FYI: Then next update will allow you to use author_id as the value of the assigned_users shortcode option. This value will tell Site Reviews to use the get_the_author_meta function to try and get the user ID of the current page author.

    For example: [site_reviews_form assigned_users="author_id"]

    You will also be able to use the site-reviews/assigned_users/author_id filter hook which will be useful if you are using a plugin such as Ultimate Members which provides their own function for getting the author ID of a user profile.

    Thread Starter sgtan2264

    (@sgtan2264)

    Hi, thanks so much for the replying during the weekends.

    Im not using any membership plugin.

    However, even after creating a category, it doesnt display unique reviews for different authors.

    Perhaps, you might have mistaken what I meant.

    We created a design page template for all authors.

    When we insert [site_reviews_summary assigned_terms=”6″] as well as [site_reviews_summary assigned_terms=””], both doesnt display unique reviews for different authors.

    Do you mean we have to create a category for each author?

    How can we use one shortcode to display unique reviews for different authors for our page design template?

    Plugin Author Gemini Labs

    (@geminilabs)

    Try using assigned_users="author_id" in your shortcodes with Site Reviews v5.18.1.

    Thread Starter sgtan2264

    (@sgtan2264)

    Omg, thanks, you have been such a great help, it did work!

    Thanks so much for helping me!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How can we limit the site review based on a url?’ is closed to new replies.