• I am having the same issue several other commenters have had regarding adding the “additional info” to a single location page.

    I have added this code to the single-location-content.php file. Can you please tell me where I am going wrong?

    <?php if ($location_data['show_info'] && !empty($location_data['info_box'])): ?>
    <p class="info-wrapper"><strong>Location information:</strong> <span><?php echo htmlentities($location_data['info_box']); ?></span></p>
    <?php endif;?>
Viewing 1 replies (of 1 total)
  • Plugin Author richardgabriel

    (@richardgabriel)

    Hey @kuznacic!

    Have you tried a simpler test, such as just placing some hardcoded text in the file to see if that displays? If not, then you need to make sure you have the template named correctly and placed in the correct location. If you can get hardcoded text to display, then likely the issue is with the PHP (ie, the PHP is incorrect or, in the case of yours, perhaps the if statement isn’t passing ie there is no data.)

    Can you let me know if that helps?

    All the best,
    Richard

Viewing 1 replies (of 1 total)
  • The topic ‘Adding additional info to single location page’ is closed to new replies.