• 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

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 1 replies (of 1 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @solid_snake – If you are able to get the array results I would suggest using var_dump( $results ) to see the elements and work from there.

    Unless there is something the custom template shows through as an issue with the core plugin functionality we really cannot fairly offer support for custom coded templates.

    – Cais.

Viewing 1 replies (of 1 total)
  • The topic ‘Making Custom Template’ is closed to new replies.