Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #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?



    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.



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


    Sorry at the moment it’s not possible. It’s the same request/problem we have in this thread:

    The Dude


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


    And replaced it with this:

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

    Works like a charm.



    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.