Viewing 5 replies - 1 through 5 (of 5 total)
  • Plus one for that!

    I tried YASR and had to delete it because there was no option to LIMIT the star rating display. KK have category to be removed but I also need it to be removed from specific pages/articles id. Can this be changed?

    Thank you!

    Plugin Contributor Kamal Khan

    (@bhittani)

    Use php to show the ratings and use custom logic to disable on some pages/articles.

    if(function_exists('kk_star_ratings'))
    {
        // e.g. do not display if id is 2, 145 or 999.
        // add the post ids where you dont want to show the ratings, in the array below
        if(!in_array(get_the_ID(), array(2,145,999))
        {
            echo kk_star_ratings();
        }
    }
    Thread Starter tobi1982

    (@tobi1982)

    Sorry I don’t understand this. Too complicated for me. Can’t you just add an additional field in the backend?

    You already have there “Exclude following category(s)”

    It would be great if there would been 2 more fields.

    1) Exclude following page(s)
    2) Exclude following post(s)

    ivaxtobac

    (@ivaxtobac)

    Is it possible to integrate it in options as categories field?
    Is it possible to create a shortcode to disable kk start when ever i want?

    Thanks

    • This reply was modified 8 years ago by ivaxtobac.

    +1 to this.

    I have star ratings showing up on pages where it makes absolutely no sense … and I dont understand how to do the ‘php edit’ work around you showed.

    Would love a more user-friendly-for-non-coders method

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Code to hide the stars on some pages’ is closed to new replies.