显示来自多个图库ID的NextGEN图库的所有图像(Show All Images of NextGEN Gallery from Multiple Gallery ID)
以下代码是显示特定图库ID的所有图像的方式,它的工作原理!
global $nggdb; $gallery = $nggdb->get_gallery(8, 'sortorder', 'ASC', true, 0, 0); foreach($gallery as $image) { echo $image->imageURL; echo $image->alttext; echo $image->description; }但我想要的是显示来自多个专辑ID的所有图像? 有人可以帮帮我吗? 请...
The following code is the way to display all images from specific gallery ID and it works!
global $nggdb; $gallery = $nggdb->get_gallery(8, 'sortorder', 'ASC', true, 0, 0); foreach($gallery as $image) { echo $image->imageURL; echo $image->alttext; echo $image->description; }but what I want is to show all images from multiple album ID? anyone can help me? please...
最满意答案
试试这个
global $nggdb; foreach($ids as $id) { $gallery = $nggdb->get_gallery($id, 'sortorder', 'ASC', true, 0, 0); foreach($gallery as $image) { echo $image->imageURL; echo $image->alttext; echo $image->description; } }Try this
global $nggdb; foreach($ids as $id) { $gallery = $nggdb->get_gallery($id, 'sortorder', 'ASC', true, 0, 0); foreach($gallery as $image) { echo $image->imageURL; echo $image->alttext; echo $image->description; } }显示来自多个图库ID的NextGEN图库的所有图像(Show All Images of NextGEN Gallery from Multiple Gallery ID)以下代码是显示特定图库ID的所有图像的方式,它的工作原理!
global $nggdb; $gallery = $nggdb->get_gallery(8, 'sortorder', 'ASC', true, 0, 0); foreach($gallery as $image) { echo $image->imageURL; echo $image->alttext; echo $image->description; }但我想要的是显示来自多个专辑ID的所有图像? 有人可以帮帮我吗? 请...
The following code is the way to display all images from specific gallery ID and it works!
global $nggdb; $gallery = $nggdb->get_gallery(8, 'sortorder', 'ASC', true, 0, 0); foreach($gallery as $image) { echo $image->imageURL; echo $image->alttext; echo $image->description; }but what I want is to show all images from multiple album ID? anyone can help me? please...
最满意答案
试试这个
global $nggdb; foreach($ids as $id) { $gallery = $nggdb->get_gallery($id, 'sortorder', 'ASC', true, 0, 0); foreach($gallery as $image) { echo $image->imageURL; echo $image->alttext; echo $image->description; } }Try this
global $nggdb; foreach($ids as $id) { $gallery = $nggdb->get_gallery($id, 'sortorder', 'ASC', true, 0, 0); foreach($gallery as $image) { echo $image->imageURL; echo $image->alttext; echo $image->description; } }
发布评论