Archive.php / page.php displaying home page
-
In my wp permanent links i have changed to:
/%category%/%postname%/
And in my category base to:.
For some reason, in my archive.php or page.php is showing my home page.
Here’s my code (its the same for archive and page):<?php get_header(); ?> <div class="container"> <section id="category-posts"> <?php add_filter( 'the_title', 'max_title_length'); while (have_posts()) : the_post(); ?> <div class="category-posts"> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <?php the_post_thumbnail('category-thumb'); ?> <h2><?php the_title(); ?></h2> <?php the_excerpt(); ?> <h3><?php echo "Publicado em: " . get_the_date( get_option('date_format') ) . " | " . get_the_author(); ?></h3> </a> </div> <?php endwhile; remove_filter( 'the_title', 'max_title_length'); ?> </section> <aside id="right-sidebar"> <?php dynamic_sidebar( 'right_sidebar' ); ?> </aside> <?php get_footer(); ?>
Any ideas?
- The topic ‘Archive.php / page.php displaying home page’ is closed to new replies.