• Resolved pk-71

    (@pauljohnknight)


    Hi

    If i want to add the EDD category into some post meta, how would i go about about doing this?

    I have an archive page archive-download.php and within this I have a date being pulled in using the Advanced Custom Fields plugin.

    In the code I have below, I have the term bread making at the beginning of the paragraph tag, which is a category I have in EDD. I would like to pull it in from the category list. The site is for bakery courses and events and I’m using EDD so people can book a place on different courses, and then download their ticket. How would I replace the hard-coded termbread making for the actual category?

    Code:

    <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
        <div class="metabox">
    
            <p>Bread Making course taking place on <span class="event-date"><?php $eventDate = new DateTime(get_field('event_date'));
                echo $eventDate->format('dS M Y');?></span> in Borough Market</p>
    
        </div>

    Any help would be amazing.

    • This topic was modified 6 years, 7 months ago by pk-71.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Pull in EDD categories into a post / archive page’ is closed to new replies.