文档介绍:WordPress 3 Site Blueprints
Ready-made plans for 9 different professional
WordPress sites
Heather R. Wallace
BIRMINGHAM - MUMBAI
WordPress 3 Site Blueprints
Copyright © 2010 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy
of the information presented. However, the information contained in this book is
sold without warranty, either express or implied. Neither the author, nor Packt
Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: August 2010
Production Reference: 1280710
Published by Packt Publishing Ltd.
32 Lincoln Road
Olton
Birmingham, B27 6PA, UK.
ISBN 978-1-847199-36-2
Cover Image by Vinayak Chittar (@)
Table of Contents
Preface 1
Chapter 1: Project 1: Migrating a Static Website to WordPress 9
Preparing for the transition 10
Installing WordPress 10
Hiding your new WordPress installation 11
Two methods for migrating content 12
The manual method 13
The automatic method 13
Partially revealing WordPress 15
Turning your current template into a theme 16
Inner workings of WordPress 16
A WordPress page is the sum of its parts 17
Beginning of a theme 17
Segmenting the template from your previous site 18
Creating the functions file 19
Creating the header template 20
Creating the index template 22
Creating the single