• Hello!

    I am trying to build a news archive for authors. I tried to use the author template (author.php) for that.

    The news are posted as a custom content-type called “news”. The builtin content-type “post” was not suitable for our purpose and we can’t really switch back now.

    This leads to my problem: The author template throws a 404 if the author has not yet published a “post”. Is there a way to avoid this check? Inside the author.php I call a query_post for post_type=’news’ so the author’s ‘post’s are completely irrelevant to me.

    I tested this by creating a regular post for this user. The query of recent news works fine after.

    Is there any way to fix this without touching the core files?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Author Template with Custom Content Type’ is closed to new replies.