I'm new to WordPress and trying my best but I can't seem to load any category posts...
Just to be clear - why I mean is that when a page publishes a breacrumb 'category' tag, if that tag is clicked then nothing loads.
I understand that the WordPress hierarchy works like this:
category-slug.php → category-id.php → category.php → archive.php → index.php
I thought that I would just need to loop the posts within that category but nothing loads...
Here is the code I have been trying without success:
<?php /* * Template Name: Category */ if (!defined('ABSPATH')) exit; // Exit if accessed directly get_header(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="container"> <div class="row"> <div class="col-xs-12 paddingtop"> <?php the_content(); ?> <?php endwhile; ?> <?php endif; ?> </div> </div> </div> <?php get_footer(); ?>
Do I need to change something in the settings of WordPress - what is it that I might be missing?
Perhaps functions.php needs a command?
Thanks for all direction