Example #1
0
function semwp_print_linked_items($item_ids, $relationship, $item_type)
{
    foreach ($item_ids as $item_id) {
        echo '<span property="' . esc_attr($relationship) . '" typeof="' . esc_attr($item_type) . '">';
        semwp_print_alink($item_id);
        echo '</span>';
    }
}
Example #2
0
function semwp_print_book_illustrator()
{
    if (implode('', rwmb_meta('semwp_book_illustrator'))) {
        echo '<p>Illustrated by: ';
        $illustrators = rwmb_meta('semwp_book_illustrator', 'type = post');
        foreach ($illustrators as $illustrator) {
            echo '<span property="illustrator" typeof="Person">';
            semwp_print_alink($illustrator);
            echo '</span>';
        }
        echo '</p>';
    }
}