Codex (category)

WordPress Reserved Variables

Here you find reserved names which should not be used as variable names for POST, GET requests. Also it is not recommended to use them when creating custom post types,...

@import Styles of a Child Theme via PHP

Using child themes in Wordpress is a valid way to modify an existing theme, but the CSS @import directive is slow, so it's worth avoiding.

It takes 200ms to load the...

Pagination for WordPress Single Post (Post Content)

Not everyone knows that in WordPress a single post or page can be divided into several parts, thus organizing the pagination for the post. To do this you need to use...

List of All WordPress Options

Here is the entire list of WordPress options, which are located in the wp_options table. You can see all the options for your site on the hidden admin page...

Constants of WordPress

WordPress is configurable in the admin panel or using hooks (filters, events), and WordPress can also be configured using PHP constants.

You've probably used constants...

Global Variables of WordPress

We often use functions to retrieve some data on a page and are unaware that this data can be taken from global variables. For example, the name of the author on the...

SHORTINIT constant: WordPress environment with minimal load

I was worried about a question: how can I use $wpdb object and site database with which I work, but with minimal loading of WP environment. Sometimes it is...

3 ways to Create Loop in WordPress - WP_Query{} get_posts() query_posts()

An article for beginners and those who are already a little familiar with WordPress, which should debunk all the myths about the different types of loops in...

The Loop in WordPress

The Loop in WordPress is processing posts one by one that are in the current global data and output information about each post. The Loop gets an array of objects...

The functions.php theme file in WordPress

Everyone familiar with WordPress has heard of the functions.php theme (template) file. However, not everyone understands its purpose, seeing in it only a file that...

Must-Use plugins in WordPress

Must-use plugins (mu-plugins) - mandatory plugins that are installed in a special /wp-content/mu-plugins folder. They are always active for the site and all sites...

Do plugins slow down the WordPress?

This short article is my attempt to answer the common question — what is better: install a plugin to add desired functionality or add custom code in functions.php?...

Emails In WordPress

This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.

Date and Time Formats in WordPress

WordPress has functions that get the date or time of a post, comment, or something else: the_date(), the_time(),...

WordPress Theme Files Hierarchy

This post is about the names of the WordPress theme files. And it also reviews which file to include for showing the content of a specific page. This is very important,...