Ready to get started?Download WordPress


[Plugin: NextGEN Gallery] Can I access the gallery title in my template? (4 posts)

  1. curtp
    Posted 5 years ago #

    I'd like to change this...

    <h1 class="pagetitle">[php] the_category(); [/php]</h1>

    To something like this...

    <h1 class="pagetitle">[php] the_gallery_title(); [/php]</h1>

    I want the page that my pictures in a gallery to display the title of the gallery. How can I do that?




  2. anna-blume
    Posted 5 years ago #

    Gute Frage oder das:

    <h1 class="pagetitle">[php] the_gallery_description(); [/php]</h1>


  3. curtp
    Posted 5 years ago #

    Yes, both of these would be good. I don't see any way to use anything other than the shortcodes, but they don't render in this way.

  4. Alex Rabe
    Posted 5 years ago #

    Due to the fact that a gallery is part of a page it's not easy to "hide" the page title, but you are able to modify the gallery template to show the gallery title inside your post/page with any kind of heading, see here about the templates : http://nextgen-gallery.com/templates/

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.