Image Photo Gallery Final Tiles Grid Shortcode

Below, you’ll find a detailed guide on how to add the Image Photo Gallery Final Tiles Grid Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Image Photo Gallery Final Tiles Grid Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Image Photo Gallery Final Tiles Grid Plugin and the shortcodes it provides:

Plugin Icon
Image Photo Gallery Final Tiles Grid

"Image Photo Gallery Final Tiles Grid is a dynamic WordPress plugin that arranges your photos in a unique, non-uniform grid. With the flexibility of responsive layout and customizable tiles, it enhances your visual content presentation."

★★★★☆ (343) Active Installs: 30000+ Tested with: 6.3.2 PHP Version: 5.6
Included Shortcodes:
  • [FinalTilesGallery]

Image Photo Gallery Final Tiles Grid [FinalTilesGallery] Shortcode

‘FinalTilesGallery’ shortcode is used to display a gallery. It checks if Jetpack’s ‘photon’ module is active, if so, it removes the ‘image_downsize’ filter. It then creates the gallery based on provided attributes. If the ‘photon’ filter was removed, it’s added back.

Shortcode: [FinalTilesGallery]

Examples and Usage

Basic example – The simplest way to utilize the ‘FinalTilesGallery’ shortcode is by providing the id of the gallery you want to display.

[FinalTilesGallery id=1 /]

PHP Function Code

In case you have difficulties debugging what causing issues with [FinalTilesGallery] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'FinalTilesGallery', array( $this, 'gallery_shortcode_handler' ) );

Shortcode PHP function:

function gallery_shortcode_handler( $atts )
        {
            $this->photon_removed = '';
            if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) {
                $this->photon_removed = remove_filter( 'image_downsize', array( Jetpack_Photon::instance(), 'filter_image_downsize' ) );
            }
            return $this->create_gallery( $atts );
            //@todo: statement can't be reached. Investigate
            if ( $this->photon_removed ) {
                add_filter(
                    'image_downsize',
                    array( Jetpack_Photon::instance(), 'filter_image_downsize' ),
                    10,
                    3
                );
            }
        }

Code file location:

final-tiles-grid-gallery-lite/final-tiles-grid-gallery-lite/FinalTilesGalleryLite.php

Conclusion

Now that you’ve learned how to embed the Image Photo Gallery Final Tiles Grid Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *