Check if a post is in specific category to show an icon

Add post_class() to the post container div: <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>> <!– post markup here –> </div> …which will give you, among other classes: .category-{ID} .category-{slug} You can then target those classes via CSS to add category-specific icons.

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.

How to fix pagination for custom loops?

The Problem By default, in any given context, WordPress uses the main query to determine pagination. The main query object is stored in the $wp_query global, which is also used to output the main query loop: if ( have_posts() ) : while ( have_posts() ) : the_post(); When you use a custom query, you create … Read more