Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1123

    Does anyone know how to update the Twicet theme homepage slider, to use static pages instead of posts? Also, is there a way to make custom links for the “read more” buttons? And not have it auto link to the related blog post?

    #34083

    Hey,

    Sure, open up index.php and replace this line:

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

    with this:

    $query_string .= "&page_id=1,2,3,4";

    where 1,2,3,4 represent the ID’s of the pages you want to display.

    James

    #34084

    I tried this, but only the first post in that string showed up. The other 3 didn’t.

    #34085

    Sorry at the moment it’s not possible. It’s the same request/problem we have in this thread: http://www.kriesi.at/support/topic/how-to-add-pages-into-the-slider

    The Dude

    #34086

    I actually figured it out. I just swamped out this line (in the index.php):

    query_posts($query_string);

    And replaced it with this:

    query_posts(array('post_type' => 'page', 'post__in' => array(2,145,149,151)));

    Works like a charm.

    #34087

    Awesome.

    Thank you for sharing this code. It will also help newscast user.

    The Dude

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

The topic ‘Pages for the homepage slider’ is closed to new replies.