Group posts by weekly or monthly

Sorry, but what’s the use scope of JSON API plugin here? The only thing you need is ad the week (or wahtever information you need) in the markup of the page. Assuming your loop is somethin like this: <ul id=”postlist”> <?php while( have_posts() ) : the_post(); ?> <li id=”post_<?php the_ID(); ?>” class=”post”> <h2><?php the_title(); ?></h2> … Read more

How to update scrollbar when using Jetpack’s Inifnite Scroller?

Ok, I found the solution at Jetpack’s website, http://jetpack.me/support/infinite-scroll/ I just needed to insert the custom scrollbar’s update function inside this function provided by jetpack’s infinite scroll. “JavaScript Events Inevitably, there are situations in a theme that require some JavaScript interaction after posts are added. One such example is in a theme that uses jQuery … Read more

JS script not being included [closed]

WordPress uses the noConflict version of jQuery which does not allow $. use jQuery. or simple replace jQuery( document ).ready(function() by jQuery( document ).ready(function( $ ) hope that helps.

$ not defined using jQuery in WordPress

You can wrap your javascript inside a self-invoking function, then pass jQuery as an argument to it, using $ as the local variable name. For example: (function($) { $(document).ready(function(){ $(“ul.vimeo_desc_feed li a”).click(function(){ alert($(this).attr(‘href’)); return false; }) }); }(jQuery)); should work as intended. If I remember correctly the WP-supplied version of jQuery (the one you get … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)