Post thumbnails no longer linking to posts
I upgraded to Wordpress 4.7 and now the thumbnails of my posts no longer link to the posts
Where as in the past I would see this in the code: Code:
<div class="thumb-shadow"><div class="post-thumb"><a href="/post-url/"><img src="banner.png" width="740" height="253" alt="post title"/></a></div></div> Code:
<div class="thumb-shadow"><div class="post-thumb"><a href=""><img src="banner.png" width="731" height="286" alt="post title"/></a></div></div> Code:
<h2> Code:
if( trim( $this_thumb ) != '' AND $this_thumb != FALSE ) { |
I'm seeing the same thing on my test site, the href attribute for the thumbnail's anchor tag is empty, although the post title's link is OK. Good thing I haven't updated one of my production sites to WP 4.7 yet. Thanks for the heads up, I'm going to hold off on upgrading until there's a fix.
|
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(); ?>"> 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(); ?>"> |
Quote:
If I recall correctly, this was an issue with Montezuma years ago that required a fix of some kind |
@poorboy and/or @CrouchingBruin:
Can you do an export of yout Montezuma settings and attach them to a reply. I haven't been able to cause the issue yet. NEVER MIND now I have it occurring |
|
Quote:
|
Yes, works for me, too. Thanks!
|
All times are GMT -6. The time now is 08:07 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.