Skip to content

Instantly share code, notes, and snippets.

@vimes1984
Last active July 18, 2016 20:58
Show Gist options
  • Save vimes1984/a9985b52daee4c014275a842e6bca64a to your computer and use it in GitHub Desktop.
Save vimes1984/a9985b52daee4c014275a842e6bca64a to your computer and use it in GitHub Desktop.
<?php
/**
* Ticket single page
*
*
**/
$postmeta = get_post_meta($post->ID);
get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="row">
<div class="large-12 columns">
<header>
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<article class="">
<?php the_content( 'Continue reading ' . get_the_title() ); ?>
</article>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="row">
<div class="large-12 columns">
<h1><?php _e('Ticket info', 'ticket_stuff'); ?> </h1>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<h3>
<?php _e('Ticket reporting username:', 'ticket_stuff'); ?>
<?php echo $postmeta["wpcf-minecraft-id-username"][0]; ?>
</h3>
<h3>
<?php _e('wpcf-ticket-status:', 'ticket_stuff'); ?>
<?php echo $postmeta["wpcf-minecraft-id-username"][0]; ?>
</h3>
<h3>
<?php _e('wpcf-assignee:', 'ticket_stuff'); ?>
<?php echo $postmeta["wpcf-minecraft-id-username"][0]; ?>
</h3>
<h3>
<?php _e('wpcf-ticket-creation-date:', 'ticket_stuff'); ?>
<?php echo $postmeta["wpcf-minecraft-id-username"][0]; ?>
</h3>
</div>
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<?php
echo "<pre>";
var_dump($postmeta);
echo "</pre>";
?>
</div>
</div>
<?php endwhile;?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment