Remove Subscribers from author pages

Posted in: Newspaper
Post count: 15

Hi!

We’ve recently opened a forum on our site and users are starting to show up in the authors pages (/author/authorname/, with a blank page (as they haven’t written any articles, they’re not authors in that sense).

Since we are indexing the author pages and would like to only show an author page for real authors, what should we modify in the author templates to show users with level higher that Contributor only?

Thank you!

Post count: 854

hi,
first of all, i think that where the link to the author page is displayed, it should be a check to see if that author have posts (or whatever checks you want), and only then the link to the author page should be displayed.

here is the wordpress function to count author post :http://screencast.com/t/cRwr8xHjcch

here is the documentation for this function: https://codex.wordpress.org/Function_Reference/count_user_posts

Thanks for you message.
Radu A.

Post count: 15

Hi Radu,
as always, thank you for your quick reply.

The problem is that an author page for subscribers to bbpress is created anyway, which might get indexed by search engines along with the actual blog authors pages. Example:

This is the bbpress profile page (which is ok to be indexed):
http://demo.tagdiv.com/newspaper/forums/users/brsmncr/

This is the wordpress author page for the same forum user (which should not exist,because he’s not an author):
http://demo.tagdiv.com/newspaper/author/brsmncr/

Otherwise we will end up with hundreds of /author/ pages, one for each forum subscriber…

But at this point I don’t think this has anything to do with the theme, it is probably just the way wordpress deals with users of any kind…

Any thoughts?

Thank you!

Post count: 3343

Hi,
Thanks for the suggestion, we will take a look.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.