I've come up with a temporary workaround until the code is fixed.
At first, I tried surrounding the call to
bfa_thumb() with an anchor tag that calls
the_permalink:
Code:
<a href="<?php the_permalink(); ?>">
<?php bfa_thumb( 620, 180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>'); ?>
</a>
This did not work, because
bfa_thumb() outputs an anchor tag of its own, and you cannot nest anchor tags (it's syntactically incorrect).
So then I looked at the documentation for
bfa_thumb, and it says that the last argument in the function is
$link, and the default value for
$link is
permalink, which is supposed to indicate that an anchor tag that points to the post is to be output. If you pass in an empty string for
$link though, the function won't output an anchor tag, and adding an enclosing anchor tag (with a call to
the_permalink) will work:
Code:
<a href="<?php the_permalink(); ?>">
<?php bfa_thumb( 620, 180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>', ''); ?>
</a>
So this snippet is just like the above one, except there's an empty string added as the last argument for the
bfa_thumb() function to prevent it from outputting the anchor tag.