• I love this theme (I used 1.0.7 version MyMag), but i have a problem frome submenu navigation that category archive showing. It only show in 6 article and not Pagenavi or subpage sidebar in that page. please, recommend. this is my website (sorry, it’s Thai language.

    https://www.flickpeople.com/?cat=15

Viewing 6 replies - 1 through 6 (of 6 total)
  • can you give your index.php file and header.php file

    also sidebar.php file

    Thread Starter tuchchai

    (@tuchchai)

    Why ?, Problem is on archive.php

    Thread Starter tuchchai

    (@tuchchai)

    This is code in archive.php. anyone can some problem ?.

    <?php get_header(); ?>
    
    <div class="page-wrapper">
    
    <div id="left-posts">
    
    <div id="subpage">
    <div class="content">
    <?php if (have_posts()) :
    echo"<h1>"; ?>
    
    <?php if (is_day()) { ?>
    Archive for <?php the_time('F jS, Y'); ?>
    
    <?php } elseif (is_month()) { ?>
    Archive for <?php the_time('F, Y'); ?>
    
    <?php } elseif (is_category()) { ?>
    Archive for <?php echo single_cat_title(); ?>
    
    <?php } elseif (is_author()) { ?>
    Author Archive
    
    <?php } elseif (is_tag()) { ?>
    Tag Archive
    
    <?php } elseif (is_year()) { ?>
    Archive for <?php the_time('Y'); ?>
    
    <?php } elseif (is_search()) { ?>
    Search Results
    
    <?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    Blog Archives
    <?php }
    echo"</h1>";
    while (have_posts()) : the_post();	?>
    <div class="post">
    <?php
    $img = get_thumbnail_src();
    if(isset($img)) { ?>
    <div class="thumbnail">
    <a href="<?php echo $img;?>" rel="prettyPhoto[gallery1]"><img class="lightbox" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $img;?>&h=150&w=160&zc=1" alt="<?php the_title();?>" /></a>
    </div>
    <div class="with-thumb">
    <h2><a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php the_title();?></a></h2>
    <span class="date"><?php the_time('F j, Y'); ?></span>
    <span class="comments"><?php comments_number('No Comments','1 Comment','% Comments'); ?></span>
    <p><?php the_excerpt(__('continue reading...')); ?></p>
    <?php the_tags( '<div class="tag-list"><strong>Tags: </strong>', ', ', '</div>'); ?><div class="category-list"><?php the_category(', ');?></div>
    </div>
    </div>
    <?php } else { ?>
    <div class="with-thumbs">
    <h2><a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php the_title();?></a></h2>
    <span class="date"><?php the_time('F j, Y'); ?></span>
    <span class="comments"><?php comments_number('No Comments','1 Comment','% Comments'); ?></span>
    <p><?php the_excerpt(__('continue reading...')); ?></p>
    <?php the_tags( '<span class="tag-list"><strong>Tags: </strong>', ', ', '</span>'); ?><span class="category-list"><?php the_category(', ');?></span>
    </div>
    </div>
    <?php } ?>
    <?php endwhile; else: ?>
    <div class="post">
    <h1>Nothing found</h1>
    <p>Sorry, no posts matched your criteria.</p>
    </div>
    
    <?php endif; ?>
    </div>
    </div>
    <?php
    include(TEMPLATEPATH."/scripts/wp-pagenavi.php");
    if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    ?>
    </div>
    
    <?php include(TEMPLATEPATH."/sidebar-sub.php");?>             
    
    <?php get_footer(); ?>

    remove this line include(TEMPLATEPATH."/scripts/wp-pagenavi.php");

    Thread Starter tuchchai

    (@tuchchai)

    Oh!, It’s done. Thank you very very much, chinmoy.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to change category archive showing ?’ is closed to new replies.