-
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 ‘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…