Slide Description / Caption conditional
-
Hi,
I am displaying a description on some slides only.
The description is styled with background and border.
How do I NOT display the styling for slides withoutt a description?IF DESCRIPTION EXIST:
<?php // Get the featured image's description $ms_thumb_id = get_post_thumbnail_id($id); $ms_description = esc_attr( get_post_field( 'post_content', $ms_thumb_id ) ); echo '<span class="meteor-description">' . $ms_description . '</span>';?>
Thank you,
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Slide Description / Caption conditional’ is closed to new replies.