How to set title under thumbnail
-
H,
I recently installed the Posts-by-Tag plugin and am having issues setting the title under the thumbnail. I tried contacting the plugin author via support but no luck – doesn’t seem interested.
I read this thread: https://www.ads-software.com/support/topic/title-under-the-thumbnail-urgent?replies=27 – which provided a option which I tried on one of the plugin files (posts-by-tag/include/class-posts-by-tag-util.php) and it seemed to change my webpage although to an undesirable effect – once it removed the thumbnails and once the who site went blank. So I am thinking it has something to do with this page.
Here is the code I altered:
if ($thumbnail) { if (has_post_thumbnail($tag_post->ID)) { if ( $thumbnail_size == 'custom' ) { $t_size = array( $thumbnail_size_width, $thumbnail_size_height ); } else { $t_size = $thumbnail_size; } $output .= '<a class="thumb" href="' . $permalink . '" title="' . get_the_title($tag_post->ID) . '" ' . $onclick_attr . ' >' . get_the_post_thumbnail($tag_post->ID, $t_size) . '</a>'; } else { if (get_post_meta($tag_post->ID, 'post_thumbnail', true) != '') { $output .= '<a class="thumb" href="' . $permalink . '" title="' . get_the_title($tag_post->ID) . '" ' . $onclick_attr . '>' . '<img src="' . esc_url(get_post_meta($tag_post->ID, 'post_thumbnail', true)) . '" alt="' . get_the_title($tag_post->ID) . '" >' . '</a>';
Although – the title of the code above says ‘//saving the query’ so I’m not really sure if it is the right section I’m working on. Any help will be appreciated and I am happy to send the file/links to anyone who can help.
Thanks in advance.
[please continue with your existing topic at https://www.ads-software.com/support/topic/change-stylinglook?replies=9 ]
- The topic ‘How to set title under thumbnail’ is closed to new replies.