Category: Wordpress

How to get category of current post

Following code can be used to get the category of the current post which you are dealing with You can use the get_the_category( $post->ID ) to get the category. What you have pass here is the ID of the post. You can get the ID of the post using the $post global variable

Use […]

Read more

How to get subcategory of category in WordPress

When you develop WordPress plug-in widget etc you will have to get subcategory of a given category. You can use the following code to get the subcategory We are going to use get_terms($taxonomies, $args) function. If you want to learn more about this function please have look at the code reference

Read more

How to create Meta Box in WordPress

In this tutorial we will see how to add meta box to post editing screen in admin section of the WordPress Meta box can be used to enter additional data related to the post. This meta box is draggable box you can use inside post editing screen. You can enter two types of data inside […]

Read more

How to create custom post in wordpress

In this article we will see how to create custom post when we develop WP plug-ins In WordPress you can create different types of post such as Post (Post Type: ‘post’) Page (Post Type: ‘page’) Attachment (Post Type: ‘attachment’) Revision (Post Type: ‘revision’) Navigation Menu (Post Type: ‘nav_menu_item’) Custom CSS (Post Type: ‘custom_css’) Changesets (Post […]

Read more

Developer Documentation for Event Calendar

Event Calendar plugin is developed using the custom post type which you find in WordPress Following code inside the index.php is used for creating the custom post type called eventcal

Then you can see the function for wp_enqueue_scripts which is a hook and can be used to add style and scripts which are meant […]

Read more