I am making a basic wordpress theme for the first time and I've finally gotten everything to mostly play nicely. The header displays perfectly fine on every page except the archive page (where blog posts are to go). I've attached the code below, does anybody see a reason why it might be messing up?
It's mainly the header image simply not appearing; navigation is fine, everything works as it should. There just is no image for some reason. It also doesn't show up on the test posts themselves.
<div class="container"> <h1><?php single_cat_title();?></h1> <?php if (have_posts()) : while(have_posts()) : the_post();?> <div class="card mb-4"> <div class="card-body"> <?php if (has_post_thumbnail()):?> <img src="<?php the_post_thumbnail_url('smallest');?>" class="img-fluid"> <?php endif;?> <h3><?php the_title();?></h3> <?php the_excerpt();?> <a href="<?php the_permalink();?>" class="btn btn-success">Read more</a> </div> </div> <?php endwhile; endif;?> </div> <?php get_footer();?> ``` Is there any other code that would help you all help me? Thanks a ton in advance!