Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter mwellsworth

    (@mwellsworth)

    Nevermind, I solved the problem by happening upon this snippet of code:

    <?php query_posts(‘pagename=insert name of Page here‘); ?>

    This calls whatever Page you name into memory for The Loop to use. It works for the purpose I needed.

    Here is my updated code for portfolio if anyone else has this problem:

    <?php
    /*
    Template Name: Portfolio
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    	<div class="post" id="post-<?php the_ID(); ?>">
    
    		<h2>
    
    			<?php the_title(); ?>
    
    		</h2>
    
    		<div class="entry">
    
    			<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    
    			<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    		</div>
    
    	</div>
    
    	<?php endwhile; endif; ?>
    
    	<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    
    </div>
    
    <img src="wp-content/themes/default/images/segue.jpg" style="margin-top: 10px; margin-bottom: 10px" align="left" height="40" width="540" />
    
    <?php query_posts('pagename=sketching'); ?>
    
    <div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>		
    
    	<div class="post" id="post-<?php the_ID(); ?>">
    
    		<h2>
    
    			<?php the_title(); ?>
    
    		</h2>
    
    		<div class="entry">
    
    			<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    
    			<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    		</div>
    
    	</div>
    
    	<?php endwhile; endif; ?>
    
    	<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    
    </div>
    
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)