I am using the code the_author_posts_link and it is not working for a custom post type I setup. I have authors posting normal posts and also this custom post type (photos). I made sure to set photos as a post type and not page. When clicking the link though it does not return any of the custom posts types. How can I set that up correctly?
just creating custom post types will not, you have to be sure that the author is been assign to the post type (photos) also if you want this post type to show in categories(taxomony) you need to sign it to the new custom post type. here is a good plug in that can show you visually want is assign to what and you can modify taxonomy too.
no when you create a new post wp_insert_post() you have to be sure that you assign your custom post type and author id, check you database to be sure that your new post and post type have an author assign to it.