The snippets display Latest images:

<?php
  $gallery_name='Picture News';
  $term = taxonomy_get_term_by_name($gallery_name);
  $tid = $term[0]->tid;
  $thumbs = 0;
  while ($thumbs<1) {
  $images = (image_get_latest($count = 1, $tid = 0));
  print l(image_display($images[0], 'thumbnail'),'node/'.$images[0]->nid, array(), null, null, FALSE, TRUE);
  $thumbs++;
  print $title;
}

//print "<br/><a href='/image'>More Pix</a>";
?>

Problem BE:

1.How show article title in the underneath of Latest images?

The Latest images shows a picture only, don't show article title, I think to be display article title and URL in the underneath of Latest images, please ask how to do?

2.If the last article release didn't add a picture(The node is image), the Latest images doesn't show any picture, how make it show previous have the article of thumbnail image , Make the position of Latest images to have a thumbnail image always?

Thanks,very much!!!

Comments

nanbeiyu’s picture

Problem 1 :

OK! views module + image module.

Problem 2:

?

Please help me ! Thanks!