Knowledge Base
MilesWeb / WordPress FAQ

How to create Custom Post Type or Custom Entries in WordPress

Approx. read time : 3 min

The Custom Post Type is basically a customized entry in WordPress, and this is a very useful feature for those who need to customize their website most of the time. By default, WordPress does not allow this types of customization in the entries, forcing us to use plugins or touch the code to create them and display them.

Although there are plugins that can solve the problem but it is always good to know what they do, if at some point we have to touch the code. So let’s see how to manually create the Custom Post Type in WordPress. An advanced step in customizing our website created with popular content management, as we advance in the article on static pages. However, in this tutorial, we also listed some of the WordPress plugins that allow us to customize the entries without getting into programming.

If we want to create a custom entry, we have to go to functions.php file of our WordPress theme where we add the following code.

As an example, let’s make an example of own entry called Journals:

This code is not too complicated and only need to change the text to display in the way that interests us.

With this, we will be creating a custom entry and that is already present on our desktop.

Ratings

If you look at the post we see that we have no taxonomy for journals. That is, we have no classification: No genres or authors.

To create taxonomies, we will need the following code:

In this code, we refer to the customization of the entry you want to add taxonomies to, recalling must be added to functions.php file of our theme.

Custom Post Type Plugins

Then here are some of the selected plugins that can let you customize the entries.

  • Custom Post Type UI: Very intuitive and easy to use.
  • Toolset Types: In addition to creating custom entries, it allows us to create individualized taxonomies and fields.
  • Pods: A complete plugin that is previously mentioned in the list of other plugins, templates, and other features options.

If you are starting with WordPress, we recommend you to take a look at our post about 50 useful and recommended plugins for Getting Started with WordPress. If you have programming skills or want to know more about the WordPress, you can take advantage of our WordPress Category here (link).

Need help? We’re always here for you.