Search code examples
phpwordpressnextgen-gallery

NextGen Gallery: Display title in the gallery


I want to display the title in the NextGen gallery. The plugin does not offer an option for that, so I have to somehow go past it, and modify the code.

NextGen Version:2.0.33.

Has anyone got across the same problem? How can I solve it?


Solution

  • Stefan - The view folder is in the modules/ngglegacy folder. New version I guess.

    As for the gallery title, I modified some code I found here,

    http://psychopixi.com/tech/how-to-link-back-to-an-album-in-a-nextgen-gallery/

    It's actually for showing breadcrumbs and providing a back button, but if you change the values of the iterators myi and myi2 in lines 10 and 13 it will just output with the title, which you can format as you wish.

    As per their suggestion I used the plugin Shortcode Exec PHP to make shortcode which I then placed in my gallery page. You can then place the shortcode for your gallery after.

    It's not an elegant solution, and it assumes that the url of your gallery has the name of the gallery in it.

    Good luck.