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
I'm trying to use the @thumbnail directive and to add a CSS class to my image using the 3rd argument from the get_the_post_thumbnail() function.
Not sure if it's intentional since you also use the last parameter to echo the image URL (as per your documentation), but it seems that you forget to send this 3rd parameter to the WP function here:
I think you were right @gmutschler, it appears to be a mistake. The third parameter is checked for boolean and if it wasn't then it was ignored. Instead it should be passed through on line 177.
EHLOVader
added a commit
to EHLOVader/sage-directives
that referenced
this issue
May 11, 2022
Hello Brandon,
I'm trying to use the
@thumbnail
directive and to add a CSS class to my image using the 3rd argument from the get_the_post_thumbnail() function.Not sure if it's intentional since you also use the last parameter to echo the image URL (as per your documentation), but it seems that you forget to send this 3rd parameter to the WP function here:
sage-directives/src/Directives/WordPress.php
Lines 172 to 178 in d4461df
PS.: Thanks for everything you're doing with Roots and your own sage and acf extensions.
The text was updated successfully, but these errors were encountered: