Forum
How do I display a list of all authors except the current one?
This is similar to the question I had yesterday, except now I'm trying to filter out the current page's author, rather than the current post's title.
I have a person.php
page which displays all the info about a specific author, along with a list of other authors. Getting the author works well
perch_blog_author(perch_get('author'), array(
'template' => 'author.html',
));
But filtering out the current author while displaying the others, not so much.
I've tried the below, but it outputs all authors, rather than hiding the one who's page it's on.
perch_blog_authors(array(
'template' => 'author_name.html',
'filter' => 'authorSlug',
'match' => 'neq',
'value' => perch_get('s'),
));
I've got two authors in the admin, so it's not for lack of authors.
Thanks.
change
perch_get('s')
to
perch_get('author')
as that's the slug being supplied