I have a custom post type called website, how would I write a conditional function to first check if the user is logged in, then based on the users ID get all custom post types which are website? I am using a custom page template.
I have a custom post type called website, how would I write a conditional function to first check if the user is logged in, then based on the users ID get all custom post types which are website? I am using a custom page template.
You must log in to post.