Skip to content

Instantly share code, notes, and snippets.

@pmgllc
Created October 10, 2014 22:02
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 pmgllc/cfc68efe39f6fca8a48b to your computer and use it in GitHub Desktop.
Save pmgllc/cfc68efe39f6fca8a48b to your computer and use it in GitHub Desktop.
failed code
<?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