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 » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

Clickable Thumbnail/Featured Image while still using "More" tag


  #1  
Old Nov 11, 2010, 11:06 AM
mad_science
 
15 posts · Mar 2010
I did my homework reading up on thumbnails and excerpts, but I need a little help...

Here's what I want:
  • Lead picture (thumbnail/featured image) on the main page that's linked to the full post
  • Length of excerpt on the main page controlled by the "more" tag (or some other way that's not a fixed length).

I can make this work by selecting the "featured image" for the post and then dropping the excerpt in the "manual excerpt" box, right?

If that's the case, a couple of questions:
  • Do the theme "thumbnail settings" override the "picture settings" set within the post for picture formatting?
  • Is there a way to display 2 or more images with the excerpt (besides siamese-ing them into 1 file)?
  #2  
Old Nov 11, 2010, 12:01 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I think the easiest and most straight forward approach is the following.
  • Create your post with whatever images you want
  • Go to HTML view and copy the HTML of what you want to show in the excerpt including the pictures
  • Paste the copied code into the manual excerpt box
  • The pictures will be sized to the dimension set in thumbnail settings for the excerpt but will show as the size you put them in the post after click the read more.
  • There is an interplay between the Atahualpa and WordPress thumbnail settings so if you have any issues take a look there.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Nov 11, 2010, 12:11 PM
mad_science
 
15 posts · Mar 2010
Quote:
The pictures will be sized to the dimension set in thumbnail settings for the excerpt but will show as the size you put them in the post after click the read more.
Really? It'll resize any image that's part of the excerpt? And set their link to go to the full post?
...because if that's true, that's really awesome.

Are thumbnails only sized down, or will they be sized up to the maximum in the thumbnail settings?

In general, we tend to run big pictures on the main page (not a lot of rapid-fire content), right up to our 720px wide fixed width. Of course, not all available pictures are that big, so sometimes we run 600 or whatever.

Would a 600px wide image be resized to 720 if I make the thumbnail "box" 720?

I know I could figure a lot of this out by trying it out, but the site's live full time and I don't have a practice/sandbox blog to do testing on.
  #4  
Old Nov 11, 2010, 12:23 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
The images themselves won't auto link to the post but you could set the link to do that when you create the post.

I just went into my test and sized the post image to a small size and it still shows as the now larger thumbnail size so it seems to work both ways.

You really shouldn't upload a 600px image and have the thumbnail set to 720px though as you will lose quality. I would upload a 1000px image and insert it into the post as the size you want it to show when people see the full post and let the thumbnail be sized down to 720px. I say 1000px as that is the size I upload many pictures to give me freedom to play around.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Nov 11, 2010, 12:44 PM
mad_science
 
15 posts · Mar 2010
Quote:
Originally Posted by lmilesw
I just went into my test and sized the post image to a small size and it still shows as the now larger thumbnail size so it seems to work both ways.

You really shouldn't upload a 600px image and have the thumbnail set to 720px though as you will lose quality...
...that's exactly why I asked if it up-sized as well, trying to avoid smaller pictures ending up pixelated. Unfortunately, we end up running a lot of found images* that are smaller.

*My site is a car blog, largely focusing on the rarer/stranger segments of the automotive universe. We run a lot of posts on ebay/craigslist finds, and the images from there are frequently small and crappy.

Quote:
Originally Posted by lmilesw
The images themselves won't auto link to the post but you could set the link to do that when you create the post.
Hmmm...but I could do that manually already with the full post and "more" tag. (set the link URL to the URL of the full post). What I'm looking for a is a default/automatic way to make it easy for the above-the-jump image to be a link to the full post.

...what I'm really tempted to do is go edit the code for the image placement dialog so that "Post URL" goes sets the link to the full post URL, not that maddeningly useless "attachment" page.
  #6  
Old Nov 11, 2010, 12:50 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
What do you mean by the "maddeningly useless "attachment" page"?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #7  
Old Nov 11, 2010, 01:05 PM
mad_science
 
15 posts · Mar 2010
In the dialog where you set the image properties (size, left/right/none justification, etc) there are 3 options for or what the Link goes to
"None" = image is not a link
"Image URL" = clicking on image takes you directly to image file (http://{URL}/coolcar.jpg)
"Post URL" = clicking on image takes you to a blog-post looking page that contains the image in medium size, with a link set to the image file URL.

It loads the full "post" interface with comments and everything. This is of no use to me or my readers, as if they want to see a bigger version of an image that's a 150x150 thumbnail (common definition, not WP's), they don't want to go to a yet another page where they have to click on the image yet again to get to the file. Hence, useless. Maddeningly so.
  #8  
Old Nov 11, 2010, 02:05 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Thanks... That is kinda useless.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #9  
Old Nov 11, 2010, 04:58 PM
mad_science
 
15 posts · Mar 2010
I'm gonna continue my own threadjack here to see if anyone can weigh in.

I've decided to see if I can tweak the code that controls the picture link options so that clicking "Post URL" makes it link to the Post's permalink.

I've burrowed all the way down in in "wp-admin/includes/media.php". The code that controls those buttons is this:
PHP Code:
function image_link_input_fields($post$url_type '') {

    
$file wp_get_attachment_url($post->ID);
    
$link get_attachment_link($post->ID);

    if ( empty(
$url_type) )
        
$url_type get_user_setting('urlbutton''post');

    
$url '';
    if ( 
$url_type == 'file' )
        
$url $file;
    elseif ( 
$url_type == 'post' )
        
$url $link;

    return 
"
    <input type='text' class='text urlfield' name='attachments[
$post->ID][url]' value='" esc_attr($url) . "' /><br />
    <button type='button' class='button urlnone' title=''>" 
__('None') . "</button>
    <button type='button' class='button urlfile' title='" 
esc_attr($file) . "'>" __('File URL') . "</button>
    <button type='button' class='button urlpost' title='" 
esc_attr($link) . "'>" __('Post URL') . "</button>
"
;

If I can get
$link = get_attachment_link($post->ID);

to return the permalink of the post, then that should do it.

I tried:
$link = get_permalink($post_id);

but that doesn't work. How do I pass the permalink of the post to $link?

Bookmarks

Tags
excerpts, featured image, more tag, thumbnails

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Center "Featured Content Gallery" GlobalNeat Page & Category Menu Bars 2 Mar 13, 2010 04:48 AM
[SOLVED] &quot;Post Thumbnail&quot; dimension changes wont save, and problems with excerpts set Seijun Center area post/pages 6 Feb 17, 2010 02:37 AM
How to remove the "no follow" meta tag toksrha Header configuration & styling 1 Aug 31, 2009 07:56 AM
Atahualpa 3.4: no "title" Tag anymore - with wpSEO 2.7.5 chris New Versions, & Updating 4 Jul 11, 2009 11:31 AM


All times are GMT -6. The time now is 06:22 AM.


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