> Advanced Custom Fields: NextGEN Gallery Field add-on wordpress plugin resources analysis

Advanced Custom Fields: NextGEN Gallery Field add-on wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name Advanced Custom Fields: NextGEN Gallery Field add-on
Version 2.1
Author Ales Loziak, Robert Kleinschmager
Rating 20
Last updated 2015-01-04 02:26:00
Downloads
17707
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
Advanced Custom Fields: NextGEN Gallery Field add-on plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

Advanced Custom Fields: NextGEN Gallery Field add-on plugin added 4 bytes of resources to the Home page and 5 bytes of resources to the sample Post page.

Advanced Custom Fields: NextGEN Gallery Field add-on plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! Advanced Custom Fields: NextGEN Gallery Field add-on plugin ads no tables to your Wordpress blog database.

This is an add-on for the Advanced Custom Fields WordPress plugin and will not provide any functionality to WordPress unless advanced Custom Fields is installed and activated.

The NextGEN Gallery field provides a dropdown (select or multi-select) of NextGEN Gallery names (galleries and albums) and the ability to map the selected NextGEN Gallery to the post. The get_value() API returns an array of the selected NextGEN Gallery IDs and the form – album or gallery.

Support ACF5 Pro, ACF4, ACF3, NextCellent Gallery - NextGEN Legacy.

!!! Version 1.1 !!! This version changes get_value() API returned value. You must change your template files. !!!

The get_value() API returns a following array:

Array (
    [0] => Array (
        [ngg_id] => 8  ( NextGEN Gallery 'gallery' or 'album' ID )
        [ngg_form] => gallery  ( 'gallery' or 'album' )
    )
)

Example

These examples should show a NextGEN Gallery gallery or NextGEN Gallery album.

For version 1.1 and later

<?php
    foreach ( get_field ( 'nextgen_gallery_id' ) as $nextgen_gallery_id ) :
        if ( $nextgen_gallery_id['ngg_form'] == 'album' ) {
            echo nggShowAlbum( $nextgen_gallery_id['ngg_id'] ); //NextGEN Gallery album
        } elseif ( $nextgen_gallery_id['ngg_form'] == 'gallery' ) {
             echo nggShowGallery( $nextgen_gallery_id['ngg_id'] ); //NextGEN Gallery gallery
        }
    endforeach;
?>

For version 1.0.2 and earlier

<?php
    foreach (get_field ('portfolio_nextgen_gallery_id') as $nextgen_gallery_id) :
        echo nggShowGallery( $nextgen_gallery_id );
    endforeach;
?>

Screenshots

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Simplicity screenshot

Simplicity

by: lzs

39956
0%
Vaaka screenshot

Vaaka

by: sami.keijonen

1870
0%