In this article, Daniel Pataki will explain how to get started with the $wpdb class, how to retrieve data from your WordPress database and how to run more advanced queries which are tailored to your particular needs, in order to update or delete something in the database, and generally make your website more efficient. While … Read more
When WordPress 3.0 introduced hierarchical taxonomies nearly a decade ago, taxonomies became an even more useful tool in the toolkit of WordPress developers. On a high level, we can think of taxonomies as ways of grouping things together. Within the WordPress platform, a taxonomy is a mechanism for grouping things like posts, custom post types, … Read more
Demo Online Generator Post Type Generator Taxonomy Generator Custom Fields vs. Custom Taxonomies, When to (Not) Use? Today, a lot of developers use custom fields to store data for their custom post types. Plugins for custom fields such as Meta Box provide an easy way to create them with tons of options. Developers don’t need … Read more
This article’s visually long (a lot of images), so here’s a navigation guide: General description of get_queried_object(). What get_queried_object() returns on various kinds of webpages on your site. Some practical uses of get_queried_object(). What get_queried_object() Does: It’s Fuzzy Thinking Time! Before we go further: To understand the material below, you’ll want a basic understanding of WP_Query (enough to know what a “WordPress query” is in general), and … Read more
First, you need to open a plain text editor on your computer like Notepad and paste the following code inside it: 1 2 3 4 5 6 7 <?php /* * Template Name: Featured Article * Template Post Type: post, page, product */ get_header(); ?> This code defines a new template called Featured Article and … Read more
According to Builtwith.com, WordPress holds close to 50% of the CMS share of the world’s top 1,000,000 websites. As for the ecommerce sphere, we’re at 33% with WooCommerce. And if we cast a wider net, percentages go higher. Although we may complain that WordPress can get bloated, resource-heavy, and its data model leaves a lot to be desired, there is no denying that WordPress is everywhere.