Support » Plugin: WP Social SEO Booster - Knowledge Graph Social Signals SEO » What is the PHP Rating function code?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Daniel



    The php function used to display the star ratings is:


    I hope this helps.

    unfortunately, it didnt help. in the admin settings i have to choose the placement. since i want to place it manually i deactivated “Enable Ratings on: Post” and put in your code. nothing shows up ;-(

    usually there is an option for placements like “manually” which activates the function to put in the code.

    is there another way of doing it?

    same here, I left “enable rating” checked.

    unchecked “on posts”

    <?php if(function_exists('wps_seo_booster_filter_content')) { wps_seo_booster_filter_content; } ?>

    -nothing shows up.

    Is tehre any argument to add? like “postID” or something?


    Plugin Author Daniel


    I’ll work on that later this week and will then provide a shortcode and custom hook options for that.

    are you sure that providing a shortcode will help to solve this? i mean, usually shortcode is placed within the pages/posts and not placed in the template files, isnt it? i got 300 posts by now, and the easiest way would be just to insert the function directly into the theme.

    you could still call the “do_shortcode” in the template…

    Plugin Author Daniel


    yes the shortcode will be the best way to go. As said by 3×7 you can call do_shortcode() within your template to display the rating stars.

    Within the code for the shortcode, there I won’t add any checks if the ratings have been enabled for that specific post and just display the ratings if the shortcode is used.

    These checks are the reason at the moment, why placing the function in to the template doesn’t work straight out of the box.


    Just a thought…. maybe you could implement “thumbs up” voting.. and combine it with stars…

    I know this haven’t been done before, but since google results only show stars you could do it like:
    1 thumb-up adds one all stars rating… 1 thumb-down adds 1 star rating, or removes one all stars rating from average rating…

    I just believe “thumbs up” is more welcome for voting…
    however it’s just an idea, which could be a winwin…


    hi, thanks for your shortcode idea. is there anything new about this or the release date?

    Plugin Author Daniel


    Right now I’m working on it and it will be released later this week.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘What is the PHP Rating function code?’ is closed to new replies.