Understanding the WordPress Object Cache can help improve the performance of your project. Here’s a quick primer on how it works.
Search: “wp_query” (Page 19 of 29)
We found 145 results for your search.
For as much as I talk about writing code that conforms to the WordPress Coding Standards and for using tools such as PHP CodeSniffer, there are times where I’ve found that you need to silence the errors for the sake of something you’re trying to do.
Case in point: WordPress uses global variables to maintain certain data structures. As per the coding standards, you should not change the values of global variables.
As a rule of thumb, this is true. But what about in the case where you need to make a modification to the admin menu (which uses a global variable)?
[…] Content in Menu Order Finally, we need to be able to display all of the content in the same order that the menu items are displayed. Luckily, WP_Query makes this trivially easy: Essentially, we’re grabbing all of the page content that corresponds to the menus that have been displayed in the tabs that will […]
[…] first time around, what would that be? I’ll go first: Unashamedly, it’d actually be three things (in no particular order): Better techniques for writing plugins The Settings API WP_Query Okay, the question still stands. Your turn. Don’t leave me hanging as the only person answering my own question. That’s like being the only one showing […]
While working on the latest version of Standard For WordPress.com, Michael – who covers QA at 8BIT – caught an interesting problem with how our breadcrumb navigation and archive page templates were working (or weren’t working):
