Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- FILE: page.php -->
- <?php get_header(); ?>
- <div id class="content_container"> <?php get_sidebar (); ?>
- <div id class="main_content">
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <h1><?php the_title(); ?></h1>
- <?php
- global $post;
- $template_names = array();
- $template_names[]='loop-' .$post->post_name .'.php';
- $template_names[]='loop-page.php';
- locate_template( $template_names, true, true );
- ?>
- </div>
- </div>
- <?php endwhile; ?>
- <?php get_footer(); ?>
- <!-- FILE: loop-portfolio.php -->
- <?php query_posts('category_name=portfolio&posts_per_page=3');?>
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="post_title"><h1><?php the_title();?></h1></div>
- <div id class="picbox"></div>
- <p><?php the_content();?></p>
- </div>
- <div id class="clear"></div>
- <?php endwhile; ?>
- <?php rewind_posts(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement