All Posts
The Blog
Articles, tutorials, and insights on web development, design, and technology.

How to Fetch WordPress Data in Next.js (Headless WordPress)
Headless WordPress pairs the editing experience of WordPress with the speed and flexibility of a modern React front-end. Learn how to fetch WordPress REST data in Next.js using the App Router — covering server components, static generation, ISR, dynamic routes, and error handling.
Towfique Elahe · Jun 6, 2026

How to Create a Custom REST API Endpoint in WordPress
The WordPress REST API lets you expose your content as clean JSON for headless front-ends, mobile apps, and JavaScript widgets. Learn how to register custom endpoints with register_rest_route — including parameters, validation, permission checks, and caching — without any plugin.
Towfique Elahe · Jun 5, 2026

How to Cache WP_Query Results with the WordPress Transients API
Heavy queries on archive pages, dashboards, and filtered listings can quietly slow your WordPress site to a crawl. The Transients API lets you cache expensive WP_Query results and serve them in milliseconds. Here's how to use it properly — including cache invalidation, the trap most developers fall into.
Towfique Elahe · Jun 4, 2026

How to Build AJAX Post Filtering in WordPress with WP_Query
Letting visitors filter posts without reloading the page is one of the most requested front-end features on WordPress projects. Learn how to build a complete AJAX filtering system for any Custom Post Type using WP_Query, the WordPress AJAX API, and vanilla JavaScript — no plugins, no jQuery dependency.
Towfique Elahe · Jun 2, 2026

How to Build a WordPress Theme Options Panel with CodeStar Framework
Building a global settings panel for your WordPress theme doesn't require a bloated plugin. CodeStar Framework lets you create a fully custom theme options panel in pure PHP — with tabs, sections, rich field types, and live preview support. Here's how to build one properly from scratch.
Towfique Elahe · May 30, 2026

How to Build Custom Metaboxes in WordPress Using CodeStar Framework
ACF is popular — but it's not your only option. CodeStar Framework lets you build fully custom metaboxes with rich field types directly in PHP, with zero database bloat and complete control over your data structure. Here's how to use it properly on any WordPress project.
Towfique Elahe · May 29, 2026

How to Register Custom Taxonomies in WordPress with PHP
Custom taxonomies let you organize any post type with your own classification system — beyond categories and tags. Learn how to register hierarchical and flat taxonomies in pure PHP, connect them to custom post types, and build smarter content structures for any WordPress project.
Towfique Elahe · May 28, 2026

How to Create Custom Post Types in WordPress Without a Plugin
Most developers reach for a plugin to register custom post types — but you don't need one. Learn how to register CPTs directly in PHP, add custom labels, set up rewrite slugs, enable archives, and keep your WordPress install lean and fast.
Towfique Elahe · May 27, 2026