Problem implementing Smooth Gallery in a WP Theme

Discussion in 'HTML & Website Design' started by Zhu, Mar 20, 2009.

  1. #1
    Hi there,

    I'm trying to implement Smooth Gallery 2.0 in my WP theme (Arthemia).

    I'm basically following these instructions (How To Integrate Smooth Gallery Into WordPress) since I'm not really a coder.

    However, I still get a blank box, where the gallery should be... so I'm assuming my query is no good (otherwise, I would at least have the post titles showing).

    Here is my gallery.php file:

    Do you see anything very wrong?

    Anybody willing to give a hand?

    Thank you very much!
     
    Zhu, Mar 20, 2009 IP
  2. djroedger

    djroedger Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Looks like you need to specify a post category. First, make sure all of the posts you want to display in your slideshow are in the same category. Then, try the changes below.

    Where you have:
    <?php query_posts('showposts=5');?>
    PHP:
    it should read:
    <?php query_posts('showposts=5&cat=x');?>
    PHP:
    where x is the ID of the category of posts you are trying to display, OR:
    <?php query_posts('showposts=5&category_name=x');?>
    PHP:
    where x is the names of the category of posts you are trying to display.

    You can display multiple categories of posts using commas between the category names or ID, e.g.
    <?php query_posts('showposts=5&cat=2,43,109');?>
    PHP:
     
    djroedger, Apr 7, 2010 IP