Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregoirenoyelle/6560402 to your computer and use it in GitHub Desktop.
Save gregoirenoyelle/6560402 to your computer and use it in GitHub Desktop.
Genesis Template
<?php
if ( get_field('gn_publier_bio') ) :
echo '<h3 class="bio-wordcampeur">Bio</h3>';
if ( in_array('biofr', get_field('gn_publier_bio') ) ) :
echo '<section class="bio-french">';
the_field('gn_bio');
endif;
echo '</section>';
if ( in_array('bioeng', get_field('gn_publier_bio') ) ) :
echo '<section class="bio-english">';
the_field('gn_bio_eng');
echo '</section>';
endif;
endif;
?>
<?php
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
add_action('genesis_entry_content', 'gn_content_wordcampeur_base', 50);
function gn_content_wordcampeur_base() {
gn_meta_wordcampeur_image('wordcampeur', 250);
gn_meta_wordcampeur_texte();
} // gn_content_wordcampeur
add_action('genesis_entry_content', 'gn_content_wordcampeur_sup', 60);
function gn_content_wordcampeur_sup() {
global $post;
echo '<p class="entry-taxo">';
echo get_the_term_list($post->ID, 'gntx_pays', 'Pays&nbsp;: ', ', ', '<br />' );
echo get_the_term_list($post->ID, 'gntx_evenement', 'Événement&nbsp;: ', ', ', '<br />' );
echo get_the_term_list($post->ID, 'gntx_spectateur', 'Événement&nbsp;: ', ', ', '' );
echo '</p>';
echo '<h3>Bio</h3>';
echo '<section class="bio-french">';
the_field('gn_bio');
echo '</section>';
if ( get_field('gn_bio_eng') ) :
echo '<section class="bio-english">';
the_field('gn_bio_eng');
echo '</section>';
endif;
} // gn_content_wordcampeur
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment