You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ post.authors | wrap_and_join('<a href="{{item.link}}">{{item.name}}</a>', ' and ' ) }}
wrap_and_join() is just a twig extension for joining arrays of objects with a twig snippet.
At the var_dump( $author ), the user object is filled out properly if the author is a real user, but not if it is a co-authors plus guest author. he following shows partial output from one real user and one guest user:
Passing authors to a twig file from get_coauthors() works fine unless the authors are guest authors.
Expected behavior
Guest authors would display properly using author.name and author.link
Actual behavior
These values are null
Steps to reproduce behavior
In a template file:
class-sjmpost.php
In twig file:
wrap_and_join() is just a twig extension for joining arrays of objects with a twig snippet.
At the var_dump( $author ), the user object is filled out properly if the author is a real user, but not if it is a co-authors plus guest author. he following shows partial output from one real user and one guest user:
What version of WordPress, PHP and Timber are you using?
WP 4.8.1, PHP 7.0.23, Timber 1.5.2
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)
Download from WP.org
The text was updated successfully, but these errors were encountered: