Show all posts from a custom post type WordPress has a small function get_posts() to do this job. You just need to set your arguments and pass that argument inside the function. It returns an array of latest posts. You can use foreach function to loop though the returned array. Show all posts for a… Continue reading WordPress Query Basics
How to work with multiple github account
You have a personal github account and recently join in a new company. Now you need to maintain your official github account. But you want to use two account at the same time from your computer. In this article I will show you how you get this job done. You have your personal SSH key… Continue reading How to work with multiple github account
Get category details by term ID
In a day to day development process, we need to display category details inside a post card or something else. In order to get single category details by their term ID you need to pass ID in the get_term_by() WordPress function. Below is the example. You need to place single category ID inside that function.… Continue reading Get category details by term ID