Professional WordPress. Design and Development
Реклама. ООО «ЛитРес», ИНН: 7719571260.
Оглавление
Brad Williams. Professional WordPress. Design and Development
INTRODUCTION
WHO IS THIS BOOK FOR?
HOW THIS BOOK IS STRUCTURED
WHAT YOU NEED TO USE THIS BOOK
CONVENTIONS
SOURCE CODE
ERRATA
P2P.WROX.COM
1. First Post
WHAT IS WORDPRESS?
POPULARITY OF WORDPRESS
CONTENT AND CONVERSATION
GETTING STARTED
FINISHING UP
SUMMARY
2. Code Overview
DOWNLOADING
DIRECTORY AND FILE STRUCTURE
WORDPRESS CONFIGURATION
WP-CONTENT USER PLAYGROUND
SUMMARY
3. Working with WordPress Locally
BENEFITS OF WORKING LOCALLY
TOOLS FOR COMPONENT ADMINISTRATION
CONFIGURATION DETAILS
VIRTUAL MACHINES
DEPLOYING LOCAL CHANGES
SUMMARY
4. Tour of the Core
WHAT’S IN THE CORE?
USING THE CORE AS A REFERENCE
WORDPRESS CODEX AND CODE REFERENCE
DON’T HACK THE CORE!
SUMMARY
5. The Loop
UNDERSTANDING THE LOOP
TEMPLATE TAGS
CUSTOMIZING THE LOOP
GLOBAL VARIABLES
WORKING OUTSIDE THE LOOP
SUMMARY
6. Data Management
DATABASE SCHEMA
TABLE DETAILS
WORDPRESS DATABASE CLASS
DIRECT DATABASE MANIPULATION
SUMMARY
7. Custom Post Types, Custom Taxonomies, and Metadata
UNDERSTANDING DATA IN WORDPRESS
WORDPRESS TAXONOMY
BUILDING YOUR OWN TAXONOMIES
METADATA
COMMUNITY PROJECTS
SUMMARY
8. Plugin Development
PLUGIN PACKAGING
PLUGIN SECURITY
KNOW YOUR HOOKS: ACTIONS AND FILTERS
PLUGIN SETTINGS
WORDPRESS INTEGRATION
CREATING A PLUGIN EXAMPLE
PUBLISHING TO THE PLUGIN DIRECTORY
SUMMARY
9. Theme Development
WHY USE A THEME?
INSTALLING A THEME
WHAT IS A THEME?
CREATING YOUR OWN THEME
CREATING YOUR OWN THEME: GETTING STARTED
CREATING YOUR OWN THEME: DRY
CREATING YOUR OWN THEME: CONTENT DISPLAY
CREATING YOUR OWN THEME: ADDITIONAL FILES
CUSTOM PAGE TEMPLATES
OTHER THEME ENHANCEMENTS
THEME HIERARCHY AND CHILD THEMES
PREMIUM THEMES AND OTHER THEME FRAMEWORKS
SUMMARY
10. Multisite
WHAT IS MULTISITE?
WORKING IN A NETWORK
CODING FOR MULTISITE
MULTISITE DATABASE SCHEMA
SUMMARY
11. Migrating to WordPress
UNDERSTANDING THE PROCESS
CONTENT IDENTIFICATION
MEDIA MIGRATION
MOVING METADATA
MOVING AUTHORS AND USERS
THEME AND PRESENTATION
UNIQUE FUNCTIONALITY
CLEANING UP
LAUNCHING
WP-CLI
MIGRATION EXAMPLE
SUMMARY
12. Crafting a User Experience
USER EXPERIENCE PRINCIPLES
USABILITY AND USABILITY TESTING
STRUCTURING YOUR INFORMATION
GETTING YOUR SITE FOUND
HOW WEB STANDARDS GET YOUR DATA DISCOVERED
SEARCHING YOUR OWN SITE
MOBILE ACCESS AND RESPONSIVE WEB DESIGN
SUMMARY
13. Securing WordPress
SECURING YOUR WORDPRESS SITE
USING WORDPRESS ROLES
RECOMMENDED SECURITY PLUGINS
SUMMARY
14. Application Framework
WHAT IS AN APPLICATION FRAMEWORK?
SUMMARY
15. WordPress in the Real World
IS WORDPRESS THE RIGHT TOOL?
WHEN WORDPRESS IS NOT THE RIGHT TOOL
DEFINING CONTENT MANAGEMENT
WORKFLOW AND DELEGATION
CONTENT ORGANIZATION
INTERACTIVITY FEATURES
SCALABILITY
STATISTICS COUNTERS
CACHE MANAGEMENT
LOAD BALANCING YOUR WORDPRESS SITE
DEALING WITH SPAM
OTHER CONTENT MANAGEMENT SYSTEMS
SUMMARY
16. WordPress Developer Community
CONTRIBUTING TO WORDPRESS
SISTER PROJECTS
RESOURCES
SUMMARY
ABOUT THE AUTHORS
ABOUT THE TECHNICAL EDITOR
CREDITS
ACKNOWLEDGMENTS
WILEY END USER LICENSE AGREEMENT
Отрывок из книги
DEAR READER, thank you for picking up this book. WordPress is the most popular self-hosted website software in use today. It is available as an open source project, licensed under the GPL, and is built largely on top of the MySQL database and PHP programming language. Any server environment that supports that simple combination can run WordPress, making it remarkably portable as well as simple to install and operate. You don’t need to be a systems administrator, developer, HTML expert, or design aesthete to use WordPress. On the other hand, because WordPress has been developed using a powerful set of Internet standard platforms, it can be extended and tailored for a wide variety of applications. WordPress is the publishing mechanism underneath millions of individual blog voices and the engine that powers high-volume, high-profile sites such as CNN’s websites and blogs. It was designed for anyone comfortable navigating a browser, but is accessible to web designers and developers as well.
Given that range of applications and capabilities, it can prove hard to know where to start if you want to make use of the power of WordPress for your specific purposes. Should you first study the database models and relationships of content and metadata, or the presentation mechanics that generate the HTML output? This book was designed for readers to develop a knowledge of WordPress from the inside out, focusing on the internal structure and flow of the core code as well as the data model on which that code operates. Knowing how something works often makes you more adept at working with it, extending it, or fixing it when it breaks. Just as a race car driver benefits from a fundamental knowledge of combustion engines, aerodynamics, and the mechanics of automobile suspension, someone driving WordPress through its full dynamic range will be significantly more adept once acquainted with the underlying software physics.
.....
If you want to have multiple WordPress sites on the same server, you can share a single MySQL database instance for all of them provided you configure WordPress to distinguish the MySQL database table names within the MySQL database. It is a simple configuration option that is covered in the next section, and it highlights the distinction between multiple sets of tables in a database and multiple databases for distinct applications.
Once you have secured the necessary foundation, it is time to get the code up and running. Even if you are using a hosting provider that installs MySQL and WordPress for you, it is worth knowing how the server-side components interact in case you need to track down a problem when you’re deep in plugin development.
.....