Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code fragment for ribbon include example
<?php if (get_post_meta(get_the_ID(), 'Ribbon', true) != '') { ?>
<div class="ribbon ribbon-top-right">
<span><?php echo (get_post_meta(get_the_ID(), 'Ribbon', true)); ?></span>
</div>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment