permalinks

Day 1. Leave no Chance to Find Out your Administrator Login

Remove taxonomy slugs (categories, post tags and custom taxonomies) from URL

In this post I will show you how to remove «category» from WordPress categories URL,

How to remove category slug from URLs

how to remove «tag» from post tags URLs,

How to remove tag from post_tags URLs.

and how to remove custom taxonomy slugs

Permalink post_type structure with taxonomy slug in it

Let’s look at the simple example of a eshop on WordPress.

The shop has custom post type product and category for products product_cat. By default product links looks like

How to Change URL of a custom post / page / category / tag in theme functions.php. Capitalize URL.

If you read this post, you should know something about WP_Rewrite class. It allows you to change WordPress permalinks rewrite reules, change the structure of them.

In this post I won’t use WP_Rewrite, I just want to show you another way of