Can't get home page to update (CMS)
-
Hi all,
I’m a complete beginner when it comes to WordPress and CMS so forgive my naivety!
I have a ready-made site (home grown!) that I want to equip for CMS to let a client easily update it. I downloaded WordPress after hearing great things about it and uploaded it to the server. Then, following a tutorial I set about creating a single editable page to test out.
I created homer.php from index.html and applied the following code in the relevant places:
<?php /* Template Name: Homer */ ?>
<?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 »</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>'); ?>
I then went uploaded homer.php to wordpress/wp-content/themes/twentyten and went to Add New Page via WordPress, gave it the name Homer, type some random text into the body and chose Homer as a template. When I chose to preview it I saw the page aa intended however, index.html does not change at all.
I’m sure I’m missing something obvious but once I crash through this initial barrier I’m confident WordPress will become second nature to me!
Eager awaiting your much appreciated reply (and ham-fistedly introducing myself to the world of WordPress),
Niall
- The topic ‘Can't get home page to update (CMS)’ is closed to new replies.