Note: I copied your original code, so the
class="featured-ribbon-red"
should be
class="sold-ribbon-red"
Note: I copied your original code, so the
class="featured-ribbon-red"
should be
class="sold-ribbon-red"
Use this instead in functions.php, it'll work:
//Add sold ribbon to listings
function sold_ribbon() {
global $post;
if (get_post_meta($post->ID, 'cp_ad_sold', true) == 'yes') echo '<span...