Theme Integration

How to display stamps and technical info in your theme.

Single Stamp Template Example

<?php
get_header();
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  <article <?php post_class(); ?>>
    <h1><?php the_title(); ?></h1>
    <?php if ( has_post_thumbnail() ) the_post_thumbnail( 'large' ); ?>
    <div class="stamp-meta-table">
      <?php the_content(); ?>
    </div>
  </article>
<?php endwhile; endif;
get_footer();

Manual Table Example

$fields = ['denomination','quantity','perforations','printer'];
echo '<table class="manual-stamp-info">';
foreach ( $fields as $key ) {
  $val = get_post_meta( get_the_ID(), $key, true );
  echo '<tr><th>'.esc_html( ucfirst(str_replace('_',' ', $key)) ).'</th><td>'.( $val !== '' ? esc_html($val) : '&mdash;' ).'</td></tr>';
}
echo '</table>';