O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

WordPress 4.x Complete

Book Description

Get your website up and running and beautify it with WordPress

In Detail

With WordPress, anyone can build an optimized website with the least amount of effort possible and then make it available to the world in no time.

This book will serve as a practical guide for everyone who intends to become an online publisher, website owner, or even a website developer. Beginning with the basic features of WordPress, the book lays a solid foundation to deal with advanced and complex features. It then moves on to helping you choose and install various themes.

Gradually, with increasing complexity, the book goes into the development of your own themes, acting as a beginner's guide to theme and plugin development.

Concluding the learning curve with miscellaneous tasks such as community blogging and administrating the established site, this book empowers you with the ability to maintain your site.

What You Will Learn

  • Launch your website quickly with the help of a quick WordPress installation guide
  • Create content that is optimized for publishing on the Web
  • Create a quality website with a proper assembly of important subpages
  • Install and work with plugins and widgets
  • Install and create attractive themes for your website
  • Create custom menus to improve the user experience of your website
  • Upload multimedia content such as images, audio, and video easily and effectively
  • Build your first plugins and widgets to add features to your website
  • Expand the features of WordPress for creating non-blogging websites and administer them

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. WordPress 4.x Complete
    1. Table of Contents
    2. WordPress 4.x Complete
    3. Credits
    4. About the Author
    5. About the Reviewers
    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. Downloading the color images of this book
        3. Errata
        4. Piracy
        5. Questions
    8. 1. Introducing WordPress
      1. Getting into WordPress
        1. Using WordPress for a blog or a website
          1. Starting the journey – what is a blog?
      2. Understanding the common terms
        1. Post
        2. Categories and tags
        4. Themes
        5. Plugins
        6. Widget
        7. Menus
        8. RSS
        9. Page
        10. Home page
        11. Users
      3. Why choose WordPress
        1. A long time in refining
        2. Active in development
        3. A large community of contributors
        4. Amazingly extendable
      4. Getting to know the WordPress family
      5. Digging into WordPress – the features
      6. Getting familiar with the new feature list since 3.7
        1. Learning more
      7. Learning more with online WordPress resources
      8. Staying updated through WordPress news
      9. Understanding the Codex
      10. Getting support from other users
      11. Using theme and plugin directories
      12. Summary
    9. 2. Getting Started with WordPress
      1. Building your WordPress website – start here
      2. Using WordPress.com
        1. Publishing your first content on a WordPress.com blog
      3. 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. Installing WordPress through a hand-built configuration file
        7. Learning more
      4. Installing WordPress through an auto-installer script
      5. The wp-admin panel
        1. Changing general blog information
        2. Creating your first post
        3. Writing your first comment
        4. Retrieving a lost password
      6. Getting a Gravatar
      7. Summary
    10. 3. Creating Blog Content
      1. WordPress 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 featured image
          3. Videos and other media in your posts
            1. Adding videos to blog posts
            2. Adding audio to blog posts
            3. Limited editing possibilities
          4. Using the Visual editor versus the Text editor
          5. Lead and body
          6. Drafts, pending articles, and timestamps
            1. Drafts
            2. Pending articles
            3. Timestamps
        3. Advanced post options
          1. Excerpt
          2. Sending pingbacks and trackbacks
          3. Discussion
          4. Custom Fields
          5. Working with post revisions
          6. Changing the author of the post
          7. Protecting content
          8. Pretty post slug
          9. Custom post format settings
        4. Additional writing options
          1. Press This
          2. Posting via e-mail
          3. External blogging tools
          4. Mobile apps for iOS and Android
      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 an Akismet API key
          2. Activating Akismet
      4. Adding and managing categories
      5. Summary
    11. 4. Pages, Menus, Media Library, and More
      1. Pages
        1. Adding a page
          1. Parent
          2. Order
        2. Managing pages
      2. Menus
        1. Adding a Menu
        2. Displaying a Menu
      3. Header
      4. Background
      5. Advanced site customization
      6. Media library
        1. Media Manager
        2. Adding an image gallery
          1. Choosing a post or page
          2. Selecting or uploading images
      7. Importing/exporting your content
        1. Importing content
        2. Exporting content
      8. Summary
    12. 5. Plugins and Widgets
      1. Breaking down plugins – what are they?
      2. Why use plugins
      3. Where to get plugins from
      4. Finding new plugins
      5. Installing a plugin – the how-to
        1. Manual plugin installation
        2. Auto-installation
      6. The must-have pack of plugins
        1. Backing up
        2. Enabling Google Analytics
        3. Caching
        4. Search engine optimization (SEO)
        5. Securing your site
        6. Social media integration
        7. Jetpack
      7. Widgets
      8. Summary
    13. 6. Choosing and Installing Themes
      1. Finding themes
        1. WordPress Theme Directory
        2. Main types of themes
        3. Finding more themes
      2. Some not-design-related theme basics
        1. The structure of a theme
        2. Factors to consider when choosing a theme
          1. The purpose of the theme
          2. Theme licensing
          3. Up-to-date themes only
          4. Themes that are customizable
          5. Themes with responsive structure
          6. Support, reviews, and documentation
      3. Installing and changing themes
        1. Adding a theme within the wp-admin
        2. Downloading, extracting, and uploading
      4. Summary
    14. 7. Developing Your Own Theme
      1. Setting up your design
        1. Designing your theme to be WordPress-friendly
        2. Three paths of theme development
          1. Building a theme from the ground up
          2. Building a theme with a framework
          3. Building a theme with a starter theme
        3. Converting your design into code
          1. Examining the HTML structure
          2. Examining the CSS
      2. Converting your build into a theme
        1. Creating the theme folder
        2. How to create basic WordPress content
          1. The functions.php file
          2. The <head> tag
          3. The header and footer
          4. The sidebar
        3. Main column – the loop
      3. Creating template files within your theme
        1. Understanding the WordPress theme
        2. Breaking it up
          1. The header.php file
          2. The footer.php file
          3. The sidebar.php file
          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 page template
      4. Making your theme widget-friendly
        1. Going back to our sidebar
        2. Working with the functions.php file
        3. Adding some widgets
        4. Additional widgetizing options
      5. Enabling a menu in your theme
      6. Creating a child theme
        1. Creating the new theme folder
        2. Creating the style sheet
        3. Using your child theme
      7. Sharing your theme
      8. Summary
    15. 8. Feeds, Podcasting, and Social Media Integration
      1. Getting started with feeds
      2. Working with built-in WordPress feeds
      3. Adding feed links
        1. Feeds for the entire website
        2. Feeds for comments
      4. Podcasting
        1. Creating a podcast
          1. Recording yourself
          2. Making a post
          3. Dedicated podcasting
        2. Podcasting plugins
        3. Using a service to host audio files for free
      5. Integrating social media
        1. Making your blog social media friendly
        2. Setting up social media share buttons
        3. Setting up social media APIs' integration
        4. Setting up automatic content distribution to social media
          1. The Jetpack plugin
          2. The Revive Old Post plugin
        5. Setting up social media metrics tracking
      6. Summary
    16. 9. Developing Plugins and Widgets
      1. Plugins
        1. Building plugins from scratch
        2. Plugin code requirements
        3. 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
        4. Adding an admin page
          1. Adding management page functions
          2. Modifying the doctype_styles_new_regex() function
          3. Adding hooks
          4. Trying out the plugin
        5. Testing your plugins
        6. A plugin with DB access – capturing searched words
          1. Getting the plugin to talk to the database
          2. Adding management page functions
          3. Trying out the plugin
        7. Learning more
      2. Widgets
        1. Custom tag cloud widget
          1. Naming our widget
          2. The widget structure
          3. The widget initiation function
          4. The widget form function
          5. The widget save function
          6. The widget print function
          7. Custom widget styles
          8. Initiating and hooking up the widget
          9. Trying out the widget
          10. Learning more
        2. Bundling a widget with an existing plugin
      3. Shortcodes
        1. Shortcodes and the way they work
        2. Types of shortcodes
        3. Creating a simple shortcode
        4. Enabling shortcodes in widgets
      4. Summary
    17. 10. Community Blogging
      1. Concerns for a multi-author blog
      2. User roles and abilities
        1. Administrator
        2. Editor
        3. Author
        4. Contributor
        5. Subscriber
      3. Managing users
        1. Enabling users to self-register
      4. User management plugins
      5. Summary
    18. 11. Creating a Non-blog Website Part 1 – The Basics
      1. The must-do tasks
      2. Static websites
        1. The process
          1. Building your home page
          2. Creating easy-to-grasp menus
      3. Corporate or business websites
        1. Picking a clean theme
        2. Branding elements
        3. Good navigation
        4. Custom home page
        5. Optional slider
        6. Meteor Slides
        7. Master Slider
      4. One-page websites
        1. Picking a one-page theme
        2. Branding elements
        3. High-quality images
      5. Summary
    19. 12. Creating a Non-blog Website Part 2 – Community Websites and Custom Content Elements
      1. Membership websites
        1. Taking the simple approach
        2. Using membership plugins
        3. Taking the free approach
          1. Installing the plugin
          2. Using the plugin
      2. Video blogs and photo blogs
        1. Exploring themes for video and photo sites
        2. Getting plugins for video and photo sites
      3. Social networks
        1. Installing a social network
        2. Designing your social network
        3. Extending the functionality
      4. Introducing custom post types
        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
      5. Summary
    20. 13. Administrating WordPress
      1. System requirements
      2. Enabling permalinks
      3. The importance of backing up
        1. Easy, quick, and frequent content backups
        2. Backing up everything
        3. Getting a managed solution
      4. Upgrading WordPress
        1. Steps for upgrading
          1. Backing up your database
          2. Backing up your WordPress files
          3. Running the WordPress upgrade feature
          4. Updating permalinks and .htaccess
          5. Installing updated plugins and themes
      5. Migrating or restoring a WordPress website
      6. Acting in case of a site crash
      7. Setting file permissions
        1. Explaining file permissions
        2. Permissions for WordPress
        3. How to set permissions
      8. Troubleshooting
        1. Troubleshooting during installation
          1. Headers already sent
          2. Page comes with only PHP code
          3. Cannot connect to the MySQL database
        2. Basic troubleshooting
          1. Cannot see posts
          2. I don't receive the e-mailed passwords
      9. Tips for theme development
        1. Template tags
        2. Class styles generated by WordPress
        3. Learning more
      10. Summary
    21. Index