Page is displaying blog archives
-
I’ve been playing around with the jquery plugin Fancybox on this page, but for some reason since making a few changes my page seems to be displaying blog archives rather than the normal content it should be displaying.
I just wondered whether people have had a similar problem? There must be something I’ve done wrong for this page because all of the other page’s content are displaying fine.
This is the code for the portfolio.php page, but it is outputting something completely different.
<?php /* Template Name: Portfolio */ ?> <?php get_header(); ?> <section> <?php include("includes/slideshow/slideshow-home.php"); ?> </section> <header> <div id="titleHeader" class="clear"> <h2 class="entry-title"><?php the_title(); ?></h2> </div> </header> <section> <article> <div id="mainContent" class="clear"> <?php /* Run the loop to output the page. * If you want to overload this in a child theme then include a file * called loop-page.php and that will be used instead. */ get_template_part( 'loop', 'page' ); ?> <ul id="portfolioContent"> <?php $loop = new WP_Query(array('post_type' => 'portfolio', 'posts_per_page' => 10)); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php $custom = get_post_custom($post->ID); ?> <li class="portfolioThumb"><a href="<?php echo get_permalink(); ?>" class="various2"><?php the_post_thumbnail('thumbnail'); ?></a></li> <?php endwhile; ?> </ul> </div> </article> </section> <section> <aside> <?php get_sidebar(); ?> </aside> </section> <?php get_footer(); ?>
Thanks,
Ash
- The topic ‘Page is displaying blog archives’ is closed to new replies.