<?php
// get the value of our custom field
$meta_value = get_post_meta($post->ID, 'ratings', true);
// if it's not empty and the_ratings function exists:
if( !empty($meta_value) && function_exists('the_ratings') ){
the_ratings();
}
<?php
// get the value of our custom field
$meta_value = get_post_meta($post->ID, 'ratings', true);
// if it's not empty and the_ratings function exists:
if( !empty($meta_value) && function_exists('the_ratings') ){
the_ratings();
}