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 »

Featured image shows first image included in post [Update for version 1.1.8]

Old Apr 16, 2013, 07:50 AM
9 posts · Oct 2012
This is something I experienced before and expected to happen after upgrading to version 1.1.8.
I don't want all my posts to show a featured image, but the Montezuma theme unfortunatly likes a featured image a lot and will show some other image from the post anyway. So I had to change some code again to fix it.

Since the code has changed slightly, I thought it would be nice to post the solution again.

Open thumb.php and change TRUE to FALSE in line 36 and 41:

elseif ( FALSE !== ( $thumb = bfa_get_first_attachment_id() ) )
$hasthumb = FALSE;
elseif ( FALSE !== ( $thumb = bfa_get_first_unattached_gallery_img_id() ) )
$hasthumb = TRUE;
// if local image not added with WP uploader but added as manual HTML link
elseif( FALSE !== ( $thumb = bfa_get_first_img_src() ) )
$hassrc = FALSE;

This way the smart featured image handling is disabled.
Old May 1, 2013, 11:54 AM
1 posts · May 2013
After "upgrading" to version 1.1.9 it looks this fix doesn't work anymore. Groan.

Any idea how to make changes to thumb.php now to not include the featured image?

The alternative way, to delete the line of bfa_thumb code from Montezuma postformat.php seems too aggressive and is more of an all or nothing approach to featured images. Sometimes you want to include a featured image in a post and making the changes to thumb.php worked well before to give you that option.
Old May 2, 2013, 04:07 AM
9 posts · Oct 2012
I just did the upgrade and changed thumb.php the same way as I did for 1.1.8. To check the change I force a refresh by updating one of the posts. All worked well for me.

By the way, I use a childtheme for customizations: Add Customized Files “/Includes” Folder to WordPress Child Theme


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image in post half showing as if featured image mealies Montezuma Theme 1 Mar 20, 2013 10:31 AM
[SOLVED] A post included in two or more categories shows only one category at the pos venicrea Montezuma Theme 6 Dec 29, 2012 03:04 PM
[SOLVED] Featured image shows the first image included in the post. Auteri Montezuma Theme 2 Oct 5, 2012 08:15 AM
How do I link to a post from a featured image? ComicsBronzeAge Atahualpa 3 Wordpress theme 1 Aug 25, 2010 11:16 AM

All times are GMT -6. The time now is 08:25 PM.

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