<?php if( ! in_array( get_the_ID(), array( 1, 2, 3 ) ) ): ?>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
<?php endif; ?>
Where 1, 2, 3 are your post IDs.
To put this in functions.php or in other parts?
Place it where you want the ratings to appear in your theme. If you are not sure which part of your theme, contact your theme author.
Sorry. This code is useless , it can not hide the buttons and Vote Up Vote Down by some posts .
That code above will hide the ratings post for Post ID 1, 2 and 3.
If that is not what you want, than I am sorry, I can’t help you.
Thanks. The code works just like you said. Sorry this is probably beginner WordPress coding, but how can I change Post ID to a Post Category?
<?php if( ! in_category( 'blog' ) ): ?>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
<?php endif; ?>
You can read in_category docs here https://codex.wordpress.org/Function_Reference/in_category