Custom Post Type Taxonomies Slug isn't showing
-
Hello,
I’ve created a custom post type named Events. I then added a taxonomy, Categories. I have one category called Fair.
When I click on the Fair category no posts shows up. https://phpbeginner.org/category/fair/Here’s the code:
<div class="main-content"> <div class="row"> <div class="content-box"> <span>Fair</span> </div><!--end. content-box--> <div class="large-9 columns"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="events-row"> <?php if(get_field('date_block')): ?> <?php while(has_sub_field('date_block')): ?> <div> <span class="date-block"> <span><?php the_sub_field('dateblock_month'); ?></span> <span><?php the_sub_field('dateblock_day'); ?></span> </span> </div> <?php endwhile; ?> <?php endif; ?> <div class="event"> <h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5> <?php the_excerpt(); ?> </div> </div><!--end. events-row--> <?php endwhile; endif; ?> </div><!--end. large-9 columns--> <div class="large-3 columns lborder"> <?php get_sidebar(); ?> </div><!--end. large-3 columns--> </div><!--end. row--> </div><!--end. main-content-->
I’ve been banging my head on this for two days, any help is much appreciated.
Thanks
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Custom Post Type Taxonomies Slug isn't showing’ is closed to new replies.