Problem with jQuery in post body?

When you are using Google CDN hosted version of jQuery then you don’t need to use jQuery wrapper. It’s for jQuery packed with WordPress core because jQuery with WordPress runs in noConflict mode. So your jQuery code will be. <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js”></script> <script type=”text/javascript”> $(document).ready(function() { console.log(“Test”); $(“.myBox”).click(function(){ var myBoxOn = $(this).attr(“data-class”); $(“.myBoxContent”).hide(“slow”); $(“#” + myBoxOn).show(“slow”); … Read more

Some comment box wordpress in 1 post [closed]

Yes it is possible but not exactly trivial or well documented. The easiest option is to have different comment types (ie, have new ones in addition to the traditional comment, pingback and tracback). The biggest problem with this approach is that most of wordpress API and admin is not built to be flexible enough to … Read more

WP Query between posts custom fields [duplicate]

Problem solved, I’ve used this: $d=new WP_Query( array( ‘category__in’ => array(4), ‘post_type’ => ‘post’, ‘posts_per_page’ => ‘-1’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘ASC’, ‘meta_query’ => array( ‘relation’ => ‘AND’, array( ‘key’ => ‘data’, ‘value’ => $t, ‘compare’ => ‘<=’ ), array( ‘key’ => ‘data’, ‘value’ => $o, ‘compare’ => ‘>=’ ) ), ) ); Instead … Read more