Exemplo n.º 1
0
function shot_link_custom_columns($column)
{
    global $post;
    $match = wpbo_match_data($post->ID);
    if (empty($match['server'])) {
        $match['server'] = 'Server information coming soon!';
    }
    switch ($column) {
        case 'type':
            echo $match['type_nice'];
            break;
        case 'players':
            echo $match['num_players'];
            break;
        case 'scheduled':
            echo $match['date_nice'];
            break;
    }
}
Exemplo n.º 2
0
Arquivo: loop.php Projeto: rmccue/wpbo
    ?>
</p>
			<?php 
    get_search_form();
    ?>
		</div><!-- .entry-content -->
	</div><!-- #post-0 -->
<?php 
}
?>

<?php 
/* Start the Loop  */
while (have_posts()) {
    the_post();
    $match = wpbo_match_data($post->ID);
    ?>

<?php 
    /* How to Display posts in the Gallery Category  */
    ?>
	<?php 
    if (is_post_type('match')) {
        ?>
		<div id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class();
        ?>
>