Category Archives: Wordpress Tutorials

Register Taxonomy

Registering and using a custom taxonomy

  • The user wants to be able to categorize their custom post type, and they do not want to mix categories and post categories. Even though they are using just one post category for now (Announcements), they may need the flexibility in the future  to add additional categories.
  • So, we are going to create a sample custom taxonomy named  Book Categories as we have already register custom post type called book. for register taxonomy in wordpress you need to place below code into your theme’s functions.php file.

Continue reading

Creating a custom post type

What is custom post type?

  • The custom post type functionality was added to WordPress in version 3.0 because people wanted to be able to specify new objects. The most commonly known objects are posts and pages, but there are also three other custom types in the WordPress backend: attachments, revisions, and nav menus.
  • We will create one sample custom post type called Book:
  • If you want to create custom post type in theme you need to add some code to your theme’s functions.php file. However, you can also attach the custom post type to your plugin or widget.

Continue reading

Disable WordPress Admin Bar

Disable wordpress adminbar is required when we creates websites like membership or websites having multiple users with multiple user roles. We need to take care of user’s capabilities. We do not want to allow users to have access of admin panel except administrators. You can prevent them by adding below code into your theme’s functions.php file. Continue reading