Forum Replies Created
-
AuthorPosts
-
February 5, 2016 at 10:50 pm in reply to: Featured Image Slider not working when BBpress is installed? #578822
Hello,
I realised that actually this is not a browser issue.
The problem happens when
1) I’m not logged in
AND
2) BBPress is activeAs soon as I log in or deactivate BBPress everything works as expected in all three browsers.
Any tips?
Hello there,
I found a solution. In functions.php of the child theme I added this filter:
if( function_exists('get_coauthors') ) { add_filter( 'avf_author_name', 'masonry_filter_authors', 10, 2 ); function masonry_filter_authors( $author, $post ) { $coauthors = get_coauthors( $post->ID ); $authorsCollection = array(); foreach( $coauthors as $coauthor ) { if( $coauthor->display_name ) { $authorsCollection[] = $coauthor->display_name; } } return implode(', ', $authorsCollection); } }
and I had to change (via child theme overload) helper-masonry.php slightly in line 394:
$author = apply_filters('avf_author_name', get_the_author_meta('display_name', $entry->post_author), $entry);
the important part is the last $entry at the end.
Hope this is a sound solution, and that it might help someone!
all the best,
Markus
Ok! Thanks for your time so far. I will try to figure it out and share the result here if successful. In the meantime, any further tips are much appreciated!
best wishes,
Markus
Hello, I’ve uploaded the site. Please see login credentials in the private message. Hope everything is clear. Let me know if you need anything else!
I’m working on a local installation on my computer, but will upload it to a server post the link asap!
Thanks,
Markus
Hi Elliott,
Thanks so much, that already helped a lot!
I added your add_filter function to functions.php of my child theme and now multiple authors are shown.
Unfortunately all Masonry items now show the author(s) of the current page that contains the Masonry item, whereas it should show the author(s) of the blog post each respective Masonry item is representing.
Just to avoid any confusion:
The page containing the Masonry item was created by “Jack” and “John”. Currently all Masonry items display “by Jack and John”, even if the posts they link to were created by other people.Any tips how I can display the correct authors for each individual Masonry item?
Thank you!
Markus -
AuthorPosts