Why does this loop only work on the homepage?

If you look at that code carefully, the only thing it ever prints are sticky posts: if(is_sticky()) : ?> <div class=”slide”><a rel=”bookmark” href=”https://wordpress.stackexchange.com/questions/92193/<?php the_permalink() ?>”><?php echo the_post_thumbnail(‘full’); ?><h2><?php the_title(); ?></h2></a></div> <?php endif; You stand a better chance of having sticky posts on page 1 of the index than on any page thereafter. 404 pages don’t … Read more

wp_head() not inserting the default stylesheet style.css

Actually you shouldn’t add JS and CSS files to your header.php, but make use of the functions wp_enqueue_script() and wp_enqueue_style() to add them there. Example taken from the codex page: /** * Proper way to enqueue scripts and styles */ function theme_name_scripts() { wp_enqueue_style( ‘style-name’, get_stylesheet_uri() ); wp_enqueue_script( ‘script-name’, get_template_directory_uri() . ‘/js/example.js’, array(), ‘1.0.0’, true … Read more