A dyanmic block that outputs custom taxonomy of a custom post type.
REQUIRED LAZYBLOCK FIELDS:
font-size = NUMBER
font-color = COLOR PICKER
text-transform = SELECT/TEXT
letter-spacing = NUMBER
<?php
/**
* Template for Auction Type [Taxonomy]
*/
global $post;
$font_size = $attributes['font-size'];
$font_color = $attributes['font-color'];
$text_transform = $attributes['text-transform'];
$letter_spacing = $attributes['letter-spacing'];
$auction_type = get_object_term_cache( $post->ID, 'auction-types' );
?>
<style>
p.auction-type{
font-size: <?php echo $font_size; ?>px;
letter-spacing: <?php echo $letter_spacing; ?>px;
text-transform: <?php echo $text_transform; ?>;
color: <?php echo $font_color; ?>;
}
</style>
<div class="auction-type-container">
<?php foreach( $auction_type as $type ) : ?>
<p class="auction-type">
<?php echo $type->name; ?>
</p>
<?php endforeach; ?>
</div>