WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Show galleries on my personal template (9 posts)

  1. danielerota
    Member
    Posted 1 year ago #

    I'm new to use worpress, so sorry for my questions ;-)

    How can I show ALL my galleries in my template?
    I've created my template with 3 files: index.php header.php footer.php

    What is the code that I can use to show all my galleries in index.php?
    or
    How can I use short code?

    thanks

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. nicopixel
    Member
    Posted 1 year ago #

    Hello.

    You can use something like this:

    <?php echo (do_shortcode('[nggallery id=5]')); ?>

    ---------
    Nicolás Martín
    http://www.bambulum.com

  3. danielerota
    Member
    Posted 1 year ago #

    ok, but I would like to see all galleries,
    for example, in sql I'd write "SELECT * FROM gallery"

    I want to see a list of galleries (and the images)

  4. DoubleSixx
    Member
    Posted 1 year ago #

    Maybe you make an album with all the galleries inside. Then you make a page or post that has this album in the body. Finally you select the template from the page or post attributes section.

    Good luck.

  5. danielerota
    Member
    Posted 1 year ago #

    I've created an album and I put inside all my galleries, how can show this album in the page?
    I used this short code in the update page [album id=1]
    but I don't see anything

  6. DoubleSixx
    Member
    Posted 1 year ago #

    I think your short code is incomplete, missing info.

    [album=1,compact]
    or
    [album id=1 template=extend]

    Those are your choices, well I don't know of any others.

    Good luck.

  7. danielerota
    Member
    Posted 1 year ago #

    no, I wrote [album id=1 template=extend]

    but I don't see anything.
    I'm using my personal template, maybe a forgotten to include some files?

    in my header.php I just include wp_head()

  8. DoubleSixx
    Member
    Posted 1 year ago #

    Originally you said you put : [album id=1]

    Which I don't think would work. Did you try the other short code ?

    [album=1,compact]

    You should have

    <?php wp_head(); ?>

    Just before
    </head>

    <?php wp_head(); ?>
    </head>

    Have you checked for compatibility issues ?

    Goto Gallery Overview on the right hand side you should see Plugin Check.

    Click Check Plugin, see if there's any errors, particularly if there's a theme compatibility issue.

    Good luck.

  9. danielerota
    Member
    Posted 1 year ago #

    I'm sorry, but I'm new of worpress, I don't know how create a page template and I did not put the code

    <?php if (have_posts()) : while (have_posts()) : the_post();?>
             <div class="post">
             <h2 id="post-<?php the_ID(); ?>"><?php the_title();?></h2>
             <div class="entrytext">
              <?php //the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
             </div>
             </div>
             <?php endwhile; endif; ?>
             <?php //edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

    Now i can use shortcode, but I don't know how to show all albums without know their ID
    Exist some code different of shortcode?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic