WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Showing galleries and albums in the template using php functions (4 posts)

  1. Elan42.com
    Member
    Posted 5 years ago #

    Hi...

    How do I recall something like [gallery=4] in php with functions?

    I have to do a template for a gallery and I need to show galleries in a column and the contained pictures of the clicked-gallery in the content of the page.

    Do someone know how to do that?

  2. Elan42.com
    Member
    Posted 5 years ago #

    no way?

  3. Alex Rabe
    Member
    Posted 5 years ago #

    All functions are located in nggfunctions.php, this you can use in any PHP template...

  4. Elan42.com
    Member
    Posted 5 years ago #

    I tried and it works, often, but in certain cases it doesn't.

    For example if the plugin is called somewhere, like when you are browsing a gallery's pictures so you're in a page like "?album=1&gallery=1" it doesn't work.

    That is the code: echo nggShowAlbum(1,null);

    This displays correctly the album in a normal page, but if I click on the gallery (so I browse the pictures) the function doesn't work anymore.

    I badly need to have AT THE SAME TIME the galleries on a menu and the pictures in the page's content.

    So what can I do?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.