Programming
Cache Data With the WordPress Transients API
The Transients API is WordPress's built-in cache for expensive results — a slow query, a remote call, a heavy calculation. Store a value with…
Web Development Tutorials
NdrieL is a web-development tutorials site — clear, step-by-step guides for WordPress, PHP and Laravel, each one worked through from the first line of code to a result you can run. No fluff — just the steps that work.
New to the stack? Work through these in order — from setup to a running app.
Set up your site
Install WordPress Locally On WindowsCustomize safely
Create a WordPress Child ThemeAdd your own content
Register A Custom Post Type In WordPressMake it dynamic
Create A Shortcode In WordPressLoad your own code
Enqueue CSS And JavaScript In WordPressProgramming
The Transients API is WordPress's built-in cache for expensive results — a slow query, a remote call, a heavy calculation. Store a value with…
Programming
Handling AJAX requests lets the browser talk to your server without reloading the page. Route requests through admin-ajax.php, verify them with a nonce, and…
Programming
A custom REST API endpoint serves your site's own JSON at a URL you choose. Use register_rest_route() to publish a public route that returns…
Programming
A WordPress widget is a self-contained block for a sidebar or footer. Extend the WP_Widget class to build a configurable Recent Posts widget, register…
Programming
A custom page template lets one page break out of your theme's default layout — full-width, no sidebar, a design of its own. Add…
Programming
Send the Content-Disposition and Content-Type headers that make a browser save a file instead of opening it, then stream the bytes with readfile() —…
Programming
Find, capture, validate, and replace text with PHP's preg_match(), preg_match_all(), and preg_replace(). Work one string through four common jobs using named groups and anchored…
Programming
Call a JSON API from PHP with the bundled cURL extension. Run a GET and a POST, read the HTTP status code, and decode…
Programming
Store a small value in the visitor's browser with setcookie() and read it back from the $_COOKIE array. Build a page that remembers a…
Server Administration
Log in to a remote server without a password using SSH keys. Generate an ed25519 key pair, copy the public key to the server,…
PHP, Laravel, WordPress and jQuery — hands-on coding guides worked through end to end.
49 tutorials →Apache, environments, and running your stack on Windows without the guesswork.
10 tutorials →MySQL queries, PDO, and the everyday tasks of keeping your data in order.
12 tutorials →