How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
So you have two loops : the main loop and the second one using $query. You want to compare if at some point of your second loop there’s a match between current post (inside the loop) and the processed post inside the $query loop. Am I right ? Instead of checking permalinks I would propose … Read more