• Resolved vovakm

    (@vovakm)


    I saw there have already been several similar themes with the description of this problem, which occurred on moving to the version 3.x.
    Everything’s the same like in the other topics: no rating, no errors, any manipulation with the settings leads to nothing,

    Here’s what I’ve managed to find out.
    The issue is in using the filter the_content (gd-rating-system/addons/posts/load.php:80)
    add_filter('the_content', array($this, 'content_rating'), $this->_current_rating_priority);
    the plugin starts its work in the wrong time/place.

    How to reproduce.
    Use the function get_the_excerpt() (or any other, which is related to the filter the_content calling).
    In my case, to display meta description tag in head section I use the the excerpt field. In the case if excerpt is empty, WP will call the_content. On that moment, the rating will be displayed in the meta tag in the head section.
    <meta property="og:description" content="Rate this item:1.002.003.004.005.00Submit Rating No votes yet. Please wait… The following....." />

    The second variant – use the plugin, in which there’s a call apply_filters( 'the_content', $content );. In my case, that’s the plugin Yoast SEO.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The rating stars aren’t displayed in the post in the version 3.x.’ is closed to new replies.