Custom fields output in entry meta for WordPress theme

  1. Use this code for your two custom fields - type and size:
<?php $get_size_from_post = get_post_meta( get_the_ID(), 'size', true );
	// check if the custom field has a value
	if( ! empty( $get_size_from_post  ) ) {
	  echo '<span class="size">';
	  echo $get_size_from_post ;
	  echo '</span>';
	}

$get_type_from_post = get_post_meta( get_the_ID(), 'type', true );
	// check if the custom field has a value
	if( ! empty( $get_type_from_post ) ) {
	  echo '<span class="type">';
	  echo $get_type_from_post;
	  echo '</span>';
	}
?>
  1. Sorry my bad about icons. Somehow didn’t see it yesterday. Sorry about that.

Let me know if there is anything else.

  1. Thank you very much! That worked flawlessly!
  2. No worries, happens to the best of us :wink:

There are other stuff I would wish to ask, but I think I’ll ask those in a discrete thread. Once again thanks for all your support and for the themes you (I assume you’re the author) made!