Taxonomy query
particle’tax_query’ => array( array( ’taxonomy’ => ‘people’, ‘field’ => ‘slug’, ’terms’ => ‘bob’, ), ),
’tax_query’ => array( array( ’taxonomy’ => ‘people’, ‘field’ => ‘slug’, ’terms’ => ‘bob’, ), ),
// opens the search input in the main menu. //—————————————- $(‘#header form.searchform .input-group button’).click(function() { var element = $(this); setTimeout(function(){ $(element).parent().parent().find(‘.input-group-field’).focus(); }, 1000); if(!$(this).parent().parent().parent().hasClass(‘open’) || $(this).parent().parent().find(‘input’).val()==””) { $(this).parent().parent().parent().toggleClass(‘open’); return false; } else { return true; } }); $(document).click(function(event) { // desktop if(!$(event.target).closest(‘.desktop__searchform form’).length) { if($(‘.desktop__searchform form’).hasClass(“open”) ) { $(‘.desktop__searchform form’).removeClass(‘open’); } } // mobile if […]
// Adds class for IE 10 //—————————————— var ie_version = getIEVersion(); var is_ie10 = ie_version.major == 10; if(is_ie10) { $(‘html’).addClass(‘is_ie10’); } function getIEVersion(){ var agent = navigator.userAgent; var reg = /MSIEs?(d+)(?:.(d+))?/i; var matches = agent.match(reg); if (matches != null) { return { major: matches[1], minor: matches[2] }; } return { major: “-1”, minor: “-1” }; […]
// Google Maps API key define (‘GOOGLE_MAPS_API_KEY’, ‘key’);
// Add “onfocus” To Gravityform form //—————————————————- add_filter( ‘gform_confirmation_anchor’, ‘__return_true’ );
‘–tables table_name er achter zetten