Show Category Description in List view
-
Hello,
The code provided in the support forums:
$event_cats = get_the_terms($post->ID, 'tribe_events_cat'); foreach ($event_cats as $category) { echo '<p>' . $category->name . '</p>'; echo '<p>' . $category->description . '</p>'; }
Is generating the following notices:
PHP Notice: Undefined variable: post in
PHP Notice: Trying to get property ‘ID’ of non-objectWould anyone know how to resolve this?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Show Category Description in List view’ is closed to new replies.