Category: Snippets

How To Get WordPress Permalinks Using PHP?

How To Get WordPress Permalinks Using PHP?

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. The most popular permalink-related method is, of course, get_permalink() However, there are many additional functions […]

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. In this post, you will learn about alternatives to the code snippets plugin, such as using the functions.php file […]

Change author & pagination base in WordPress

Change author & pagination base in WordPress

The pagination base for archive pages is set to "/page/" whereas the author permalink base is set to "/author/". Both of these bases can be changed if necessary. Continue reading to find out how to do so in a few simple steps. If you are looking at this post, it is likely that you have […]

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 […]