WordPress.org

Support

Support » Plugins and Hacks » Show galleries on my personal template

Show galleries on my personal template

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello.

    You can use something like this:

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

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

    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)

    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.

    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

    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.

    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()

    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.

    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?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Show galleries on my personal template’ is closed to new replies.