Sorry, just trying to make sense of how custom fields work…thanks for the help.
The page I’m working on is here: https://wdm.org.uk/localgroups/events/
What I’d like to do is create an events listing page which shows post title and custom field date.
Putting <?php the_meta(); ?> between the <h4> tags below outputs the custom field but as an unordered list. Putting <?php get_post_custom($post_id); ?> between the <h4> tags outputs nothing, ie just <h4> </h4>.
?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="inner">
<h2 class="eventtitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2><br />
<h4><?php the_meta(); ?></h4>
</div>