WordPress.org

Support

Support » Plugins and Hacks » WP Social SEO Booster - Knowledge Graph Social Signals SEO » [Resolved] What is the PHP Rating function code?

[Resolved] What is the PHP Rating function code?

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

    @dwaser71

    Hi,

    The php function used to display the star ratings is:

    wps_seo_booster_filter_content

    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”

    added
    <?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?

    Cheers!

    Plugin Author Daniel

    @dwaser71

    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

    @dwaser71

    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.

    perfect!

    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…

    Cheers!

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

    Plugin Author Daniel

    @dwaser71

    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 ‘[Resolved] What is the PHP Rating function code?’ is closed to new replies.
Skip to toolbar