Events in blog loop: How can fetch and display event categories?

Home Forums Welcome! Pre-Sales Questions Events in blog loop: How can fetch and display event categories?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #953977
    Mark Henson
    Guest

    A pre-sales question: I installed the free version of The Event Calendar and so far it seems to be perfect for my site. The few features I’m missing seem to be included in PRO.

    One thing I haven’t been able to get working yet:

    My site show previews of the six most recent blog posts on the front page. Included in theese previews are (1) title, (2) image, (3) date, (4) comment count, and lastly, (5) category. In the plugin settings of The Event Calendar, I activated the option to add events to the blog loop, so both regular blog posts and events are shown. However, the category (5) is not included when an event is displayed.

    My WordPress template fetches and displays blog post categ
    ories via the following three lines of code:

    <?php if (has_category()) : ?>
    <p class=”post-categories”><?php the_category(‘, ‘); ?></p>
    <?php endif; ?>

    How can I modify these three lines so event categories are displayed as well?

    Thanks in advance for your help! The Event Calendar is amazing so far.

    #954028
    Geoff
    Member

    Hey there, Mark! I’m stoked you’re looking to go PRO and that you’ve been loving the free version so far–thanks for the kind words. 🙂

    One of the benefits of PRO is the ability to post support questions. You do have to have a PRO account in order post technical questions like this one so unfortunately, I’m going to have to refer you to our WordPress.org support forum for the time being. If you have any pre-sales questions about PRO’s features, I’d be happy to those for you here!

    I will point out here that Event Categories are themselves a custom taxonomy specifically for events. If you want them to display, then you’ll need to call them in the blog loop, using a function like this.

    Cheers!
    Geoff

     

    #954270
    Mark Henson
    Guest

    Hi Geoff, thanks for your help! I’ll take a look at the page you linked me to. If I can’t figure it out, I’ll post in your WordPress.org support forum.

    #954294
    Geoff
    Member

    My pleasure and thanks again for reaching out! I hope you wind up going PRO and love the extra features is comes with. 🙂

    Cheers!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Events in blog loop: How can fetch and display event categories?’ is closed to new replies.