This is what I would like to do... don't know how

Discussion in 'HTML & Website Design' started by gadgetpro, Feb 7, 2009.

  1. #1
    hello all,

    www.hitechgadgetspro.com

    I would like to have my slideshow (big black thing) display posts from my "slideshow" category. Any idea on how I could do that?

    I would like to not use a plugin, but rather a "category specific loop." that updates automatically when I add a new post.

    I really could use some help on this. My previous thread is still unanswered.

    thanks
     
    gadgetpro, Feb 7, 2009 IP
  2. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What does the slideshow actually show, ie what do you want to send to the slideshow from each post, an image?

    Well you'd run another wordpress loop querying the posts to filter out just the posts from your specified category. Then you'd get the information from the retrieved posts (e.g the image) and send it to the slideshow.

    So below is a loop which finds a certain number of posts from a specific category.:

    
    <?php
    query_posts(array(
    'cat'=>'10',
    'showposts'=>'3',
    ) );?>
    <?php if (have_posts()) : while (have_posts()) : the_post();?>
    //RETRIEVE WHATEVER YOU WANT FROM EACH POST HERE
    <?php endwhile; ?>
    
    Code (markup):
    So this query will run a loop through all of your wordpress posts, and find the latest 3 posts from category 10.
    So change 3 to the amount of posts in the slideshow you want, and 10 to the category number you want the posts from.

    Then from the posts retrieved your going to want to store the images or whatever you want to pass to the slideshow in a variable and then pass it to the slideshow which I assume is already set up and you can do.

    good luck!
     
    wd_2k6, Feb 7, 2009 IP
  3. camp185

    camp185 Well-Known Member

    Messages:
    1,653
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    180
    #3
    camp185, Feb 9, 2009 IP
  4. gadgetpro

    gadgetpro Peon

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks to both of you!! really appreciate the help.. i think I'm going to go with the div slider, because I switched to drupal... I tend to change my mind often! :)
     
    gadgetpro, Feb 11, 2009 IP
  5. shaunr

    shaunr Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It might be easier if you made the slideshow in .swf format. .swf is a lot of arcade game formats on the web and you can also create a slideshow with .swf (flash) You could define a frame to run off a specific source, which could be your posts. i just don't know how to do that
     
    shaunr, Feb 11, 2009 IP
  6. gadgetpro

    gadgetpro Peon

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i can create that kind of a slideshow, but I want it to display/link to posts created in a "slideshow" category.
    like the " http://www.popsci.com " one
     
    gadgetpro, Feb 12, 2009 IP
  7. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I've never used Drupal, but in the end your going to have to create a special picture and text extract for the slideshow, so there isn't really a need to link it because it will take the same amount of time? Unless you are using a picture and text from the post.
     
    wd_2k6, Feb 13, 2009 IP