Hi Cip!
Yes, I’ve replaced the content of my theme category.php file with your code. But I don’t see the content that I write in my Categories with your Enhanced Edit.
Can you help me to make it work?
MY ORIGINAL CATEGORY.PHP FILE:
==============================
<?php get_header(); ?>
<div class=”content-wrap”>
<div class=”content”>
<?php tie_breadcrumbs() ?>
<?php $category_id = get_query_var(‘cat’) ; ?>
<div class=”page-head”>
<h1 class=”page-title”>
<?php echo single_cat_title( ”, false ) ?>
</h1>
<?php if( tie_get_option( ‘category_rss’ ) ): ?>
” href=”<?php echo get_category_feed_link($category_id) ?>”>
<?php endif; ?>
<div class=”stripe-line”></div>
<?php
if( tie_get_option( ‘category_desc’ ) ):
$category_description = category_description();
if ( ! empty( $category_description ) )
echo ‘<div class=”clear”></div><div class=”archive-meta”>’ . $category_description . ‘</div>’;
endif;
?>
</div>
<?php get_template_part( ‘includes/slider-category’ ) ?>
<?php get_template_part( ‘loop’, ‘category’ ); ?>
<?php if ($wp_query->max_num_pages > 1) tie_pagenavi(); ?>
</div> <!– .content –>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
MY FINAL CATEGORY.PHP FILE:
===========================
<?php get_header(); ?>
<div class=”content-wrap”>
<div class=”content”>
<?php tie_breadcrumbs() ?>
<!– HERE STARTS YOUR CODE –>
<?php
global $enhanced_category;
//get enhanced category post and set it up as global current post
$enhanced_category->setup_ec_data();
?>
<!– enhanced category content –>
<?php the_post_thumbnail(“medium”); ?>
<?php get_template_part( ‘content’, ‘page’ ); ?>
<!– custom fields –>
<?php
get_post_custom();
?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<!– HERE ENDS YOUR CODE –>
</div> <!– .content –>
<?php get_sidebar(); ?>
<?php get_footer(); ?>