Viewing 1 replies (of 1 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    The image will not be shown if the review has not been assigned to a page.

    If you don;t want the images to show on the assigned page, you’d probably have to modify the code snippet to check for that. For example, something like this:

    
    $context['assigned_to_image'] = '';
    $postId = glsr_get($review->assigned_posts, 0);
    if (empty($postId) || $postId == get_the_ID()) {
        return $context;
    }
    $context['assigned_to_image'] = get_the_post_thumbnail($postId, 'thumbnail');
    return $context;
    
Viewing 1 replies (of 1 total)
  • The topic ‘Display Featured Image in Latest Reviews block’ is closed to new replies.