Search code examples
wordpressposts

Is it possible to show the user's page if there's no posts by the user in Wordpress?


I got a wordpress problem and couldn't find a perfect solution.

There's an attorneys-at-law website I built for my client by using wordpress. I apply the function of "users" to add several lawyers, and each one has their own page.

But I found if there's no posts posted by the user, it will diagnose that the user doesn't exist and jump to another user's page.

One of the solutions came to my mind is that I asked every lawyer to have posts on the site, but in fact they couldn't write so many articles before the website go online.

So I need to solve this problem for now, please kindly help me if anyone knows some tricks, thank you so much!!


Solution

  • Seems like your users are basically the authors. Here is a similar question with solution.

    https://wordpress.stackexchange.com/questions/41078/show-author-archive-pages-for-authors-with-no-posts