Customizing category pages
-
Hello,
I would like to use my own layout for the category pages. So I understand that I need to create a template.
I have followed this advice events manager website tutorial . The structure I have created is the following:
wp-content/themes/mytheme/plugins/events-manager/templates/taxonomy-events-categories.php
I have changed ‘override to formats’ to NO.
When I view one of my category pages in the browser, it doesn’t display the template I’ve created. It uses the standard home one.
My code in taxonomy-events-categories.php :
<?php get_header(); ?> <div class="post-inner"> <?php global $post, $EM_Category, $wp_query; $EM_Cat = em_get_category($wp_query->queried_object->term_id); <h1><?php echo $EM_Cat->output('#_CATEGORYNAME'); ?></h1><br/> <p><?php echo $EM_Cat->output('#_CATEGORYNOTES'); ?></p><br/> <h3>Next Events</h3><br/> <div> <p><?php echo $EM_Cat->output('#_CATEGORYNEXTEVENTS'); ?></p> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
Please can someone explain the problem? So that I can make my template display for the category pages? Thank-you
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Customizing category pages’ is closed to new replies.