Instantly share code, notes, and snippets.

Embed
What would you like to do?
<div>
<h5><?php echo get_the_title( $album ); ?></h5>
<?php if( true === (bool)$atts['display_details'] ) : ?>
<dl>
<dt>
Artiste
</dt>
<dd>
<?php echo esc_html( $album->arstist ); ?>
</dd>
<dt>
Année
</dt>
<dd>
<?php echo esc_html( $album->year ); ?>
</dd>
</dl>
<?php endif; ?>
<?php if( true === (bool)$atts['add_link'] ) : ?>
<a href="<?php echo get_permalink( $album ); ?>" >Aller sur la fiche de l'album</a>
<?php endif; ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment