-
-
Save pmgllc/cfc68efe39f6fca8a48b to your computer and use it in GitHub Desktop.
failed code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('genesis_loop', 'custom_loop_3', 7); | |
function custom_loop_3() { | |
global $post; | |
echo '<strong>Career summary</strong>'; | |
echo '<div class="biobottom">'; | |
$items = get_post_meta( get_the_ID(), 'career_summary', true ); | |
if($items) | |
{ | |
$summary_year = esc_html( get_post_meta( get_the_ID(), 'year', true ) ); | |
$summary_position = esc_url( get_post_meta( get_the_ID(), 'position', true ) ); | |
$summary_description = (int) get_post_meta( get_the_ID(), 'description', true ); | |
echo $summary_year; | |
// foreach($items as $item) | |
// { | |
echo '<div class="biomid">'; | |
echo '<div class="one-third">'; | |
echo '<div><b>'.$item['year'].'</b></div>'; | |
echo '</div>'; | |
echo '<div class="one-third">'; | |
echo '<div>'.$item['position'].'</div>'; | |
echo '</div>'; | |
echo '<div class="one-third">'; | |
echo '<div>'.$item['description'].'</div>'; | |
echo '</div>'; | |
echo '<div class="clear"></div>'; | |
echo '</div>'; | |
// } | |
} | |
echo '</div>'; | |
echo '</div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment