WordPress Query Basics

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

Query to show related post

We developer survive each and everyday and always spent a lot of time in google to find a simple solution for our day to day problem. Show related post in a single post is one of them. Today I also spent more than one hour in google to find this solution for a custom post… Continue reading Query to show related post

Published
Categorized as Dev, Query