How Do I Add a NextGEN Gallery in WordPress?

Adding a NextGEN Gallery in WordPress is easy. First, create a new file, called gallery.

php, in your WordPress theme directory. Next, add the following code to this file:.

‘primary’ ) ); } ?>

When you include the NextGEN Gallery plugin in your WordPress theme, the gallery is initially disabled. You can enable the gallery by calling the is_active_plugin function and checking to see if the NextGEN Gallery plugin is activated.

If it is not, you can activate the plugin by calling the activate_nextgen_gallery function.php to configure the NextGEN Gallery:

The code in this file defines the NextGEN Gallery as an external WordPress menu located in the primary location. You can configure the location of the NextGEN Gallery by editing the theme_location property in the wp_nav_menu function.