2015-01-20, 13:57:38
Hi Martin,
I am having trouble with getting an image to show in my results display.
I have a news special page with several fields which are working, but the image "thumb" does not appear.
The only news article at this point calling a thumb is the one showing a summary in the list of news items on the page. The other items do not have any image specified.
http://pweaveanea.org/new-home
I am using the following code in my search:
The site is using 3.3.4 and plugins are up to date. Any help you can provide is appreciated!!
Sherri
I am having trouble with getting an image to show in my results display.
I have a news special page with several fields which are working, but the image "thumb" does not appear.
The only news article at this point calling a thumb is the one showing a summary in the list of news items on the page. The other items do not have any image specified.
http://pweaveanea.org/new-home
I am using the following code in my search:
PHP Code:
<h3 class="search-entry-title">
<a href="<?php get_special_field('link','',false); ?>">
<?php get_special_field('title','',false); ?>
</a>
</h3>
<?php get_special_field_image($thumb, $title=true, $width=200, $crop=false); ?>
<div class="search-entry-news-summary"><?php if (return_special_field('summary')=='') { get_special_field_excerpt('content', $numWords); } else { get_special_field('summary','',true); } ?></div>
The site is using 3.3.4 and plugins are up to date. Any help you can provide is appreciated!!
Sherri