Explanation:
I have a customer list in post_type through metaboxes , where the email and password fields exist, and the client name is the_title();
Objective:
I need to login with the email and password fields and check if there is any client (post_type) with these credentials.
Observations:
I have a post_type of news, which when entered are directed to a specific client, that is, when logging, you can only have access to the news directed to the client that is logged in.