Title: Changing posts in pages (php)
Last modified: August 19, 2016

---

# Changing posts in pages (php)

 *  [donouwens](https://wordpress.org/support/users/donouwens/)
 * (@donouwens)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/changing-posts-in-pages-php/)
 * 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)

 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/changing-posts-in-pages-php/#post-1936984)
 * What _exactly_ do you want the Homepage to display?
 * Do you want to display a specific Page?
 *  Thread Starter [donouwens](https://wordpress.org/support/users/donouwens/)
 * (@donouwens)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/changing-posts-in-pages-php/#post-1937023)
 * Well basically I want everything to stay the same as it is now (check [http://www.donouwens.com](http://www.donouwens.com)).
   Only I want instead of the three posts that are shown now is to have links to
   three pages there. To the blog, a personal page and a third tba page (all non-
   existing yet). All with a description, just like the posts have now.
 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/changing-posts-in-pages-php/#post-1937039)
 * Honestly, I would create a custom frontpage template (frontpage.php), in which
   you have your image, plus a Widgetized “sidebar”. Then put three text Widgets
   into the Widgetized “sidebar”. In each of the text Widgets, put the Title, link,
   and description for each of the Posts/Pages that you want to link.
 * That would be the easiest way, I think.
 *  Thread Starter [donouwens](https://wordpress.org/support/users/donouwens/)
 * (@donouwens)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/changing-posts-in-pages-php/#post-1937053)
 * Sounds like a fine suggestion, but I have no idea how to make it! :S
 *  [Alwyn Botha](https://wordpress.org/support/users/123milliseconds/)
 * (@123milliseconds)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/changing-posts-in-pages-php/#post-1937220)
 * [http://www.bernskiold.com/2010/11/10/creating-a-simple-custom-frontpage-in-wordpress/](http://www.bernskiold.com/2010/11/10/creating-a-simple-custom-frontpage-in-wordpress/)
 * [http://themeshaper.com/2009/02/02/custom-page-template-redesign-blog/](http://themeshaper.com/2009/02/02/custom-page-template-redesign-blog/)
 *  Thread Starter [donouwens](https://wordpress.org/support/users/donouwens/)
 * (@donouwens)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/changing-posts-in-pages-php/#post-1937327)
 * thanks!!!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Changing posts in pages (php)’ is closed to new replies.

## Tags

 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * 6 replies
 * 3 participants
 * Last reply from: [donouwens](https://wordpress.org/support/users/donouwens/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/changing-posts-in-pages-php/#post-1937327)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
