WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Post type metadata fields to use in WP_Query (2 posts)

  1. jpvanmuijen
    Member
    Posted 1 year ago #

    Hi,

    I'm using a WP_Query loop to get events from the events post type, which show up in the sidebar of my template.

    Like so;

    'post_type' => 'event',
    'tax_query' => array(
    'taxonomy' => 'event-categories',
    'field' => 'slug',
    'terms' => $page_title

    And so on.
    So basically I'm using metadata to show events from the category matching the page title, which works pretty well.

    Next, I would like to echo the start date of the event as well, but I can't seem to find what meta-field or taxonomy I should target to get it. This is the one I'm after; http://i.imgur.com/jEkR5tJ.jpg

    Hope this makes sense.

    I tried EM_Events::output, but I can't get it work properly, and prefer to just get the raw values of the metadata fields anyway.

    Any help would be appreciated.

    http://wordpress.org/extend/plugins/events-manager/

  2. jpvanmuijen
    Member
    Posted 1 year ago #

    Got it!
    I used the query post plugin/widget :) which shows all the taxonomy available; http://i.imgur.com/mpzbJ5P.jpg

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic