Author: Anatoliy Dovgun
-
WordPress Multilingual: Complete Control Through API
What are we about? WordPress, multilingual capabilities and comprehensive remote content control π Our Goals We set out to create a reliable solution that would: Implementation Steps 1. Analysis and Research We began by analyzing the existing Polylang plugin structure, discovering how it internally manages translation relationships through special linking terms with pll_ prefixes. 2. Core Architecture Development 3. API Endpoint Implementation 4. Translation Logic Implementation The breakthrough came when we discovered…
-
Advanced Query Loop use filter for Full and Smart control showing relevant Post with FSE
Challenge: How to Show Relevant Posts List on Single Post Page by Same Taxonomy by Default for Block Query Loop On the Single Post page, by default, we want to display posts from the same taxonomy (tags or any other custom taxonomies which exist in current post). In our case, we have a custom post…
-
‘has_archive’ => false β and Youβre Free to Play as You Want!
What does this parameter in a CPT mean? $this->args = [ … ‘has_archive’ => false, … ] Have you ever thought about this, or faced similar challenges? Many WordPress developers still rely on Archive-CPT Templates, but if you are working with FSE and clean HTML templates in Gutenberg, as well as implementing multilanguage support using…
-
add_filter(‘pre_render_block core template-parts Header and Footer for multilanguages templates
If you use multilanguages, you will encounter the need to separate templates for different languages, namely HHeader and Footer (of course, they can be identical in appearance but different in content). In this post, I will consider a quick solution to optimize and automate the separation and automatic substitution of the template in accordance with…