How can I change the campaign trail widget to display Venue Name instead of Location?

Please follow these instructions:

1. open campaign.php
2. find this line:

<a href="<?php echo get_permalink($eID); ?>"><?php echo $postMeta['_location'][0]; ?></a>

and change it to read:

<a href="<?php echo get_permalink($eID); ?>"><?php echo $postMeta['_venue'][0]; ?></a>

If you want to show both location and venue (let’s say: Washington DC, White House), please follow these instructions:

1. open campaign.php
2. find this line:

<a href="<?php echo get_permalink($eID); ?>"><?php echo $postMeta['_location'][0]; ?></a>

and change it to read:

<a href="<?php echo get_permalink($eID); ?>"><?php echo $postMeta['_location'][0]; ?>, <?php echo $postMeta['_venue'][0]; ?></a>

 

0