Wonder Gallery WordPress plugin php code to display a gallery

The following php code can be used to display a gallery using the Wonder Gallery WordPress plugin:

<?php
    $gallery_id = 123; // Replace 123 with the ID of your gallery

    if (function_exists("wonderplugin_gallery")) {
        wonderplugin_gallery(array('id' => $gallery_id, 'mode' => 'lightbox'));
    }
?>

Explanation: - First, we define a variable $gallery_id and assign it the ID of the gallery we want to display. - We then check if the function wonderplugin_gallery exists using if (function_exists("wonderplugin_gallery")). - If the function exists, we call wonderplugin_gallery with an array of parameters. In this case, we pass the gallery ID and set the mode to 'lightbox' to display the gallery using a lightbox effect.

This code can be added to a WordPress template file such as header.php, footer.php, or a custom page template to display the gallery on your website.