Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #2262

    Is there a way to call the slider from pages, as opposed to posts?

    I do have pages mapped to categories, but it doesn’t seem to pull the pages assigned to the category.

    Thanks in advance.



    Sliders only work with posts. You can try to modify it by doing this. In index.php look for this line

    $query_string .= "&showposts=$mycount";

    And replace it with this line

    $query_string .= "&post_type=any&showposts=$mycount";

    I’m not 100% that that’ll fix your problem, but might help. Here is a little more information on the query_posts() method which is used to get the posts for the slider.


    That did the trick! For the record, as you intended, it pulls anything in the specified category–post or page. Works like a charm.



Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Slider from pages?’ is closed to new replies.