Digging Into WordPress

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Over 400 Pages of Practical Information There is much to learn about the World s most popular publishing platform. From your first steps of learning about WordPress all the way through maintaining a site throughout the years, this book is packed with truly practical information. Beautiful Custom Design Design-wise, Digging into WordPress is a beautiful book: every page of the book is printed with stunning digital-color precision on gloss-finish paper, with each of its eight 12 chapters color-coded to provide quick and easy navigation. With its large, clear typography, each page is easy on the eyes and easy to read. Spiral Bound! How many tech books do you wish would JUST FLIPPING ?!@!*! STAY FLAT while you are trying to reference them while at the computer. Lots of Code Samples We go into depth about the anatomy of a WordPress theme. How they work, and how to write the code you need to do the things you want. This means real code that you can sink your teeth into, as well as copy and paste. Beyond theme building, we introduce many tricks your functions.php file can pull off and show you ways to increase performance and security through HTAccess. Note about PDF and exclusive themes when you purchase the printed version directly through our site, DigWP.com, we are able to verify your purchase and set you up with access to the DiW Members Area, where you may download the PDF version, exclusive themes and free lifetime updates at your convenience. Unfortunately Amazon provides no way of verifying customer purchases, so if you buy our book through Amazon, it's book only -- no PDF, updates, themes, or extras. Visit the site for more info! To learn more about Digging into WordPress, just go to DigWP.com/book for all the action.

Author(s): Chris Coyier and Jeff Starr
Edition: v 3.01
Year: 2009

Language: English
Pages: 446

1.1.2 Why WordPress is Amazing......Page 23
1.1.4 How to Implement Advanced Functionality......Page 24
1.1.5 How to Optimize and Secure WordPress......Page 25
1.2.1 So, You’ve Never Heard of WordPress......Page 26
1.2.3 Powerful, Flexible and Extensible......Page 28
1.3.3 The WordPress Database......Page 29
1.4.2 A Domain Name......Page 31
1.4.3 Web Host / Server......Page 32
1.4.5 FTP Program......Page 33
2.1.2 Where To Install?......Page 37
2.1.3 Checking Default Performance
and Proper Functionality......Page 38
2.2.3 Go Look At It!......Page 39
2.3.1 Permalinks: Your URL Structure......Page 40
2.3.2 HTAccess......Page 41
2.3.3 Which Style of Permalinks?......Page 42
2.3.5 SEO Consideration: Mind Your Post “Slugs”......Page 43
2.4.1 Categories and Tags......Page 44
2.4.3 Use Only One Category Per Post......Page 46
2.4.6 You Don’t Need to Use Them At All......Page 47
2.4.7 Custom Taxonomies......Page 48
2.5.2 Add a New Account for Yourself......Page 51
2.6.1 Choosing the Perfect Theme......Page 53
2.6.2 Where to Find Awesome Themes......Page 54
2.6.4 Key Things to Look For in a Theme......Page 55
2.7.2 Installing and Activating Plugins......Page 58
2.7.3 Difference Between Disabling and Uninstalling......Page 59
2.7.4 Recommended Plugins......Page 60
3.1.2 Every Theme is Different......Page 65
3.1.3 Commonly Used Theme Files......Page 67
3.2.1 Understanding Different Page Views......Page 68
3.2.3 Single Views are for Posts......Page 69
3.2.5 How WordPress Decides which File
to use for Rendering the View......Page 70
3.3.2 The DOCTYPE and HTML Attributes......Page 72
3.3.4 The Title......Page 73
3.3.5 Link Elements......Page 75
3.3.7 Template Tags......Page 78
3.4.2 The Loop in Plain English......Page 82
3.4.3 The Loop Just Knows.........Page 83
3.4.4 Some Common “Loop Only” Functions......Page 84
3.5.2 The comments.php File......Page 85
3.5.3 Selective Inclusion for Different Views......Page 86
3.6.2 Purpose and Placement......Page 88
3.6.3 Popular Sidebar Functions 75......Page 9
3.6.4 Widgets, Widgets, Widgets......Page 92
3.7.3 Alternatives to WordPress Search......Page 93
3.8.2 The wp_footer() Hook......Page 95
3.9.2 Functions are for Specific Themes......Page 97
3.9.3 Advantage Over Core Hacks......Page 98
4.1.1 Customizing the Loop......Page 101
4.1.2 The Loop Doesn't Care About Markup......Page 102
4.1.3 The Power of query_posts......Page 104
4.1.5 Excluding Specific Categories......Page 105
4.1.8 Using Multiple Loops......Page 106
4.2.1 Sidebars and Footers......Page 110
4.3.1 Menus, Archive Lists & Tag Clouds......Page 113
4.3.2 Page-Specific Menu Styles......Page 115
4.3.3 Create the Perfect Archives Page......Page 117
4.4.1 Side Content and Useful Menu Items......Page 119
4.4.2 Displaying Recent Comments......Page 120
4.4.3 Displaying Recent Posts......Page 121
4.4.4. Listing Popular Posts......Page 122
4.4.5 Listing Recently Modified Posts......Page 123
4.4.7 Import and Display Twitter......Page 124
4.4.9 Import and Display Other Content......Page 128
4.5.1 Creating and Using Child Themes......Page 131
4.6.1 Styling Your Theme......Page 132
4.6.2 Different Inclusion Methods......Page 133
4.6.3 To Reset or Not To Reset?......Page 134
4.7.1 Using Multiple Themes......Page 137
4.8.1 Widgetizing......Page 140
5.1.3 A Plugin for (Almost) Everything......Page 145
5.1.4 Do You Need a Plugin?......Page 149
5.1.5 Choosing the Perfect Plugin......Page 150
5.2.3 Keep Plugins Up-To-Date......Page 152
5.2.4 Subscribe to Plugin Comment Threads......Page 153
5.2.6 Diagnosing Plugin Conflicts......Page 154
5.2.7 Disabling and Uninstalling Plugins......Page 155
5.3.2 Plugins vs. Theme Functions (via functions.php)......Page 159
5.3.4 Example #1: Easy Admin Buttons for Comments......Page 160
5.3.5 Example #2: Sitewide Shortcode Functionality......Page 161
5.3.6 Example #3: Transferring Plugins to functions.php......Page 163
5.3.7 Example #4: Transferring Functions to a Plugin......Page 164
5.4.2 Functions Within Theme Files......Page 165
5.4.3 Hacking the WordPress Core......Page 167
5.5.2 CMS Features Built Into WordPress......Page 168
5.5.3 Working With Custom Fields......Page 169
5.5.4 Users, Roles and Permissions......Page 174
5.5.5 Categorizing, Tagging, and Custom Taxonomies......Page 175
5.5.6 Page Templates......Page 176
5.5.7 Page, Category, and Tag Hierarchies......Page 177
5.5.8 Dynamic Menus......Page 179
5.6.2 CMS-Related Plugins......Page 180
5.6.3 Using WordPress as a Forum......Page 185
5.6.4 Integration with Third-Party Forum Applications......Page 186
5.6.5 Multiple Blogs with WordPress MU......Page 187
6.1.3 Dynamic Publishing and Content Distribution......Page 191
6.2.1 Different Types of WordPress Feeds......Page 192
6.2.3 Comments Feed......Page 194
6.2.4 Individual Post Comments Feed......Page 195
6.2.6 Other Feed Types......Page 196
6.3.1 Feed Configurations
and Formats......Page 197
6.3.2 Full Feeds......Page 199
6.3.4 Number of Posts......Page 200
6.3.5 WordPress Feed Formats......Page 201
6.4.2 Benefits of Using FeedBurner......Page 204
6.4.3 Setting Up and Configuring a FeedBurner Account......Page 205
6.4.4 Redirecting to FeedBurner via Plugin......Page 206
6.4.5 Redirecting to FeedBurner via HTAccess......Page 207
6.4.6 Redirecting to FeedBurner via PHP......Page 209
6.5.1 Tracking and Displaying
Feed Statistics......Page 210
6.5.3 Displaying FeedBurner Statistics......Page 211
6.5.4 Alternatives to FeedBurner......Page 213
6.6.2 Formatting Feed Images......Page 215
6.6.3 Adding a Custom Feed Image......Page 218
6.6.4 Include Comments in Feeds......Page 219
6.6.5 Creating Custom Feeds......Page 221
6.6.7 Styling Feeds......Page 226
6.6.8 Removing the WordPress Version Number......Page 227
6.6.9 Disable and Redirect Unwanted Feed Formats......Page 228
6.6.10 Insert Custom Content into Feeds......Page 229
6.6.11 Importing and Displaying External Feeds......Page 231
6.6.12 Buffer Period After Posting......Page 233
6.6.13 Protecting Feed Content......Page 234
6.7.1 Validating Feeds......Page 236
6.7.2 Diagnosing and Troubleshooting Errors......Page 237
7.1.2 Welcome to the WordPress Comments Area......Page 241
7.1.4 Comments, Pingbacks and Trackbacks......Page 242
7.1.5 Anatomy of the WordPress
Comment Area......Page 243
7.2.2 WordPress Main Comments Feed......Page 247
7.2.3 Post-Specific Comment Feeds......Page 248
7.3.1 Formatting the Comments Area......Page 249
7.3.2 Using wp_list_comments() or a Custom Loop?......Page 251
7.3.3 Implementing Paged Comments......Page 257
7.3.4 Implementing Threaded Comments......Page 259
7.3.5 Separating Comments, Pingbacks and Trackbacks......Page 262
7.3.6 Eliminating Pingbacks and Trackbacks......Page 266
7.3.7 Control Comments, Pingbacks and Trackbacks
Directly with the Database......Page 268
7.4.2 Numbering Comments Globally and Locally......Page 270
7.4.3 Alternating Comment Styles......Page 274
7.4.4 Custom Styles for Authors
and Members......Page 275
7.4.5 Styling Comments with Gravatars......Page 277
7.4.6 Add a "Your comment is awaiting moderation" Message......Page 280
7.4.7 Moderation Links in the Theme Itself......Page 281
7.4.8 Display Comment, Ping/Trackback Counts......Page 282
7.5.2 Setup Comment Previews......Page 283
7.5.3 Rich-Text Editors for Comments......Page 284
7.5.4 Adding Comment Quicktags......Page 286
7.6.1 Controlling Comment Spam......Page 288
7.6.2 WordPress' Built-In Anti-Spam Functionality......Page 289
7.6.3 Anti-Spam Plugins for WordPress......Page 290
7.7.1 Other Considerations & Techniques......Page 292
7.7.2 Enhancing and Encouraging Comments......Page 293
7.7.3 "nofollow" Links......Page 294
7.7.4 Integrating Twitter......Page 296
8.1.2 Strong Focus on Content......Page 301
8.1.4 Duplicate Content Issues......Page 302
8.2.1 Controlling Duplicate Content......Page 303
8.2.2 Meta noindex and nofollow Tags......Page 304
8.2.3 Nofollow Attributes......Page 307
8.2.4 Robots.txt Directives......Page 309
8.3.1 Optimizing Permalink Structure 302......Page 17
8.3.2 Default URLs vs. "Pretty" Permalinks......Page 316
8.3.3 Keep Permalinks Short......Page 317
8.3.4 Maximize Permalink Keywords......Page 320
8.4.2 Content, Content, Content......Page 321
8.4.3 Detecting Duplicate Content......Page 322
8.4.4 Optimizing Heading Elements......Page 323
8.4.5 Optimizing Title Tags......Page 324
8.4.6 The nofollow Wars......Page 326
8.4.7 Fixing Broken Links......Page 327
8.4.8 Using a Sitemap......Page 328
8.4.9 Other SEO tips......Page 329
8.4.10 SEO-Related plugins......Page 331
8.5.2 Statistical WordPress Plugins......Page 332
8.5.4 Google Analytics......Page 334
8.5.5 Other Metrics......Page 335
8.6.1 Closing Thoughts on SEO......Page 336
9.1.2 Securing WordPress......Page 339
9.1.3 Setting Secure File Permissions......Page 340
9.1.4 Disabling Directory Views......Page 342
9.1.5 Forbid Access to Sensitive Files......Page 344
9.1.6 Neuter the Default "admin" User Account......Page 355
9.1.8 Securing Your Database......Page 356
9.1.10 Prevent Hotlinking......Page 359
9.1.11 More WordPress Security Help......Page 360
9.2.1 Stopping Comment Spam......Page 362
9.2.2 Configuring Your WordPress Admin Options......Page 363
9.2.5 Disabling Comments on Old Posts......Page 364
9.2.6 Deny Access to No-Referrer Requests......Page 365
9.3.2 Alex King's 404 Notifier Plugin......Page 366
9.3.4 Other Error-Logging Techniques......Page 367
9.3.5 Online Monitoring Services......Page 368
9.4.1 Staying Current with WordPress......Page 370
9.4.2 Updating WordPress......Page 371
9.4.3 Logging Changes......Page 372
9.4.4 Backing Up Your Database and Files......Page 373
9.5.2 Content and File Caching......Page 374
9.5.3 File Compression Methods......Page 376
9.5.4 Optimizing CSS and JavaScript......Page 377
9.5.5 Reducing the Number of HTTP Requests......Page 379
9.5.6 Plugin Maintenance......Page 383
9.5.7 Database Maintenance......Page 384
9.5.8 Other Optimization Techniques......Page 385
10.1.1 Everybody Loves Bonus Tricks 377 10.2.1 Add Author Bios to Single Posts 377 10.3.1 Adding a T......Page 20