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

How to Remove Billing Details from WooCommerce Checkout

  • Remove Billing Details from Checkout Page.

When using WooCommerce, it will by default add a form for the client to enter his billing details and Shipping Details to Checkout form.

Now for some cases we might not want that, for example when purchasing a simple virtual or Downloadable product or a product which user would be able to get from downloadable link.  We just want them direct redirect to payment getway site like PayPal without any hassle.

There is no option within WooCommerce to disable the billing details, instead you can  remove the billing details from a WooCommerce checkout using WooCommerce hooks or Plugin Continue reading