• Resolved klewis

    (@blackawxs)


    The following get_posts() process allows me to fetch all event based information through the plugin…

    `php
    $args_cal_events = array(
    ‘offset’ => 0,
    ‘posts_per_page’ => -1,
    ‘post_type’ => ‘ai1ec_event’
    );
    $mdata_array_cal_events = get_posts($args_cal_events);
    `

    ..But how do we also access the category information for this plugin?

    This is what shows up for me when i access ai1ec_event post type data for my event…

    `php
    ‘ID’ => 149,
    ‘post_author’ => ‘1’,
    ‘post_date’ => ‘2018-04-27 13:05:53’,
    ‘post_date_gmt’ => ‘2018-04-27 17:05:53’,
    ‘post_content’ => ”,
    ‘post_title’ => ‘My specific calendar topic’,
    ‘post_excerpt’ => ”,
    ‘post_status’ => ‘publish’,
    ‘comment_status’ => ‘closed’,
    ‘ping_status’ => ‘closed’,
    ‘post_password’ => ”,
    ‘post_name’ => ‘peoplesoft-integration-sprint-1’,
    ‘to_ping’ => ”,
    ‘pinged’ => ”,
    ‘post_modified’ => ‘2018-04-27 13:42:59’,
    ‘post_modified_gmt’ => ‘2018-04-27 17:42:59’,
    ‘post_content_filtered’ => ”,
    ‘post_parent’ => 0,
    ‘guid’ => ‘//localhost:3000/wordpress/starterthemes/us08201B/?post_type=ai1ec_event&p=149’,
    ‘menu_order’ => 0,
    ‘post_type’ => ‘ai1ec_event’,
    ‘post_mime_type’ => ”,
    ‘comment_count’ => ‘0’,
    ‘filter’ => ‘raw’,
    `

    …but its not telling me what taxonomy (category) this event is tied to. Is there something I am missing?

    • This topic was modified 7 years, 11 months ago by klewis.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to get category content through loop’ is closed to new replies.