|
I'm going to take a blind shot at this one, so I don't know if it will work or not.
First make a safe copy of "grid-archives.php". Always make a copy of any script you modify in case you have to restore it back.
There are two sections in "grid-archives.php" ... compose_html_classic and compose_html_compact.
I'm not sure which option you are using.
Find this part:
$html .= '<li class="ga_post">'
. '<div class="ga_post_main">'
. '<a href="' . get_permalink( $post->ID ) . '" title="' . $post->post_title . '">' . $this->get_excerpt($post->post_title, $this->options['post_title_max_len']) . '</a>'
. '<p>' . $post->post_content . '</p>'
. '</div>';
and change the part in red ....
$html .= '<li class="ga_post">'
. '<div class="ga_post_main">'
. '<a href="' . get_permalink( $post->ID ) . '" title="' . $post->post_title . '">' . $this->get_excerpt($post->post_title, $this->options['post_title_max_len']) . '</a>'
. '<p>' . get_the_post_thumbnail($post->ID, 'thumbnail') . '</p>'
. '</div>';
Change it in either or both 'html_classic' and 'html_compact'
If it doesn't work, just change it back to the original.
If it does work, you can then style the display however you want.
EDIT:
The parameter 'thumbnail' is directly related to the way you uploaded it into the 'media library'.
You have the choices 'thumbnail', 'medium', 'large', etc.
Example: get_the_post_thumbnail($post->ID, 'medium')
.
Last edited by mlseim; 02-27-2013 at 07:57 PM..
|