Software Engineering in Web Development, Backend Services, and More

Search: “wp_query” (Page 19 of 29)

We found 145 results for your search.

Ignore Coding Standards in PHP CodeSniffer

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)?

Tabbed Navigation in WordPress Themes

[…] 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 […]

How Would You Teach Yourself WordPress?

[…] 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 […]

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑