Post order by selected tags

You can count the number of tags when a post is saved and store it as a meta key for the post. Now you can just add a sort by the value of the meta key to the tag page query.

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

how to show posts on different pages if number of post per page is one

First of all, never use query_posts(), use WP_Query() instead. (Learn More) With your WP_Query() use paged parameter in the argument array, like: <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( ‘posts_per_page’ => 1, ‘paged’ => $paged ); $cat_query = new WP_Query( $args ); ?> And for the pagination link, go with: <?php … Read more