Viewing 4 replies - 31 through 34 (of 34 total)
  • Thread Starter gunbunnysoulja

    (@gunbunnysoulja)

    I just spoke to another developer, and he claims that if the above returns blank, then that means that taxonomy is not being associated with that specific post. I explained I can pull all categories in using the previous code. Any thoughts?

    If this is a lost cause I’ll abandon it, as getting 3 external developers is making me run in circles. ??

    Figured you guys would know best…

    Thread Starter gunbunnysoulja

    (@gunbunnysoulja)

    Resolved:

    <?php $terms = get_the_terms( $EM_Event->post_id, 'event-categories');
    foreach( $terms as $term ){ echo $term->name; }?>

    Thread Starter gunbunnysoulja

    (@gunbunnysoulja)

    Well.. the above works for events.php, but apparently not for group-events.php… No idea why. Someone hates me. ??

    Thread Starter gunbunnysoulja

    (@gunbunnysoulja)

    For whatever reason, on group-events.php, it needs to use:

    <?php $terms = get_the_terms( $event->post_id, 'event-categories');
    foreach( $terms as $term )
    { echo $term->name; }?>
Viewing 4 replies - 31 through 34 (of 34 total)
  • The topic ‘Edit Events Page show Category’ is closed to new replies.