Changeset 10464
- Timestamp:
- 11/25/2020 04:53:14 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php
r10463 r10464 210 210 } 211 211 212 /* 212 213 foreach ( get_the_terms( $post, 'event' ) as $event ) { 213 214 $video_data['recordedAt'][] = [ 214 '@type' => 'Event', 215 'name' => $event->name, 216 'url' => get_term_link( $event ), 215 '@type' => 'Event', 216 'name' => $event->name, 217 'url' => get_term_link( $event ), 218 'location' => '', // City is stored in Categories. 219 'startDate' => '', // Year is stored in Categories, but not event date. 217 220 ]; 218 221 } 222 */ 219 223 220 224 $data[] = array_filter( $video_data, function( $item ) {
Note: See TracChangeset
for help on using the changeset viewer.