All Enhanced category Content Not Showing
-
Hi,
This plug-in looks to be exactly what I need, but I am somewhat of a beginner and cannot get any of the content in my enhanced category content to show.
I would like to show a page of sub-categories with their featured thumbnails on their parent category page, rather than the posts within the category.
This is the site page (currently showing posts, not the desired sub-categories):
https://www.robsportfolio.co.uk/category/my-work/
I am using a category-my-work.php file to custom control this page.
The code, that is not working is as follows:
<?php get_header(); ?> <div class="content section-inner"> <div class="page-title"> <?php if ( is_day() ) : ?> <p><?php _e('Date','hitchcock') ?></p> <h4><?php echo get_the_date( get_option('date_format') ); ?></h4> <?php elseif ( is_month() ) : ?> <p><?php _e('Month','hitchcock') ?></p> <h4><?php echo get_the_date('F Y'); ?></h4> <?php elseif ( is_year() ) : ?> <p><?php _e('Year','hitchcock') ?></p> <h4><?php echo get_the_date('Y'); ?></h4> <?php elseif ( is_category() ) : ?> <p><?php _e('Category','hitchcock') ?></p> <h4><?php echo single_cat_title( '', false ); ?></h4> <?php elseif ( is_tag() ) : ?> <p><?php _e('Tag','hitchcock') ?></p> <h4><?php echo single_tag_title( '', false ); ?></h4> <?php elseif ( is_author() ) : ?> <p><?php _e('Author','hitchcock') ?></p> <?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ?> <h4><?php echo $curauth->display_name; ?></h4> <?php else : ?> <h4><?php _e( 'Archive', 'hitchcock' ); ?></h4> <?php endif; ?></h4> </div> <!-- /page-title --> <?php if ( have_posts() ) : ?> <?php rewind_posts(); ?> <div class="posts" id="posts"> <?php $enhanced_category->setup_ec_data()?> <?php get_query_var("taxonomy"); ?> <?php get_query_var("term"); ?> <?php get_cat_id(single_cat_title("", false));?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> <div class="clear"></div> </div> <!-- /posts --> <div class="clear"></div> <?php hitchcock_archive_navigation(); ?> <?php endif; ?> </div> <!-- /content --> <?php get_footer(); ?>
Are you able to help?
Where am I going wrong?
Thanks…….. Rob.
https://www.ads-software.com/plugins/enhanced-category-pages/
- The topic ‘All Enhanced category Content Not Showing’ is closed to new replies.