Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Professional WordPress
  • Table Of Contents Toc
Professional WordPress

Professional WordPress - Third Edition

By : Brad Williams, David Damstra, Hal Stern
close
close
Professional WordPress

Professional WordPress

By: Brad Williams, David Damstra, Hal Stern

Overview of this book

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 will help you to use WordPress efficiently, effectively, and professionally, with new ideas and expert perspectives on full system exploitation. This book starts with an overview of the WordPress system, its major functional elements, and a top-level description of what happens when a WordPress generated web page is displayed. Next, you’ll dive into the core of WordPress, studying internal code flow and data structures. You’ll also learn how to extend WordPress through plugins and customize them via themes. The last section of this book combines a developer view of user experience and optimization with the deployer requirements for performance, security, and enterprise integration. By the end of this book, you’ll have enough knowledge to develop and deploy successful WordPress sites. By the end of this book, you’ll have enough knowledge to develop and deploy successful WordPress sites.
Table of Contents (26 chapters)
close
close
18
TITLEPAGE
19
COPYRIGHT
20
DEDICATION
21
ABOUT THE AUTHORS
22
ABOUT THE TECHNICAL EDITOR
23
CREDITS
24
ACKNOWLEDGMENTS
25
ADVERT
26
END USER LICENSE AGREEMENT

CUSTOMIZING THE LOOP

The opening discussion of Loop flow of control mentioned that the main workhorse for data selection is the get_posts() method of the WP_Query object. In most cases, if you want to build a custom Loop, you’ll build your own WP_Query object and reference it explicitly. Alternatively, you can use the lower-level query_posts() and get_posts() functions (not to be confused with the methods within the WP_Query object of the same name) to manipulate the output of the default query that was passed into your Loop. Both query_posts() and get_posts() use the WP_Query class to retrieve content. The final method you’ll examine is the pre_get_posts hook. This hook is called after the query variable object is created but before the actual query is run. You’ll look at the various approaches and discuss how and where you should—and shouldn’t—use them, but let’s start with a discussion of how you build a custom query object.

Using...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Professional WordPress
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon