Tag: WordPress functions
Learning PHP for WordPress Development: Control Flow Basics
Welcome to this introduction to PHP control flow! This article continues our series explaining the basics of PHP for WordPress development.
Learning PHP for WordPress Development: Understanding PHP’s return
Welcome to this rundown on return in PHP! This article continues our series explaining the basics of PHP for WordPress development.
Learning PHP for WordPress Development: Understanding PHP’s echo
Welcome to this rundown on echo in PHP! This article is part of our series explaining the fundamentals of PHP for WordPress development, so that you can start learning the language of WordPress “under the hood” and unlock the powers of a full-fledged WordPress developer.
Course: WordPress Theme Development (Core Concepts)
Welcome! WordPress themes are one of the first and most important topics that one must understand to be good at WordPress development. Themes underlie the entire visual half of WordPress site, but often grow to do even more. We’re hoping your find these free content very helpful, as we think it covers some of the most important concepts in doing WordPress theme development for yourself.
WordPress is a Factory: A Technical Introduction
“WordPress is a factory” is a core analogy designed to clarify what WordPress is as a technical system.
David Writes on Insecure PHP and WordPress Functions for Smashing Magazine
Your first million dollars. The game-winning catch. A guest post in Smashing Magazine. These are life’s moments of pure success, and David had one of them this week. We’ll keep you posted on the other two.
Adding an is_product_subcategory() Conditional Tag to WooCommerce
I’ve got a project that needs to treat WooCommerce category pages differently from its subcategory pages. Both use taxonomy-product_cat.php, though. What I’d really love to do is change just the search field in that template, depending on whether a particular page is showing a top-level category or a subcategory.
Practical Uses of pre_get_posts
In WordPress, pre_get_posts is an action that makes it possible to modify an existing WP_Query, before that query is actually run. pre_get_posts offers some solutions that are more performant than writing a custom WP_Query, and enables solutions to other problems that would be quite difficult otherwise.