I am sure this is really simple but I just cant work it out so if someone can help me would be amazingly grateful! Pretty new to this. Thanks.
I have created a post type called 'comedy' which has taxonomies of 'comedian', 'venue' and 'price' using the custom post type UI plugin. I have then created a single post template for this called single-comedy.php to display the comedy custom posts. To test that the comedy post type was diverting to the single-comedy.php template I put this in there: <p>This is the template single-comedy.php</p>. You can see this here so it is definitely using that template http://gugo.co.uk/comedy/comedy-custom-post-test/.
What I am trying to do is display the 'comedian', 'venue' and 'price' meta info in the post. I have included <?php the_meta(); ?> in the single-comedy.php template directly below
<?php get_template_part( 'content', 'single' ); ?>template
but it is not displaying the custom meta.
I tested on a normal post putting in the standard custom fields section on a post and it shows correctly. I edited single.php and entered <?php the_meta(); ?> and it shows the custom meta info on the post. You can see this here http://gugo.co.uk/27/09/2011/normal-post-test/
So what I need to know is am I going about this the right way by creating a new post template called single-comedy.php and if so what code do i need to enter to display the custom fields that are generated by the custom post type UI plugin.
Thank you in advance for any help..