Details

Professional WordPress


Professional WordPress

Design and Development
3. Aufl.

von: Brad Williams, David Damstra, Hal Stern

32,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 17.12.2014
ISBN/EAN: 9781118987186
Sprache: englisch
Anzahl Seiten: 512

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<b>The highest rated WordPress development and design book on the market is back with an all new third edition.</b> <p><i>Professional WordPress</i> is the only WordPress book targeted to developers, with advanced content that exploits the full functionality of the most popular CMS in the world. Fully updated to align with WordPress 4.1, this edition has updated examples with all new screenshots, and full exploration of additional tasks made possible by the latest tools and features. You will gain insight into real projects that currently use WordPress as an application framework, as well as the basic usage and functionality of the system from a developer's perspective. The book's key features include detailed information and real-world examples that illustrate the concepts and techniques at work, plus code downloads and examples accessible through the companion website. Written by practicing WordPress developers, the content of this edition focuses on real world application of WordPress concepts that extend beyond the current WordPress version.</p> <p>WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing, and has grown to be the largest self-hosted website platform in the world. This book helps you use WordPress efficiently, effectively, and professionally, with new ideas and expert perspectives on full system exploitation.</p> <ul> <li>Get up to speed on the new features in WordPress 4.1</li> <li>Learn cutting edge uses of WordPress, including real-world projects</li> <li>Discover how to migrate existing websites to WordPress</li> <li>Understand current best practices and tools in WordPress development</li> </ul> <p>WordPress was born out of a desire for an elegant, well-architected personal publishing system built on PHP and MySQL, and has evolved to be used as a full content management system through thousands of plugins, widgets, and themes. <i>Professional WordPress</i> is the essential developer's guide to this multifunctional system.</p>
<p>Introduction xxxi</p> <p><b>Chapter 1: First Post 1</b></p> <p>What is WordPress? 1</p> <p>Popularity of WordPress 3</p> <p>Current State 3</p> <p>Intersecting the Community 4</p> <p>WordPress and the GPL 5</p> <p>Content and Conversation 6</p> <p>WordPress as a Content Management System 6</p> <p>Creating Conversation 7</p> <p>Getting Started 7</p> <p>Hosting Options 8</p> <p>Do it Yourself Installation 9</p> <p>Installing WordPress Files 10</p> <p>Database Configuration 14</p> <p>Finishing Up 18</p> <p>First‐Time Administration 18</p> <p>First Post 20</p> <p>Summary 21</p> <p><b>Chapter 2: Code Overview 23</b></p> <p>Downloading 23</p> <p>Download Locations 23</p> <p>Available Formats 24</p> <p>Release Archive 24</p> <p>Directory and File Structure 25</p> <p>WordPress Configuration 26</p> <p>wp‐config.php File 26</p> <p>Advanced wp‐config.php Options 29</p> <p>.htaccess 35</p> <p>The .maintenance File 39</p> <p>wp‐content User Playground 40</p> <p>Plugins 40</p> <p>Themes 41</p> <p>Uploads and Media Directory 41</p> <p>Upgrade Directory 41</p> <p>Custom Directories 42</p> <p>Summary 42</p> <p><b>Chapter 3: Working with Wordpress Locally 43</b></p> <p>Benefits of Working Locally 43</p> <p>Typical Deployment Cycle 44</p> <p>Why So Much Process? 44</p> <p>Tools for Component Administration 46</p> <p>Getting Your Development Stack 46</p> <p>Adding WordPress to the Local Install 47</p> <p>Configuration Details 48</p> <p>Managing the Web Server Document Tree 49</p> <p>Enabling Debug Information 50</p> <p>Handling Local and Production Database 53</p> <p>Creating Virtual Local Server Names 53</p> <p>Local Theme and Plugin Development 56</p> <p>Virtual Machines 56</p> <p>Deploying Local Changes 57</p> <p>Summary 59</p> <p><b>Chapter 4: Tour of the Core 61</b></p> <p>What’s in the Core? 61</p> <p>Using the Core as a Reference 62</p> <p>Inline Documentation 63</p> <p>Finding Functions 64</p> <p>Exploring the Core 66</p> <p>Deprecated Functions 69</p> <p>WordPress Codex and Code Reference 70</p> <p>What is the Codex? 70</p> <p>Using the Codex 70</p> <p>Function Reference 72</p> <p>WordPress APIs 73</p> <p>Codex Controversy 75</p> <p>Code Reference 75</p> <p>Using the Code Reference 75</p> <p>Code Reference Details 76</p> <p>Codex Versus Code Reference 77</p> <p>Don’t Hack the Core! 77</p> <p>Why Not? 77</p> <p>Alternatives to Hacking the Core 78</p> <p>Summary 78</p> <p><b>Chapter 5: The Loop 79</b></p> <p>Understanding the Loop 80</p> <p>From Query Parameters to SQL 81</p> <p>Understanding Content in WordPress 82</p> <p>Putting the Loop in Context 82</p> <p>Flow of the Loop 83</p> <p>Template Tags 86</p> <p>Commonly Used Template Tags 86</p> <p>Tag Parameters 87</p> <p>Customizing the Loop 88</p> <p>Using the WP_Query Object 88</p> <p>Building a Custom Query 89</p> <p>Adding Paging to a Loop 92</p> <p>Using the pre_get_posts Hook 93</p> <p>Using query_posts( ) 94</p> <p>Using get_posts( ) 96</p> <p>Resetting a Query 96</p> <p>More Than One Loop 98</p> <p>Advanced Queries 99</p> <p>Global Variables 102</p> <p>Post Data 102</p> <p>Author Data 104</p> <p>User Data 104</p> <p>Environmental Data 105</p> <p>Global Variables or Template Tags? 106</p> <p>Working Outside the Loop 106</p> <p>Summary 109</p> <p><b>Chapter 6: Data Management 111</b></p> <p>Database Schema 111</p> <p>Table Details 113</p> <p>WordPress Content Tables 114</p> <p>WordPress Taxonomy Tables 115</p> <p>WordPress Database Class 117</p> <p>Simple Database Queries 117</p> <p>Complex Database Operations 119</p> <p>Dealing with Errors 121</p> <p>Direct Database Manipulation 123</p> <p>Summary 126</p> <p><b>Chapter 7: Custom Post Types, Custom Taxonomies, and Metadata 127</b></p> <p>Understanding Data in WordPress 127</p> <p>What is a Custom Post Type? 128</p> <p>Register Custom Post Types 128</p> <p>Setting Post Type Labels 133</p> <p>Working with Custom Post Types 135</p> <p>Custom Post Type Template Files 136</p> <p>Special Post Type Functions 136</p> <p>WordPress Taxonomy 138</p> <p>Default Taxonomies 138</p> <p>Taxonomy Table Structure 139</p> <p>Understanding Taxonomy Relationships 139</p> <p>Building Your Own Taxonomies 140</p> <p>Custom Taxonomy Overview 140</p> <p>Creating Custom Taxonomies 140</p> <p>Setting Custom Taxonomy Labels 144</p> <p>Using Your Custom Taxonomy 145</p> <p>Metadata 146</p> <p>What is Metadata? 147</p> <p>Adding Metadata 147</p> <p>Updating Metadata 148</p> <p>Deleting Metadata 148</p> <p>Retrieving Metadata 149</p> <p>Community Projects 150</p> <p>Summary 151</p> <p><b>Chapter 8: Plugin Development 153</b></p> <p>Plugin Packaging 154</p> <p>Creating a Plugin File 154</p> <p>Creating the Plugin Header 154</p> <p>Plugin License 155</p> <p>Activating and Deactivating Functions 156</p> <p>Internationalization 157</p> <p>Determining Paths 159</p> <p>Local Paths 160</p> <p>URL Paths 160</p> <p>Plugin Security 161</p> <p>Nonces 161</p> <p>Data Validation and Sanitization 163</p> <p>Know Your Hooks: Actions and Filters 166</p> <p>Actions and Filters 166</p> <p>Popular Filter Hooks 168</p> <p>Popular Action Hooks 169</p> <p>Plugin Settings 171</p> <p>Saving Plugin Options 171</p> <p>Array of Options 172</p> <p>Creating a Menu and Submenus 173</p> <p>Creating a Top‐Level Menu 173</p> <p>Adding to an Existing Menu 175</p> <p>Creating an Options Page 176</p> <p>WordPress Integration 186</p> <p>Creating a Meta Box 186</p> <p>Shortcodes 191</p> <p>Creating a Widget 192</p> <p>Creating a Dashboard Widget 197</p> <p>Creating Custom Tables 197</p> <p>Uninstalling Your Plugin 200</p> <p>Creating a Plugin Example 201</p> <p>Publishing to the Plugin Directory 222</p> <p>Restrictions 222</p> <p>Submitting Your Plugin 223</p> <p>Creating a readme.txt File 223</p> <p>Setting Up SVN 226</p> <p>Publishing to the Plugin Directory 228</p> <p>Releasing a New Version 228</p> <p>Plugin Assets 229</p> <p>Summary 230</p> <p><b>Chapter 9: Theme Development 231</b></p> <p>Why Use a Theme? 231</p> <p>Installing a Theme 232</p> <p>FTP Installation 233</p> <p>Theme Installer 233</p> <p>What is a Theme? 234</p> <p>Template Files 234</p> <p>CSS 234</p> <p>Images and Assets 235</p> <p>Plugins 235</p> <p>Creating Your Own Theme 235</p> <p>Project Themes vs. Child Themes 235</p> <p>What to Look for in a Starter Theme 236</p> <p>Creating Your Own Theme: Getting Started 237</p> <p>Essential File: Style.css 238</p> <p>Showing Your Content: Index.php 239</p> <p>Showing Your Content in Different Ways: Index.php 241</p> <p>Creating Your Own Theme: DRY 241</p> <p>Header.php 241</p> <p>Footer.php 243</p> <p>Sidebar.php 243</p> <p>Deviations from the Norm: Conditional Tags 244</p> <p>Creating Your Own Theme: Content Display 245</p> <p>Customizing Your Homepage: Front‐Page.php 246</p> <p>Show Your Older Posts by Date: Archive.php 249</p> <p>Showing Only One Category: Category.php 250</p> <p>Show Posts of a Specific Tag: Tag.php 252</p> <p>Other Archival Templates 253</p> <p>How to Show a Single Post: Single.php 253</p> <p>Display a Page: Page.php 255</p> <p>Display Post Attachments: Attachment.php 255</p> <p>Display Custom Post Types 256</p> <p>Template Hierarchy 256</p> <p>Creating Your Own Theme: Additional Files 258</p> <p>Handling 404 Errors: 404.php 258</p> <p>Author.php 259</p> <p>Comments.php 260</p> <p>Adding Functionality to Your Templates: Functions.php 261</p> <p>Search.php 264</p> <p>SearchForm.php 265</p> <p>Other Files 266</p> <p>Custom Page Templates 266</p> <p>When to Use Custom Page Templates 267</p> <p>How to Use Custom Page Templates 268</p> <p>Stock Twenty Fourteen Page Templates 269</p> <p>Other Theme Enhancements 269</p> <p>Menu Management 269</p> <p>Widget Areas 271</p> <p>Post Formats 272</p> <p>Theme Settings 274</p> <p>Theme Customizer 274</p> <p>Theme Hierarchy and Child Themes 275</p> <p>Premium Themes and Other Theme Frameworks 279</p> <p>Underscores (_s) Theme 280</p> <p>Bones Theme 280</p> <p>Carrington Core Theme 280</p> <p>Genesis Theme 280</p> <p>Hybrid Core Theme 281</p> <p>Others Theme 281</p> <p>Summary 281</p> <p><b>Chapter 10: Multisite 283</b></p> <p>What is Multisite? 283</p> <p>Multisite Terminology 284</p> <p>Differences 284</p> <p>Advantages of Multisite 285</p> <p>Enabling Multisite 285</p> <p>Working in a Network 286</p> <p>Network Admin 287</p> <p>Creating and Managing Sites 287</p> <p>Working with Users and Roles 288</p> <p>Themes and Plugins 288</p> <p>Settings 289</p> <p>Domain Mapping 289</p> <p>Coding for Multisite 290</p> <p>Blog ID 290</p> <p>Common Functions 290</p> <p>Switching and Restoring Sites 292</p> <p>Creating a New Site 295</p> <p>Network Admin Menus 300</p> <p>Multisite Options 301</p> <p>Users in a Network 308</p> <p>Super Admins 310</p> <p>Network Stats 311</p> <p>Large Networks 312</p> <p>Multisite Database Schema 312</p> <p>Multisite‐Specific Tables 312</p> <p>Site‐Specific Tables 313</p> <p>Summary 314</p> <p><b>Chapter 11: Migrating to Wordpress 315</b></p> <p>Understanding the Process 316</p> <p>Content Sources 316</p> <p>Migration Checklist 317</p> <p>Site Preparation 318</p> <p>Content Identification 318</p> <p>Migrating Text Documents 319</p> <p>Built-In WordPress Import Tools 319</p> <p>Building a Custom Import Script 321</p> <p>Media Migration 329</p> <p>Moving Metadata 330</p> <p>Moving Authors and Users 330</p> <p>Theme and Presentation 331</p> <p>Unique Functionality 331</p> <p>Cleaning Up 331</p> <p>Manual Fine-Tuning 332</p> <p>Import Limitations 332</p> <p>Updating URLs 332</p> <p>Redirection 333</p> <p>Launching 334</p> <p>WP-CLI 334</p> <p>What is WP-CLI? 334</p> <p>Installing WP-CLI 335</p> <p>Migration Example 335</p> <p>Summary 337</p> <p><b>Chapter 12: Crafting a User Experience 339</b></p> <p>User Experience Principles 339</p> <p>Consistent Navigation 340</p> <p>Visual Design Elements 342</p> <p>Making Content Easy to Find 343</p> <p>Site Load Times 344</p> <p>Using JavaScript 345</p> <p>Usability and Usability Testing 346</p> <p>Structuring Your Information 347</p> <p>Getting Your Site Found 349</p> <p>Duplicate Content 351</p> <p>Trackbacks and Pings 353</p> <p>How Web Standards Get Your Data Discovered 354</p> <p>Semantic HTML 354</p> <p>Valid HTML 356</p> <p>Microformats 357</p> <p>HTML5 359</p> <p>CSS3 361</p> <p>Searching Your Own Site 361</p> <p>Weaknesses of the Default Search 362</p> <p>Alternatives and Plugins to Help 363</p> <p>Mobile Access and Responsive Web Design 364</p> <p>Leave it Alone 365</p> <p>Lightweight Mobile 365</p> <p>Responsive Design 366</p> <p>Summary 367</p> <p><b>Chapter 13: Securing Wordpress 369</b></p> <p>Securing Your WordPress Site 369</p> <p>Staying Up‐to‐Date 370</p> <p>Hiding WordPress Version Information 371</p> <p>Never Use the Admin Username 371</p> <p>Limit Login Attempts 371</p> <p>Using Good Passwords 371</p> <p>Changing Your Table Prefix 372</p> <p>Moving Your Configuration File 372</p> <p>Moving Your Content Directory 372</p> <p>Using the Security Key Feature 373</p> <p>Forcing SSL on Login and Admin 374</p> <p>Apache Permissions 374</p> <p>MySQL Credentials 375</p> <p>Using WordPress Roles 375</p> <p>Subscriber Role 375</p> <p>Contributor Role 376</p> <p>Author Role 376</p> <p>Editor Role 376</p> <p>Administrator Role 376</p> <p>Super Admin Role 377</p> <p>Role Overview 377</p> <p>Extending Roles 378</p> <p>Recommended Security Plugins 378</p> <p>BulletProof Security 378</p> <p>WP‐Security Scan 378</p> <p>WordFence Security 379</p> <p>Summary 379</p> <p><b>Chapter 14: Application Framework 381</b></p> <p>What is an Application Framework? 381</p> <p>WordPress as an Application Framework 382</p> <p>User Management 382</p> <p>Template Engine 384</p> <p>CRUD 384</p> <p>Caching 386</p> <p>Friendly URLs 387</p> <p>External APIs 388</p> <p>Uploads and Media Management 388</p> <p>Scheduled Tasks 389</p> <p>Flexibility 390</p> <p>Summary 390</p> <p><b>Chapter 15: Wordpress in the Real World 391</b></p> <p>Is WordPress the Right Tool? 391</p> <p>When WordPress is Not the Right Tool 393</p> <p>Defining Content Management 394</p> <p>Workflow and Delegation 395</p> <p>User Roles and Delegation 395</p> <p>Workflow 396</p> <p>Content Organization 398</p> <p>Theme and Widget Support 399</p> <p>Homepages 400</p> <p>Featured Content Pages 401</p> <p>Content Hierarchy 403</p> <p>Interactivity Features 404</p> <p>Forums 405</p> <p>Forms 405</p> <p>E‐Commerce 405</p> <p>Scalability 406</p> <p>Performance Tuning 406</p> <p>Database Optimizations 408</p> <p>Regular Database Maintenance 408</p> <p>Hardware Scaling 409</p> <p>Statistics Counters 411</p> <p>AWStats 411</p> <p>Google Analytics 412</p> <p>JetPack by WordPress.com 413</p> <p>Cache Management 413</p> <p>WordPress System Complexity 414</p> <p>Web Server Caching and Optimization 416</p> <p>WordPress Object Caching 417</p> <p>Transient Caches 418</p> <p>MySQL Query Cache 420</p> <p>Load Balancing Your WordPress Site 421</p> <p>Dealing with Spam 423</p> <p>Comment Moderation and CAPTCHAs 423</p> <p>Automating Spam Detection 424</p> <p>Other Content Management Systems 425</p> <p>WordPress Integration 425</p> <p>Where Not to Use WordPress 426</p> <p>Summary 427</p> <p><b>Chapter 16: Wordpress Developer Community 429</b></p> <p>Contributing to WordPress 429</p> <p>Understanding Trac 430</p> <p>Working on the Core 433</p> <p>Submitting Plugins and Themes 434</p> <p>Documentation 434</p> <p>Sister Projects 435</p> <p>BuddyPress 435</p> <p>bbPress 435</p> <p>Future Projects 435</p> <p>Resources 436</p> <p>Codex 436</p> <p>Handbooks 436</p> <p>Support Forums 436</p> <p>WordPress Chat 437</p> <p>Mailing Lists 438</p> <p>External Resources 439</p> <p>WordCamp and Meetups 440</p> <p>WordPress.TV 440</p> <p>Theme/Plugin Directories 440</p> <p>WordPress Ideas 440</p> <p>WordPress Development Updates 440</p> <p>Make WordPress.org 441</p> <p>WordPress Podcasts 441</p> <p>WordPress News Sites 442</p> <p>Summary 443</p> <p>Index 445</p>
<p><b>Brad Williams</b> is the cofounder of WebDevStudios.com and AppPresser.com, a cohost of the DradCast WordPress podcast, and the coauthor of Professional WordPress Plugin Development. <p><b>David Damstra</b> is Vice President of Marketing Services and Creative Director for CU*Answers where his team of developers empowers clients with WordPress. <p><b>Hal Stern</b> is an IT executive with a major healthcare company. He is coauthor of <i>Blueprints for High Availability</i>, also from Wiley. <p><b>Wrox Professional guides</b> are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.
<p><b>Master WordPress development with this top-rated guide</b> <p><i>Professional WordPress Design and Development</i> has been a favorite resource of developers since the first edition in 2010. Now fully updated for the current WordPress release, this 3<sup>rd</sup> edition offers new coverage of migrating websites to WordPress, the latest tools, and cutting edge uses for WordPress. You'll gain insight into real projects that currently use WordPress as an application framework, as well as the basic usage and functionality of the system from a developer's perspective. Detailed information and real-world examples will help you use the world's largest self-hosted website platform efficiently, effectively, and professionally. <p><i>Professional WordPress Design and Development</i> <ul> <li>Clearly explains and demonstrates timeless WordPress fundamentals, no matter what version</li> <li>Gets you quickly up to speed on the new tools and features of WordPress</li> <li>Explores new uses for WordPress, illustrated with real-world projects</li> <li>Demonstrates how to efficiently migrate existing websites to WordPress</li> <li>Presents new ideas and expert perspectives on full system exploitation</li> <li>Offers techniques for crafting the best user experience, securing WordPress, managing data, and determining when WordPress is the right tool</li> <li>Provides everything you need to understand, develop, and deploy successful WordPress sites</li> </ul> <p><b>wrox.com</b> <p><b>Programmer Forums</b> <p>Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world. <p><b>Code Downloads</b> <p>Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use. <p><b>Read More</b> <p>Find articles, e-books, sample chapters, and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.

Diese Produkte könnten Sie auch interessieren:

Professional WordPress Plugin Development
Professional WordPress Plugin Development
von: Brad Williams, Justin Tadlock, John James Jacoby
PDF ebook
32,99 €
Internet für Senioren für Dummies
Internet für Senioren für Dummies
von: Sandra Weber
EPUB ebook
17,99 €
Facebook Marketing
Facebook Marketing
von: Chris Treadaway, Mari Smith
PDF ebook
23,99 €