• Good morning.

    I’m trying to figure out how to call in a preview for two PAGES on the home page.

    I have code that brings in posts – but I’m not sure how to call a page.

    The following is the code to call in the posts

    <?php query_posts('category_name=portfolio&posts_per_page=4'); ?>
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    <div class="portfolio">
    	<div class="entry-content">
    		<?php if (has_post_thumbnail()) { ?>
    			<div class="featuredImage">
    			<a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
    			<?php the_post_thumbnail('medium')?>
    			</a>
    			</div>
    	<h2 class="entry-title"><a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    				<?php } ?>

    [Moderator Note: Please post code snippets between backticks or use the code button.]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Page Preview on Home Page’ is closed to new replies.