Disabling the creation of copies of images in WordPress

By default, WordPress generates four sizes for each original image we upload and another 2 copies when a huge image is uploaded. Also, themes and plugins can create...

Database Repair and Optimization in WordPress (WP_ALLOW_REPAIR)

Different things can happen to database tables and there are many cases where repairing or optimizing database tables solves the problem.

Thumbnails for Taxonomy Elements (WP_Term_Image)

In this post I'm going to share the code that adds the ability to set thumbnails for taxonomy elements, both built-in (tags, categories) and custom. The code is tested...

Additional fields for WP_Nav_Menu

In WordPress 5.4 there are new hooks that allow you to more flexibly customize the WordPress menu (WP Nav Menu). In particular, it's now possible to easily add custom...

How do I enable links (bookmarks) in WordPress?

Before version 3.5, WordPress had a so-called "blogroll", "bookmarks", "links" - these were entries that had their own separate menu in the admin-panel, just like...

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,...

Kama_Post_Meta_Box — Create Posts Meta-fields (MetaBoxes)

In this article I'm going to share a Kama Post Meta Box class, with which you can quickly create meta-fields for posts, just by specifying them as an array. It's a kind...

Taxonomies in WordPress

What are taxonomies in WordPress? For those who don't know, and for those who think they know everything about taxonomies, it will be useful to read this article. I'll...

Indexes in MySQL

How indexes work in a MySQL database. Indexes in MySQL (Mysql indexes) are a great tool for optimizing SQL queries. To understand how they work, let's look at working...

Posts in WordPress

In this article, let's talk about WordPress posts, or rather how their structure is arranged in the WordPress engine. There is a lot of information on the Internet...

@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...

Debug in WordPress

In development, you need to be able to see where the error is when something suddenly breaks. WordPress has a special debug mode for this. In this post, let's take it...

WordPress Cron (task scheduler)

Suppose we need some PHP function to be executed after 5 hours. Or we need this function to run every day. The WordPress Cron - Task Scheduler will help to solve...

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...