Sometimes we need to call the first big picture instead of the thumbnail in the article content directly on the list page, while Zhimeng does not call the function of the first big picture by default, but we can modify the call ourselves. Here's how to call it:
First find and open the/include/common.func.php file, and add the following code at the bottom:
//Convert the zoom image to the first picture of the article
function firstimg($str_pic)
{
$str_sub=substr($str_pic,0,-7). ".jpg";// Delete the last seven digits of the thumbnail string and add the suffix. jpg
return $str_sub;
}
Save after adding, and call through the following tags in the list page template:
[field:litpic function='firstimg(@me)'/]
Statement: All articles on this site, unless otherwise specified or marked, are originally published on this site. No individual or organization is allowed to copy, embezzle, collect and publish the content of this website to any website, book and other media platforms without the consent of this website. If the content of this website infringes upon the legitimate rights and interests of the original author, please contact us for handling.