WordPress.org

Ready to get started?Download WordPress

Forums

Problem retriving the Archives (1 post)

  1. krystiank
    Member
    Posted 4 years ago #

    Hi,

    Not sure how to fix it.

    In the Archve.php I set redirects based on the category to display diffrent templates

    <?php
    $post = $wp_query->post;
    if ( in_category('4') ) { include(TEMPLATEPATH . '/lifeKeys-catalog.php'); }
    elseif ( in_category('18') ) { include(TEMPLATEPATH . '/blog-catalog.php'); }
    else { include(TEMPLATEPATH . '/catalog-custom.php'); }
    ?>

    Now, my Archive wont display correctly. My Archives links display last 4 months. When you click one, instead of showing the date in the URL, it show a category link.

    http://www.unlockingthebible.com/category/blog/

    I also installed a plugin to filter the archives by category.

    Please help, hjow to display the archives results now?

    Krystian

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.