• Resolved Hari

    (@haribonda)


    I’ve imported reviews and noticed that a few of them are missing titles. Instead of displaying “No Title” in the reviews section, I would like to not display anything when there is no title. If a title is present, I want it to be shown. How can we implement this? plz

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

    (@geminilabs)

    Thread Starter Hari

    (@haribonda)

    First code is working thanks ?

    Thanks for the reply, i forgot to mention i am new to wp and i am using code snippets plugin. where do i need to add this code please?

    add_filter(‘site-reviews/review/wrap/title’, function ($value, $rawValue, $tag) {
    if (empty($tag->review->title)) {
    return;
    }
    return $value;
    }, 10, 3);

    // OR THIS (i should use either one of them right?)

    add_filter(‘site-reviews/review/value/title’, function ($value) {
    if ($value === __(‘No Title’, ‘site-reviews’)) {
    $value = ”;
    }
    return $value;
    });

    • This reply was modified 3 weeks, 6 days ago by Hari.
    Plugin Author Gemini Labs

    (@geminilabs)

    Create a new code snippet and paste in one of the two provided code examples.

    Thread Starter Hari

    (@haribonda)

    When i hit load more button it is not working, in page nations its not working, i request you add this in the plugin as an option to the reviews summery block. ??

    https://i.imgur.com/KAspPre.png

    Plugin Author Gemini Labs

    (@geminilabs)

    Use the code snippet as provided above. If you are using a caching plugin, make sure to flush your cache.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.