posts within custom post type all share the same content in the front-end
You are querying the entire posts of doctors type, and setting the number of posts per page to one. This will obviously always return the same post. You need to either set the id of the post, or navigate through the loop to find a match. If you are calling this function in single post … Read more