If you were using a custom taxonomy you can use the has_term function to check if the taxonomy is used by the post in the loop. Demo.
確定! 回上一頁