Is there a way to do a perch_blog_custom to display blog posts only by a certain author?
You can get all the posts by Author...
https://docs.grabaperch.com/functions/blog/perch-blog-author/
Here are all the Blog Functions: https://docs.grabaperch.com/functions/blog/
Hello Leigh,
Yes, you can use the author option which takes the value of author slug:
author
perch_blog_custom([ 'author' => 'john-silver', ]);
You'd often get the author slug from the URL. For example, if your URL is /blog?author=john-silver:
/blog?author=john-silver
perch_blog_custom([ 'author' => perch_get('author'), ]);
Thanks Hussein! That worked.
You can get all the posts by Author...
https://docs.grabaperch.com/functions/blog/perch-blog-author/
Here are all the Blog Functions: https://docs.grabaperch.com/functions/blog/
Hello Leigh,
Yes, you can use the
author
option which takes the value of author slug:You'd often get the author slug from the URL. For example, if your URL is
/blog?author=john-silver
:Thanks Hussein! That worked.