I encountered another theme that didn’t like to show NGG featured images, and digging into the code I found that it is because wp_get_attachment_url() does not recognize NGG’s image IDs (ie, “ngg-1”).
There is a WP filter hook for wp_get_attachment_url(), and it seems trivial to detect when the url is “” (ie, the URL was not found) and the ID is “ngg-” followed by a number. I haven’t found the NGG function for looking up the image URL, but surely one exists.
Such a filter would probably fix a number of problems in themes. Could that be considered for a future version of NGG?
- The topic ‘[Plugin: NextGEN Gallery] Suggestion: wp_get_attachment_url() filter for "ngg-#" image IDs’ is closed to new replies.