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

Book Description

Over 100 recipes to help you enhance your WordPress site!

  • Take your WordPress site to the next level with solutions to common WordPress problems that make your site better, smarter, faster, and more secure

  • Enhance your SEO and make more money online by applying simple hacks

  • Rich with screenshots and practical tasks that you will find quite useful

  • 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. Are you feeling limited with WordPress, or are you wondering how popular blogs do a certain kind of thing that you can't?

    WordPress 3 Cookbook focuses on providing solutions to common WordPress problems so that you can translate your site to one of the best. The author's experience with WordPress enables him to share insights on using WordPress effectively, in a clear and friendly way, giving practical hands-on solutions to WordPress problems, questions, and common tasks – from themes to widgets and from SEO to security.

    With this update to the WordPress 2.7 cookbook, you will learn many WordPress 3 secrets and techniques, with step-by-step, useful recipes dedicated to achieving a particular goal or solving a particular problem.

    You will learn to install and customize themes, work with plugins, customize content display, enhance interactivity with the user and build communities. Then, the book also teaches you to earn revenue through online sales and advertisements. You will also find recipes for SEO and enhancing usability, and the book finally winds up with information on the inevitable maintenance and security.

    This book helps you to get solutions to common WordPress problems, to make your site better, smarter, faster, and more secure.

    Table of Contents

    1. WordPress 3 Cookbook
      1. Table of Contents
      2. WordPress 3 Cookbook
      3. Credits
      4. About the Author
      5. About the Reviewer
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. 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. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. The WordPress Cook's Tools
        1. Introduction
        2. Managing media files with the Media Library
          1. Getting ready
          2. How to do it...
        3. Modifying theme files with the built-in Theme Editor
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Modifying plugin files with the built-in Plugin Editor
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Managing users
          1. Getting ready
          2. How to do it...
          3. See also
        6. Gaining control over user roles and permissions
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Setting up editorial workflow
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        8. Importing and exporting content
          1. Getting ready
          2. How to do it...
        9. Installing and using Jetpack
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        10. Enabling the toolbar for users and administrators
          1. Getting ready
          2. How to do it...
      9. 2. Installing and Customizing Themes
        1. Introduction
        2. Installing a theme
          1. Getting ready
          2. How to do it...
          3. There's more...
            1. Installing a theme manually
        3. Creating a child theme
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Customizing the styling of your child theme
            2. Customizing the functionality of your child theme
        4. Modifying your theme colors
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        5. Modifying your theme fonts
          1. Getting ready
          2. How to do it...
          3. There's more...
            1. Tips and things to know about fonts
            2. Using @font-face
        6. Creating and integrating a favicon
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        7. Adding a custom logo
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Customizing the login page
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Enabling the plugin's modules
        9. Using conditional tags to control content display
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        10. Using multiple page templates
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Adding functionality with template tags
        11. Using post formats
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. An easy option for styling post formats
        12. Creating a custom 404 error page
          1. Getting ready
          2. How to do it...
          3. How it works...
        13. Using a static page as a homepage
          1. Getting ready
          2. How to do it...
          3. How it works...
        14. Adding custom styles to your theme
          1. Getting ready
          2. How to do it...
          3. How it works...
        15. Making your site mobile device friendly
          1. Getting ready
          2. How to do it...
          3. How it works...
      10. 3. Working with Plugins and Widgets
        1. Introduction
        2. Installing plugins
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Deleting installed plugins automatically
            2. Deleting installed plugins manually
        3. Installing widgets
          1. Getting ready
          2. How to do it...
          3. See also
        4. Adding widget areas to your themes
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Creating your own widget
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Modifying core widgets
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Displaying tabs on your sidebar
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Using conditional tags to control widget display
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using the widget content filter
          5. See also
        9. Displaying widgets inside of posts and pages
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      11. 4. Customizing Content Display
        1. Introduction
        2. Accessing posts within the WordPress loop
          1. Getting ready
          2. How to do it
          3. How it works...
          4. There's more...
        3. Retrieving posts from a specific category
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Getting a specific number of posts
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Retrieving posts by date
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Displaying posts published today
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Displaying posts published exactly one year ago
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Using multiple loops
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Accessing post data outside of the WordPress loop
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using get_post()
            2. Using get_post_data()
        10. Accessing permalinks outside the loop
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        11. Displaying thumbnails on your homepage
          1. Getting ready
          2. How to do it...
          3. How it works...
        12. Alternating background colors on post lists
          1. Getting ready
          2. How to do it...
          3. How it works...
        13. Displaying posts in two columns
          1. Getting ready
          2. How to do it...
          3. How it works...
        14. Save time by using WordPress shortcodes
          1. Getting ready
          2. How to do it...
          3. How it works...
        15. Enabling the use of shortcodes in widgets
          1. Getting ready
          2. How to do it...
          3. How it works...
        16. Adding notes to your posts
          1. Getting ready
          2. How to do it...
          3. How it works…
        17. Adding tags to your pages
          1. Getting ready
          2. How to do it...
          3. How it works…
      12. 5. Building Interactivity and Community
        1. Introduction
        2. Improving navigation with a paginator
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Highlighting searched text in search results
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Integrating a forum into your site
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Skins
            2. Moderators
            3. User groups
          5. See also...
        5. Adding social bookmarking buttons to your theme
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also...
        6. Aggregating RSS content
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        7. Integrating Feedburner into your site
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Displaying a retweet button on your posts
          1. Getting ready
          2. How to do it…
          3. How it works…
        9. Getting more comments with the Subscribe to Comments Reloaded plugin
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        10. Remove the nofollow attribute to motivate users to leave comments
          1. Getting ready
          2. How to do it...
          3. How it works...
        11. Provide recognition to your top contributors
          1. Getting ready
          2. How to do it...
          3. How it works...
        12. Displaying author-related information on posts
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        13. Displaying the author's avatar on posts
          1. Getting ready
          2. How to do it...
          3. How it works...
        14. Allowing multiple authors on posts
          1. How to do it...
          2. How it works...
          3. There's more...
        15. Displaying a list of all of the authors
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        16. Creating community with BuddyPress
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also...
        17. Adding a simple gallery to your site
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more...
        18. Bringing Facebook functionality into your site
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also...
        19. Integrating a Twitter stream into your site
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
      13. 6. Implementing Online Sales and Advertising
        1. Introduction
        2. Integrating Adsense
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Integrating AdSense using quicktags
            2. Integrating AdSense manually
        3. Displaying ads anywhere in your posts by using WordPress shortcodes
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Managing ad visibility
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Global options
        5. Inserting ads into your RSS feeds
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more
        6. Showing your site stats to find advertisers
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more
        7. Enhancing your Advertise page by adding Paypal subscriptions
          1. Getting ready
          2. How to do it...
        8. Managing your advertising space with an ad manager
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Creating a new Ad Zone
        9. Adding a shopping cart to your site
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
      14. 7. Making an SEO Friendly Site
        1. Introduction
        2. Making your site visible to search engines
          1. Getting ready
          2. How to do it...
        3. Optimizing your permalinks for SEO
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Structure tags reference
            2. Further optimizing your permalinks
        4. Migrating your permalinks safely
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Adding redirects for changed URLs
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        6. Creating meta descriptions for your posts and pages
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        7. Avoiding duplicate content with a robots.txt file
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. A plugin to remove duplicate content
        8. Pinging third-party services
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Enhancing site indexing with XML sitemaps
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        10. Using Google's and Bing's Webmaster Tools
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Site configuration
            2. Your site on the web
            3. Diagnostics
            4. Labs
          5. See also
        11. Improving SEO with the SEO Ultimate plugin
          1. Getting ready
          2. How to do it...
          3. There's more...
            1. Five more tips for a better SEO
              1. Get backlinks
              2. Use the proper h tags structure
              3. Make sure your blog is XHTML valid
              4. Use keywords in your content items
          4. See also
      15. 8. Enhancing Usability and Accessibility
        1. Introduction
        2. Creating print-friendly pages
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. To style the print link
            2. To style the print page
        3. Extending WordPress search
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more
        4. Enhancing navigation with breadcrumbs
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        5. Stopping SPAM
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Optimizing performance with cache management
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using a content delivery network
            2. Preloading content
        7. Displaying a login form
          1. Getting ready
          2. How to do it…
          3. How it works...
        8. Displaying related posts
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        9. Creating a Featured Posts block
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        10. Adding a sitemap for your site visitors
          1. Getting ready
          2. How to do it...
          3. How it works...
        11. Creating a better tag cloud
          1. Getting ready
          2. How to do it...
        12. Adding lightboxes for your photos
          1. Getting ready
          2. How to do it...
          3. There's more
      16. 9. Managing Maintenance and Improving Security
        1. Introduction
        2. Creating a manual backup of your database
          1. Getting ready
          2. How to do it...
          3. There's more...
          4. See also
        3. Creating an automatic backup with WP DB Backup
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Restoring a MySQL backup
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Creating backups of your WordPress files
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Removing the WordPress version information from your theme files
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Getting rid of the Administrator account
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Protecting against brute force log in attempts
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        9. Denying access to unneeded hints
          1. Getting ready
          2. How to do it...
          3. How it works...
        10. Adding another layer of protection with HTTP authentication
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        11. Restricting access to the wp-admin directory by using the IP address
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Allowing access to more than one IP
          5. See also
        12. Testing your site security
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        13. Reducing SPAM by selectively blocking comment posting
          1. Getting ready
          2. How to do it...
          3. How it works...
      17. Index