Exemplo n.º 1
0
function add_manage_shows_columns($name)
{
    global $post;
    switch ($name) {
        case 'dj_name':
            $output = get_post_meta($post->ID, 'dj_name', true);
            echo $output;
            break;
        case 'timeslot':
            echo get_timeslot($post->ID);
            break;
    }
}
Exemplo n.º 2
0
}
?>
	</header><!-- .entry-header -->

	<div class="entry-content">
	  <?php 
$id = get_the_ID();
$custom_fields = get_post_custom();
?>
	  <h2 class="dj-name"><?php 
echo $custom_fields['dj_name'][0];
?>
</h2>
	  
	  <h3 class="timeslot"><?php 
echo get_timeslot($id, true);
?>
</h3>
	  
		<?php 
the_content();
?>
		<?php 
wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'graphy'), 'after' => '</div>'));
?>
	</div><!-- .entry-content -->
	<?php 
graphy_footer_meta();
?>
</article><!-- #post-## -->