Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme » New Versions & Updates »

Patch 128-02: Fix issue where thumbnails don't link to post after upgrading to WP 4.7


  #1  
Old Dec 9, 2016, 01:22 PM
juggledad's Avatar
juggledad
 
23,499 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
WordPress 4.7 changed some code causing the link to a post from a thumbnail to stop working. the following patch will fix this issue.

Edit /montezuma/includes/thumb.php and change line 21 from
HTML Code:
	$id = get_the_id() . '_' . $width . '_' . $height . '_' . ( $crop === FALSE ? '0' : '1' ); 
to
HTML Code:
	$post_id = get_the_id();
	$id = $post_id . '_' . $width . '_' . $height . '_' . ( $crop === FALSE ? '0' : '1' ); 
and change line 62 from
HTML Code:
			$this_thumb = '<a href="'.get_permalink( $id ).'">'.$this_thumb.'</a>';	
to
HTML Code:
			$this_thumb = '<a href="'.get_permalink($post_id).'">'.$this_thumb.'</a>';	
or you can replace the existing montezuma/includes/thumb.php with the attached file (after unzipping it)
Attached Files
File Type: zip thumb.zip (2.4 KB, 69 views)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PATCH 3724-01: Custom Menu/SubMenu issue after upgrading to WP 4.4 juggledad New Versions, & Updating 5 Apr 8, 2016 04:07 AM
PATCH 378-01: only excerpts showing after upgrading to 3.7.7 or 3.7.8 on some sites juggledad Old Version fixes and change logs 5 Sep 14, 2012 05:08 AM
[SOLVED] PATCH 373-03: date-modified in post/page .. patch is corrupted dnasir New Versions, & Updating 3 Jan 19, 2012 08:21 AM
PATCH 367-04: Hovering over a Post/Page title only shows "Permanent Link to " juggledad Old Version fixes and change logs 0 Jun 20, 2011 12:03 PM
[SOLVED] How to set the default post thumbnail / &quot;Crop Post Thumbnails&quot; issue Fux Atahualpa 3 Wordpress theme 4 Jan 20, 2011 11:05 AM


All times are GMT -6. The time now is 10:51 PM.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.