Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cip

    (@cip)

    Hi!

    I am glad that you found our plugin appropriate for your requirements.

    Unfortunately, because there are very many themes that differ greatly in the way they display category and for greatest flexibility for the developer, the usage of the plugin requires some minimal coding skills. Please check the installation section of the plugin.

    If you could not find the right files in the theme you are using, do a text search for single_cat_title or is_category or category in all files of the theme, as these are the functions that are likely to be used when displaying a category page.

    Thread Starter aberniz

    (@aberniz)

    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(); ?>

    Plugin Author cip

    (@cip)

    Hi!

    We have used your category.php code provided and except for commenting out the call to tie_breadcrumbs that we do not have in our test theme, everything worked as expected. Here is the screenshot we got from test: https://awesomescreenshot.com/0f957o4y25

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘It seems do nothing’ is closed to new replies.