<?php /** * @package WordPress * @subpackage Traveler * @since 1.0 * * Activity element nearby * * Created by ShineTheme * */ $activity = new STActivity(); $nearby_posts = $activity->get_near_by(get_the_ID()); $title_activity = st_get_language('activity_near'); if (!empty($nearby_posts)) { if (count($nearby_posts) > 1) { $title_activity = st_get_language('activities_near'); } } ?> <h4><?php echo esc_html($title_activity); ?> <span class="title_bol"><?php echo the_title(); ?> </span> </h4> <?php if ($nearby_posts and !empty($nearby_posts)) {