WordPress Developer Ukraine, Kyiv
How to Add Google Analytics to WordPress

How to Add Google Analytics to WordPress

How to add Google Analytics to WordPress Google Analytics tracks your site’s traffic, user behaviour and conversions. There are two ways to add it to WordPress: a plugin, or the tracking snippet added from functions.php. The code way takes a few lines and gives you full control.
How to Enqueue a Script After All Other Scripts in WordPress

How to Enqueue a Script After All Other Scripts in WordPress

How to enqueue a script after all other scripts in WordPress By default, WordPress prints scripts in the order they are enqueued, taking dependencies into account. Sometimes a script must run last, after jQuery and everything that other plugins have added to the page. The dependency list, a late hook priority and the wp_footer hook…
Advanced Custom Fields: Getting Started

Advanced Custom Fields: Getting Started

Advanced Custom Fields: getting started Advanced Custom Fields (ACF) is one of the most popular WordPress plugins. It adds fields to the edit screens of posts, pages, users, terms and options pages through a visual interface, and gives a simple API to read the values in templates. Instead of the bare “Custom Fields” box with…
WP_Query: Advanced Techniques and Common Patterns

WP_Query: Advanced Techniques and Common Patterns

WP_Query: advanced arguments for real projects WP_Query is the main way to get posts in WordPress. Beyond post_type and posts_per_page it can combine taxonomy conditions, filter by custom fields and dates, sort by a field and exclude posts. These are the patterns that come up in almost every project.
How to Use Sass/SCSS in WordPress Themes

How to Use Sass/SCSS in WordPress Themes

Use Sass (SCSS) in a WordPress theme Sass is a CSS preprocessor: it adds variables, nesting, mixins and partial files to CSS, and compiles everything into one normal CSS file. The SCSS syntax is a superset of CSS, so any valid CSS file is already valid SCSS and you can start using Sass gradually. In…
WordPress 5.0 and the Block Editor: What You Need to Know

WordPress 5.0 and the Block Editor: What You Need to Know

WordPress 5.0 and the block editor: what changes for developers WordPress 5.0 was released on December 6, 2018, and the new block editor, developed as the Gutenberg plugin, is now the default editor. Instead of one big text field, the content is a sequence of blocks: paragraphs, headings, images, galleries, buttons. For site owners it…
How to Handle AJAX Requests in WordPress with wp_ajax

How to Handle AJAX Requests in WordPress with wp_ajax

Handle AJAX requests in WordPress with wp_ajax WordPress has its own AJAX entry point: every request goes to wp-admin/admin-ajax.php with an action parameter, and WordPress calls the PHP function registered for that action. All of WordPress is loaded, so in the handler you can use any function, check the user and work with the database.
CSS Flexbox: A Practical Guide for WordPress Themes

CSS Flexbox: A Practical Guide for WordPress Themes

CSS Flexbox for WordPress themes: a practical guide Flexbox is a one-dimensional layout model: it arranges items in a row or in a column, distributes the free space and aligns them. It works in all current browsers and replaces floats and inline-block tricks in navigation bars, rows of cards, centred hero sections and the footer…