Looping single post in a theme

Firstly, you don’t need to check with is_single() in single.php. WordPress will automatically recognize it for single post. Secondly, breakdown your template with in parts. Such as break your main loop code in content-single.php and call it in single.php with get_template_part(‘content’, ‘single’). So you single.php template will look like below- <?php while ( have_posts() ) … Read more

Breaking Categories Up into Individual Divs

You can customize the way wp_list_categories() render the categories by using a custom Walker and pass it as an argument of the function : $args = array( ‘show_option_none’ => __( ‘No treatment categories’ ), ‘taxonomy’ => ‘treatment-categories’, ‘title_li’ => __( ‘Treatment Categories’ ) ‘title_li’ => ”, ‘walker’ => new My_Walker_Category() ); if ( count( get_categories( … Read more

After WP 4.6.1 Update , Blog page started giving 500 error

There are many possibilities that causes this error. There might be your theme is not comaptible to wordpress 4.6.1 Please make on debug mode by writing change below lines in wp_config.php from define(‘WP_DEBUG’, false); to define(‘WP_DEBUG’, true); and add below line to make debug log on define(‘WP_DEBUG_LOG’, true); And then run your front end and … Read more

How to add thumbnails from recent posts to owl-carousel in wordpress automatically?

I can’t see your site. However, based on the code you added, you could try something like this: css: .owl-controls .owl-pagination .owl-page span{ height: 50px; width:50px; background-size: cover; background-position: center;} JS: $(‘.owl-controls .owl-pagination .owl-page’).each(function(index, value){ $(this).children(‘span’).css(‘background-image’, “url(‘”+$(‘.owl-carousel .owl-wrapper .item’).eq(index).find(‘img’).attr(‘src’)+”‘)”); }); Here is a working example: http://codepen.io/BertoMejia/pen/LRLRBg