Looking for WordPress answers? WordPress Hub Magazine website is designed to be a central hub for discovering all WordPress knowledge. Curated, aggregated and custom content for people who use WordPress.
he Rewrite API for WordPress is an important feature that you probably don’t read much about, yet you’re no doubt using without even realizing it.
The API provides the functionality for creating your own unique links – permalinks – for your website.
In this tutorial, I’ll explain permalinks in-depth – what they are, why they are permanent, their possible structures, and how you can rewrite them in a form that is intelligible for both humans and machines. I’ll also explain some key concepts behind permalinks in WordPress, first looking at how to add variables to non-optimized URLs and how to use these variables and their values to query your database. Later, we’ll explore URL rewriting and how to build the best structure for pretty permalinks.