Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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.

    -Dave

    #37319

    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.

    http://codex.wordpress.org/Function_Reference/query_posts#Post_.26_Page_Parameters

    #37320

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

    Thanks!

    -Dave

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

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