• Hi everyone,

    I have this amazing theme, but I just want to change one small thing.
    On the homepage it shows the latest post, but I want to change this to pages.

    I checked the editor, but I’m not sure what to change anymore. Anyone that could/would help?

    This is the php coding:

    <?php get_header(); ?>

    <?php $i = 0; ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); $i++; ?>
    <div class=”span-8 post-<?php the_ID(); ?><?php if ($i == 3) { ?> last<?php } ?>”>
    <h6 class=”archive-header”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title() ?></h6>
    <?php get_the_image( array( ‘custom_key’ => array( ‘thumbnail’ ), ‘default_size’ => ‘thumbnail’, ‘width’ => ‘310’, ‘height’ => ‘150’ ) ); ?>
    <?php the_excerpt(); ?>
    </div>
    <?php if ($i == 3) { ?><div class=”archive-stack clear”></div><?php $i = 0; } ?>
    <?php endwhile; endif; ?>

    <div class=”clear”></div>

    <div class=”navigation clearfix”>
    <div><?php next_posts_link(‘« Older Entries’) ?></div>
    <div><?php previous_posts_link(‘Newer Entries »’) ?></div>
    </div>

    <?php get_template_part( ‘bottom’ ); ?>
    <?php get_footer(); ?>

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing posts in pages (php)’ is closed to new replies.