Author Archives: Sunil Chaudhary - Page 13
How to use Ajax In WordPress
Here is a simple tutorial to use Ajax in wordpress. Here we are taking an example to fetch the titles of all posts belong to the same post type as per the user's need to put the exact post type…
Custom Breadcrumbs for WordPress
Breadcrumbs are important part of our websites. Most of the wordpress website are having breadcrumbs now a days. So, there are so many plugins available for the addition of breadcrumbs over the web. But in my views addition of more…
How to fetch parent categories of a custom post
Here is the solution to fetch only the parent categories of a custom post type. As we know that sometimes it is required to register new post types with some custom taxonomy as well to fulfill our requirements. So, in…
Add class on li using wp_nav_menu()
Sometimes when we are implementing our menu in front-end using wp_nav_menu() function, we need to modify it in different way. Here we are discussing about adding class in each li comes under the ul. For example we are having this…
How to get user email by display name
Sometimes when we are working on a section where we need user details like user email. In a case where we only have the display name of a user and we want to fetch email id of that user use…
How to get first tag into a variable on detail page of a post
Sometime we need to fetch only the first tag of a post. We can add one or more tags in a wordpress post as per our requirement. Now in some cases when we are working on file and we need…