Making Custom Template
-
Hello,
I am making a custom template:
So far using the code below, I am able to fetch an array: [501 is the gallery id]
$result = $wpdb->get_results( ” SELECT *
from wp_ngg_gallery, wp_ngg_pictures
where wp_ngg_pictures.galleryid = wp_ngg_gallery.gid
and wp_ngg_gallery.gid = 501
order by wp_ngg_pictures.imagedate
DESC ” );When I echo $result, I get an array.
How can I use that to retrieve parameters of the first image in the gallery such as image url, description and title?
Thanks in advance
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Making Custom Template’ is closed to new replies.