WordPress (category)

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

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

Removing Widgets and Metaboxes from the WordPress Dashboard

To make it more convenient to work in the Wordpress admin, sometimes you need to disable (delete) metaboxes and widgets, In this post let's see how to do it.

...

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

$wpdb->update — array for $where pframeter

Specified value for $where field will turn into IN ( comma separated array values ) when queried.

You can't specify array for the parameter $where in...

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