Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6731

    I would like to add static pages into the frontpage slider, and I found this thread : http://www.kriesi.at/support/topic/how-to-add-pages-into-the-slider.

    However it was solved one year ago, and the code of index.php seems changed.

    Any help is appreciated.

    #55243

    Hey,

    in your case you need to replace:

    $query_string .= "&cat=".$k_options['mainpage']['slider_cat_final'];

    with:

    $query_string = array('post_type' => array( 'post', 'page' ), 'posts_per_page' => 5, 'post__in' => array(37,50,54,30,32));

    and instead of 37,50,54,30,32 enter your own ids and adjust the posts_per_page number.

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

The topic ‘Add static pages to frontpage slider’ is closed to new replies.