Category: Wordpress

WP plug-in development Beginners guide

When you see the WordPress official plug-in page you can see more than 50,000 plug-in available for you to download free of charge. What is WordPress Plug-in? When you work with WP number one the rule is ‘Do not modify the WordPress core file”. If you change the core file of the WP When you […]

Read more

WP On Page SEO

Optimizing the your webpage is more important in these days when you look the stats There are 6 billion searches a day that now happen on Google It was 3.5 billion in January 2020 Today, more than 90% of the world’s online traffic now originates from search. (Sparktoro) You can do good design and add […]

Read more

Create Custom Page Template

If you need a different page layout for your page then you have to create a custom page template in WordPress.  So a custom page layout will have a different look than your regular page template. Creating a custom page template is very for your theme and in this post we will see how to […]

Read more

Custom Single Post Template

Now we will see how to create a custom single post template. There are several ways to create Custom Single Post Template in WordPress. But in this article we will see how to create one in manually. In your wordpress theme you have the default temple for the single post name single.php. But you may […]

Read more

Get WP Posts in Category

List the  WP posts when category is given If you need to run custom query you can use the WP_Query() In the following example you can get the all posts in the category where the ID is equal to 10

Read more

Create Custom Field in WordPress

Standard post in WordPress has only the main content area to enter the text to your post but when you need to add some custom piece of data to the post thesis there is no place to enter those details. So you have the custom field to solve this problem. You can add a custom […]

Read more

What is Slug in WordPress?

The web-address or URL (Uniform Resource Location)  specify the location of resources on the internet. In our context, the resource is the web page in your WordPress site. Slug is a part of the URL which can be used to uniquely identify a post or page in your WordPress site. Slug has a unique value […]

Read more

How to add 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 What is Metabox in WordPress? In WP admin section, you can see the draggable boxes inside the post editing screen and these boxed are called Meta Boxes. You can store attributes for the post […]

Read more

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