-
How to add a Redirect
Having one central place on your site where you store all redirects is not only essential, but it can save you time and headaches down the road. Our recommendation of a plugin to handle redirects would be Redirection by John Godley: https://wordpress.org/plugins/redirection/ . This is a well known and trusted plugin for handling redirects on…
-
Use WordPress core post ‘categories’ on other custom post types
Sometimes, you might want to use the categories that are native to posts on other custom post types. Here is how you do that. When you register the custom post type, add this line to your code. The term ‘category’ is what will connect your custom post type to use the categories on posts. ‘taxonomies’…
-
Change the default label ‘Category’ under Posts
Let’s look at some helpful things you can do with WordPress’ native Category on Posts. Change the default Category for Posts Whenever you publish a post without a category chosen, it will automatically be categorized as ‘Uncategorized’. For our blog about books, let’s change that. We want all posts to automatically be categorized as ‘Book…
-
Change ‘Posts’ name to something else
Sometimes you want to change the WordPress posts to something else. Here’s how you can do it. Today, I’ll change ‘Posts’ to ‘Books’. I want Books to appear where the label ‘Posts’ are regardless of what theme is installed. So I’ll make my changes in my custom plugin. We’re going to use this function to…
-
How to register ‘new’ taxonomies to WordPress posts
Sometimes, you want more than just categories and tags on native WordPress Posts. Below is code you can add to your custom plugin to add a new taxonomy to native posts. The highlighted ‘post’ is the part of the code that connects this taxonomy to native posts. It’s the same way you’d connect a custom…