You are previewing WordPress 3 Complete.
O'Reilly logo
WordPress 3 Complete

Book Description

WordPress is a fantastically versatile tool – not just for blogs but general websites too – and this book is the perfect all-inclusive guide for those who want to make the most of it. No programming knowledge required.

  • Learn everything you need for creating your own feature-rich website or blog from scratch

  • Clear and practical explanations of all aspects of WordPress

  • In-depth coverage of installation, themes, plugins, and syndication

  • Explore WordPress as a fully functional content management system

  • Clear, easy-to-follow, concise; rich with examples and screenshots

  • In Detail

    Using the WordPress Content Management System, you can create a beautiful, dynamic, and amazing website. WordPress is a flexible and powerful tool that's ideal for creating both blog and non-blog websites. You can customize the features, incorporate your own design, and even write your own plugins with ease. Its versatility and ease of use have attracted a large, enthusiastic, and helpful community of users.

    Wordpress 3 Complete will teach you everything you need to know both to get started with WordPress and also to unlock its massive hidden powers. This book will give you a rapid and straightforward introduction to the rich and powerful features of WordPress and will also get you up and running with WordPress quickly and painlessly. It will help you learn everything WordPress has to offer, from the ground up, so that you can build your own complete website.

    WordPress 3 Complete begins from scratch, starting with how to install WordPress, all the way to the most advanced topics such as creating your own themes, writing plugins, and including custom post types in your website.

    Starting with downloading and installing the core WordPress software, you will take a detailed look at WordPress settings and also choose the settings that will work best for your website or blog. After that, the book will teach you all about content management functionality for your site – from posts and pages to categories and tags, all the way to links, media, menus, images, galleries, and more. Finally, you'll learn how to create your own themes and plugins to enhance the overall functionality of your website.

    Once you're done with WordPress 3 Complete, you'll be an expert in everything WordPress, from content management through technical steps such as backing up your site.

    This is a comprehensive, step-by-step guide on how to set up, customize, and enhance your blog or website using WordPress.

    Table of Contents

    1. WordPress 3 Complete
      1. Copyright
      2. Credits
      3. About the Author
      4. About the Reviewers
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      6. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Errata
          2. Piracy
          3. Questions
      7. 1. Introduction to WordPress
        1. What is WordPress?
          1. Use it for a blog or a website
          2. Blog: Definition and common terms
            1. Common terms
              1. Post
              2. Categories and tags
              4. Theme
              5. RSS
              6. Page
        2. Why choose WordPress?
          1. A long time in refining
          2. Active in development
          3. Large community of contributors
          4. Amazingly extendable
          5. Detailed feature list
          6. New feature list since 2.7
            1. Learning more
        3. Online WordPress resources
          1. WordPress news
          2. The Codex
          3. Support from other users
          4. Theme and plugin directories
        4. Summary
      8. 2. Getting Started
        1. Where to build your WordPress website
          1. Using
          2. Installing WordPress manually
            1. Preparing the environment
            2. Downloading WordPress
            3. Upgrading from an earlier version of WordPress
            4. Uploading the files
            5. Installing WordPress
            6. Learning more
        2. The WP Admin panel
          1. Changing general blog information
          2. Your first post
          3. Your first comment
          4. Retrieving a lost password
        3. Summary
      9. 3. Creating Blog Content
        1. WP Admin conventions
          1. Lists of items
        2. Posting on your blog
          1. Adding a simple post
          2. Common post options
            1. Categories and tags
            2. Images in your posts
              1. Adding an image to a post
              2. Controlling default image sizes
              3. Editing an uploaded image
              4. Designating a post thumbnail or featured image
            3. Using the Visual editor versus the HTML editor
            4. Drafts, timestamps, and managing posts
              1. Drafts
              2. Timestamps
              3. Managing posts
          3. Advanced post options
            1. Excerpt and the MORE tag
            2. Trackbacks
            3. Discussion
            4. Custom Fields
            5. Protecting content
            6. Pretty permalinks
          4. Additional writing options
            1. Press This
            2. Posting via e-mail
        3. Discussion on your blog—comments
          1. Adding a comment
          2. Discussion settings
            1. Submission, notification, and moderation settings
            2. When to moderate or blacklist a comment
            3. Avatar display settings
          3. Moderating comments
          4. How to eliminate comment spam
            1. Getting a API key
            2. Activating Akismet
        4. Adding and managing categories
        5. Summary
      10. 4. Pages, Plugins, Image Galleries Menus, and More
        1. Pages
          1. Adding a page
            1. Parent
            2. Template
            3. Order
          2. Managing pages
        2. Menus
          1. Adding a Menu
          2. Displaying a Menu
        3. Widgets
        4. Links
          1. Adding a new link
          2. Displaying links
          3. Managing links and categories
        5. Media library
        6. Adding plugins
          1. Finding your plugin
          2. Installing and activating the plugin
            1. Auto-installation
            2. Download, (unzip?), upload
          3. Configuring and/or implementing—if necessary
        7. Adding an image gallery
          1. Choosing a post or page
          2. Uploading images
          3. Using a lightbox plugin
        8. Making your website mobile-friendly
        9. Summary
      11. 5. Choosing and Installing Themes
        1. Finding themes
          1. WordPress Theme Directory
          2. Finding more themes
        2. Some theme basics
          1. What makes a theme?
          2. Factors to consider when choosing a theme
        3. Installing and changing themes
          1. Adding a theme within the WP Admin
          2. Downloading, extracting, uploading
        4. Summary
      12. 6. Developing Your Own Theme
        1. Setting up your design
          1. Designing your theme to be WordPress-friendly
          2. Converting your design to code
            1. Examining the HTML structure
            2. Examining the CSS
        2. Converting your build into a theme
          1. Creating the theme folder
          2. Adding WordPress content
            1. The <head> tag
            2. The header and footer
            3. The sidebar
          3. Main column—the loop
        3. Creating templates within your theme
          1. Understanding the WordPress theme
          2. Breaking it up
            1. header.php
            2. footer.php
            3. sidebar.php
            4. Your four template files
          3. Archive template
          4. Single template
          5. Page template
          6. Generated classes for body and post
          7. Other WordPress templates
          8. Creating and using a custom template
        4. Making your theme widget-friendly
          1. Making sure your sidebar is one big <ul> tag
          2. Adding functions.php
          3. Adding conditional code to sidebar
          4. Adding some widgets
          5. Further widgetizing options
            1. Learning more
        5. Enabling a menu in your theme
        6. Creating a child theme
          1. Creating the new theme directory
          2. Creating the stylesheet
          3. Using your child theme
        7. Sharing your theme
        8. Summary
      13. 7. Feeds and Podcasting
        1. Feed basics
          1. Feed readers
            1. Learning more
        2. Your built-in WordPress feeds
        3. Adding feed links
          1. Feeds for the whole website
          2. Feeds for categories
          3. Feeds for post comments
          4. Tracking subscribers with FeedBurner
            1. Burn your feed on FeedBurner
            2. FeedBurner plugin
        4. Podcasting
          1. Creating a podcast
            1. Record yourself
            2. Make a post
          2. Dedicated podcasting
          3. Podcasting plugins
          4. Using a service to host audio files for free
        5. Summary
      14. 8. Developing Plugins and Widgets
        1. Plugins
          1. Plugin code requirements
          2. Basic plugin—adding link icons
            1. Naming and organizing the plugin files
            2. Writing the plugin's core functions
            3. Adding hooks to the plugin
            4. Trying out the plugin
          3. Adding an admin page
            1. Adding management page functions
            2. Modifying the regex() function
            3. Adding hooks
            4. Trying out the plugin
          4. Plugin with DB access—capturing searched words
            1. Getting the plugin to talk to the database
            2. Adding management page functions
            3. Adding hooks
            4. Trying out the plugin
          5. Learning more
        2. Widgets
          1. Recent posts from a Category Widget
            1. Naming the widget
            2. Widget structure
            3. Widget initiation function
            4. Widget form function
            5. Widget save function
            6. Widget print function
            7. Initiate and hook up the widget
            8. Final widget code
            9. Trying out the widget
            10. Learning more
          2. Bundling a widget with a plugin
        3. Shortcodes
          1. How do shortcodes work?
          2. Creating a simple shortcode
          3. Adding options to the shortcode
          4. Enabling shortcodes in widgets
        4. Summary
      15. 9. Community Blogging
        1. Concerns for a multiuser blog
        2. Users roles and abilities
          1. Administrator
          2. Editor
          3. Author
          4. Contributor
          5. Subscriber
        3. Managing users
          1. Enabling users to self-register
          2. Learning more
        4. User management plugins
        5. Creating a multi-site website
        6. Summary
      16. 10. Creating a Non-Blog Website
        1. Our client is a bookstore
        2. The Design
        3. New features covered in this chapter
        4. Introducing the initial theme
          1. What we are starting with
          2. Initial theme files and functionality
            1. functions.php
            2. header.php
            3. footer.php
            4. index.php
          3. Setting up the starter content
          4. Checking out the frontend
        5. Adding plugins
          1. Contact Form 7
          2. April's Call Posts
          3. Smooth Slider
            1. Installing the plugin
            2. Adding content to the plugin
            3. Adding the plugin to your theme
        6. Creating a custom post type: book
          1. Registering a new post type
            1. Adding labels
            2. Adding messages
            3. Creating book template files
          2. Registering and using a custom taxonomy
          3. Customizing the admin display
          4. Finalizing the bookstore website
        7. Summary
      17. 11. Administrator's Reference
        1. System requirements
          1. Enabling permalinks
        2. The importance of backing up
          1. Easy, quick, frequent content backups
          2. Backing up everything
          3. Verifying your backups
        3. Upgrading WordPress
          1. What about the built-in upgrader?
          2. Do it gradually for a big jump
          3. Steps for upgrading
          4. Backing up your database
          5. Backing up your WordPress files
          6. Put WordPress in Maintenance Mode
          7. Deactivating all your plugins
          8. Downloading and extracting WordPress
          9. Deleting old files
          10. Uploading the new files
          11. Running the WordPress upgrade program
          12. Updating permalinks and .htaccess
          13. Installing updated plugins and themes
        4. Migrating or restoring a WordPress site
        5. Setting file permissions
          1. What are file permissions?
          2. Permissions for WordPress
          3. How to set permissions
        6. Troubleshooting
          1. Troubleshooting during installation
            1. Headers already sent
            2. Page comes with only PHP code
            3. Cannot connect to MySQL database
          2. Basic troubleshooting
            1. Cannot see posts
            2. Making a site totally private
            3. I don't receive the e-mailed passwords
        7. Tips for theme development
          1. Template tags
          2. Class styles generated by WordPress
          3. Learning more
        8. Summary