I am creating a small blog about my trekking and camping experience. Since different experiences - like campsites, treks and tour operators - have different metadata, I have created a custom post types (e.g. campsite
), associated with custom field types (e.g. price
, water_supply
).
Now I'm trying to use these fields in my child theme. I've copied twenty-twelve - the parent - single.php
to single-campsite.php
, and started digging in.
The problem is that the entire post content - title, content, and date - is created from this single line:
<?php get_template_part( 'content', get_post_format() ); ?>
How do I edit the post internals, e.g. insert custom fields between the title and the contents, or remove the date below?