Multisite Support
-
First, thank you for the simple and elegant plugin for NGG.
I wanted to point out a small issue that might be caused by WPMU (Multisite mode) being turned on.
Simply put, the newer way of pulling image custom fields <?php echo $image->ngg_custom_fields[“Your Field Name Here”]; ?> does not seem to work. I was able to pull the information using the older <?php echo nggcf_get_field($image->pid, ‘Awesome field’); ?>. So it works, but you might want to make note of this small issue.
There is also the possibility that this isn’t a multisite problem, as the page my code is on pulls the gallery with
$imagegallery = new nggdb();
$images = $imagegallery->get_gallery(‘my-gallery’);
foreach ($images as $image) {
…
echo $image->ngg_custom_fields[“Hero Link”];
…
}http://ww.wp.xz.cn/extend/plugins/nextgen-gallery-custom-fields/
The topic ‘Multisite Support’ is closed to new replies.