// Display Official Website URL if available. if (get_field(‘official_website_url’)) { echo ‘Official Website: ‘; the_field(‘visible_website_url’); echo ‘‘; } // Display TripAdvisor Reviews link if available. if (get_field(‘trip_advisor_url’)) { echo ‘Read TripAdvisor Reviews‘; } // Display Yelp Reviews link if available.…Continue reading
$posts = get_field(‘related_hotels’); if( $posts ): ?>Continue reading
$posts = get_field(‘TA_what_nearby’); if( $posts ): ?>Continue reading
if (get_field(‘size_of_park_in_acres’)) { the_field(‘size_of_park_in_acres’); echo ‘ Acres‘; } if (get_field(‘g_architect’)) { the_field(‘g_architect’); echo ‘‘; } if (get_field(‘short_name_for_buttons’)) { echo ‘ ‘; the_field(‘short_name_for_buttons’); echo ‘ Amenities ‘; } if (get_field(‘park_restrooms’)) { echo ‘Restrooms: Yes‘; } else { echo ‘Restrooms: No‘; }…Continue reading
if( get_field(‘short_name_for_buttons’) ): ?>Continue reading
/** * @link https://library.wpcode.com/snippet/j57gxn45/ */ add_action( ‘simpay_payment_receipt_viewed’, /** * Runs the first time the payment confirmation page is viewed. * * @param array $payment_confirmation_data */ function( $payment_confirmation_data ) { // Payment customer data (not used in this example). $customer =…Continue reading
add_action(‘pre_get_posts’, function($query) { if ($query->is_search() && !is_admin()) { $referer = wp_get_referer(); $site_url = get_site_url(); if (empty($referer) || strpos($referer, $site_url) !== 0) { // Block the request early to save CPU header(‘HTTP/1.1 403 Forbidden’); exit; } } });Continue reading