Category: Snippets

Developers’ Guide to the WordPress permalinks

Developers’ Guide to the WordPress permalinks

There are plenty of information on the internet regarding how to use permalinks for SEO. Unfortunately, I did not come across any that detailed all of the helpful functions accessible in the WordPress API, such as getting the permalink value. Most of these may be found in the WordPress documentation, however it might be pretty […]

How to add PHP snippet to WordPress?

How to add PHP snippet to WordPress?

You may enhance the functionality of your website by using the built-in hooks offered by WordPress and most of its plugins. You will very certainly need to use code snippets to make advantage of the WordPress API. This post will teach you three alternative methods to use and simply add WordPress code snippets. Custom snippets may […]

Change author & pagination base in WordPress

Change author & pagination base in WordPress

By default, the pagination base used in archives permalinks is set to /page/. Similarly, the author permalink base is set to /author/. In this short article, I will present you an easy way to adjust both the pagination & author permalinks in WordPress. What are the rewrite rules? Every permalink should match one of the […]

How to rewrite and shorten WordPress media files URLs?

How to rewrite and shorten WordPress media files URLs?

The snippet described below is not currently implemented in Permalink Manager plugin, but I have decided to share the snippet, so it can be easily reused and adjusted by anyone who wants to change the strutcture of WordPress media files permalinks. What does it change? The code featured in this post allows to shorten and […]