Getting post meta in the flex slider

It’s a bit tricky to provide the solution that would work for you without full HTML. I’ve checked the linked page, but there’s no pagination there (I’ve searched for flex-control-nav that you mentioned and didn’t find it). So my solution comes from the code that you provided and from the HTML that I’ve seen on … Read more

Conditional Header in wordpress

It seems that you have forgotten to use <?php and ?> properly. Remember to open and close the php tag like the following: <?php if ( is_singular( array( ‘rivista’, ‘rivista-trimestrale’ ) ) ) {?> <script> jQuery(function($){ $(‘.parallax-window’).parallax({imageSrc: ‘<?php echo $ilgelo_options[‘ilgelo-parallax-image’][‘url’];?>’}); }); </script><?php } else { ?> <script> jQuery(function($){ $(‘.parallax-window’).parallax({imageSrc: ‘STYLESHEETPATH.”/img/header-rivista.jpg”‘}); }); </script><?php } ?>

Ajax not posting form data to query in PHP function

I have probably found the problem (after our little discussion). For me it looks like the $postcode isn’t send. Check the “Headers” tab from you screenshot – there would be info about the POST variables that were or weren’t sent. If the $postcode isn’t send, you get from the query probably the codes that are … Read more

jQuery not available to other scripts

You’ve got two copies of some inline script var $mcj = jQuery.noConflict(true); inside a commented section ‘mc_embed_signup’. The ‘true’ here is removeAll: removeAll Type: Boolean A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself). You should track down this script and try and understand what it’s trying to … Read more

Is it possible to hide media details sidebar when wp.media popup is being opened?

Ok, It’s been so long since I posted this question I totally forgot about it. I finally used popup.on( ‘open’, function() {…}); to remove left modal sidebar. Here we go: popup.on( ‘open’, function() { jQuery( ‘.media-frame-menu’ ).remove(); jQuery( ‘.media-frame-router, .media-frame-title, .media-frame-content, .media-frame-toolbar’ ).css({‘left’: 0}); }); That’s it 🙂 EDIT I managed to hide right hand … Read more

jQuery not defined

The dependencies argument of wp_enqueue_script() is case sensetive: wp_enqueue_script(‘customjs’, get_template_directory_uri() . ‘/js/paramo.js’, array(‘jQuery’), ‘1.0.0’, true); That array(‘jQuery’) needs to be array( ‘jquery’ ). You can see the handles for bundled scripts on the documentation page for wp_enqueue_script(): https://developer.wordpress.org/reference/functions/wp_enqueue_script/