The Events Calendar Meta data hidden as though blank, but showing above table
-
The Events Calendar version 2.0.10
url: https://wemn.backenweb.com/events/upcoming/I updated from an older version to the newest The events calendar. I spent some time working out the kinks in the big update. Couple of things I’m not sure how to fix:
in list view, it is showing the phone and the cost ABOVE the table for the event meta data. (Please see url above)
The code in the list dot php document looks like this:<?php $phone = the_event_phone(); if ( !empty( $phone ) ) : ?> <tr> <td class="tec-event-meta-desc"><?php _e('Phone:', $spEvents->pluginDomain) ?></td> <td class="tec-event-meta-value"><?php echo $phone; ?></td> </tr> <?php endif; ?>
The venue was doing the same thing, until I took out the php above and below the table row, and changed the $phone to the_event_phone. Of course I’d prefer to be able to have those items hidden if they are empty. Any idea what the problem is?
Oh, and one more problem, I’ve checked to have a link of google map, but the link is not appearing on the list page under the Address label even though it looks alright. At least, I can’t spot any reason.
<?php if (tec_address_exists( $post->ID ) ) : ?> <tr> <td class="tec-event-meta-desc"><?php _e('Address:', $spEvents->pluginDomain); ?><br /> <?php if( get_post_meta( $post->ID, '_EventShowMapLink', true ) == 'true' ) : ?> <?php $mapArgs = array("f"=>"q","source"=>"s_q","geocode"=>""); ?> <a class="gmap" href="<?php event_google_map_link( null, $mapArgs ); ?>" title="Click to view a Google Map" target="_blank"><?php _e('Google Map', $spEvents->pluginDomain ); ?></a> <?php endif; ?></td> <td class="tec-event-meta-value"><?php tec_event_address( $post->ID ); ?></td> </tr> <?php endif; ?>
Thanks in advance!
https://www.ads-software.com/extend/plugins/the-events-calendar/
- The topic ‘The Events Calendar Meta data hidden as though blank, but showing above table’ is closed to new replies.