How to show pages instead of posts on the slider.

You will be familiar with wordpress themes with featured post sliders on the home page. I have a created quite a lot of them which you can find here. The sliders on those templates display posts with images from any category specified. Recently I got and email from a theme user asking if it is possible to show pages on these slider instead of posts. So I thought I will make a screencast of how to do it and post it so that it will useful for others as well. The reference material for this modification is available in the WordPress codex function reference for “query posts” . Watch the screencast and try it. Plz write down your comments if you have any.

  • http://www.caribbeanexcursions.org/ Caribbean excursions

    Mine doesn’t work neither :( 

  • http://www.hallettguttercover.com/ Sara @ gutter guards

    Great information! Is this feature available to the twenty eleven theme or should I need plug-ins for it? Well, let me try. Thanks.

  • DEEPAK SINGH

    Hello Namaste Sir.

    Sir, this is the code in my front page.php file of my wordpress theme.

    see the code here –>>http://s13.postimage.org/k5v0cvzsn/code.png

    What changes should I make it so that it takes up page and not posts. I watche the screencast but I’m not good at coding and this is something different than the code you edited in your video. Please help karo Sir.