Adding custom featured image

You are creating your own template page and you would want to display featured image, with custom size. Solution: if ( function_exists( ‘add_image_size’ ) ) { add_image_size( ‘slider’, 991, 328, true );} Add this code to your functions.php file And than go to your custom template page and add this code if (has_post_thumbnail()) { echo […]

Read more
wordpress the_content not working on page template

Many a times i have come across queries from developers or first time theme developers about not able to show the_content() on their custom template page. The issue is that the_content() function runs inside the WP loop so for example if (have_posts()) { while (have_posts()) { the_post(); the_content(); } } ?> This will work, but […]

Read more