NextGen custom query (1 post)

  1. highway7
    Posted 6 years ago #

    Hi, I am trying to do a custom query search of my wordpress database and pull in data from the NextGen gallery tables. This is my code:


    $mylink = $wpdb->get_row("SELECT * FROM $wpdb->ngg_gallery WHERE gid = 6");

    echo $mylink->gid;


    This returns no data. If I try the code with the links table though, it works fine. Where am I going wrong?


Topic Closed

This topic has been closed to new replies.

About this Topic