Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Featured image shows the first image included in the post.

Old Oct 5, 2012, 05:12 AM
9 posts · Oct 2012
When I have no featured image with my post the Montezuma theme will show the first image included in the post itself. But I don't want that. How can I make sure that the featured image is only showing when allowed?
Old Oct 5, 2012, 05:36 AM
juggledad's Avatar
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
currently there is no way to do that. The bfa_thumb() function
If a "Featured Image" was set for the post, that one will be used. Else, the first attached/inserted local image in the post will be used. Else the first local image URL will be used. External images will not be used. Will create thumbnail on the fly if it does not exist. You can use different values for width, height and crop (true/false) in each post format template. Possible values for $link: 'permalink' (links to post) or empty (not linked). TODO: Add 'fullsize' to link to full size version of image.
I have created an RFE to ask for an option to do what you want, but for now you eithor get a featured image on all posts or none. See RFE: add option to bfa_thumb() to control if you want an automatic image built
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Oct 5, 2012 at 05:41 AM.
Old Oct 5, 2012, 07:15 AM
9 posts · Oct 2012
I modified the thumb.php in /wp-content/themes/montezuma/includes and I think it works. At least my site still works and no faulty featured images anymore.

I removed line 58 to 64.
} elseif ( bfa_has_attachment() ) {
$thumb = bfa_get_first_attachment_id();
$hasthumb = TRUE;
} elseif( bfa_has_img_src() ) {
$thumb = bfa_get_first_img_src();
$hassrc = TRUE;

and saved the thumb.php.


featured image

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I link to a post from a featured image? ComicsBronzeAge Atahualpa 3 Wordpress theme 1 Aug 25, 2010 10:16 AM
[SOLVED] menu background image only shows up on home page, missing on pages/post Athena account2 Page & Category Menu Bars 5 Mar 4, 2010 03:53 AM
[SOLVED] Header image shows 10 secs blank between image cycles elsanto Header configuration & styling 1 Nov 23, 2009 02:57 PM
[SOLVED] Images in post not included when clicking category Thursday Page & Category Menu Bars 3 Aug 17, 2009 11:43 AM

All times are GMT -6. The time now is 02:01 PM.

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