This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="format-detection" content="telephone=no"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Post Type | |
<?php $the_query = new WP_Query( array( 'post_type' => 'contacts', 'order' => 'ASC', ) ); | |
if ( $the_query->have_posts() ) : ?> | |
<ul class="footer-contacts"> | |
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> | |
<?php if( have_rows('contact_types') ): ?> | |
<?php while( have_rows('contact_types') ): the_row(); ?> | |
<li> | |
<?php if (get_sub_field('contact_type')): ?> | |
<span class="contact-title"><?php the_sub_field('contact_type'); ?></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php the_post_thumbnail( 'large', ['alt' => get_the_title()] ); ; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Show post type Singular Label on singular post page: | |
$post = get_queried_object(); | |
$postType = get_post_type_object(get_post_type($post)); | |
if ($postType) { | |
echo esc_html($postType->labels->singular_name); | |
} | |
// Show post type Singular Label in the loop: | |
$postType = get_post_type_object(get_post_type()); | |
if ($postType) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// functions.php | |
function filter_plugin_updates( $value ) { | |
if( isset( $value->response['woocommerce/woocommerce.php'] ) ){ | |
unset( $value->response['woocommerce/woocommerce.php'] ); | |
} | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// prevent to scroll dovh on reCAPTCHA click on iOS devices | |
window.scrollCaptcha = false; | |
var cat_id = document.querySelector('.ginput_recaptcha').id; | |
document.getElementById(cat_id).setAttribute('data-callback','scrollFixCaptcha'); | |
function scrollFixCaptcha(a) { if(window.scrollCaptcha) { jQuery("html, body").scrollTop(window.scrollCaptcha); } } | |
document.addEventListener("scroll", function() { | |
var el = document.getElementById(cat_id); | |
var theTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php comments_number( __('No Comments', 'textdomain'), __('One Comment', 'textdomain'), __('(%) Comments', 'textdomain') ); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $field_name = ( get_field('field_name', 'category_'. $cat) ) ? get_field('field_name', 'category_'. $cat) : false ; ?> |