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?
Pages for the homepage slider
6 posts from 3 voices-
Posted 2 years ago #
-
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
Posted 2 years ago # -
I tried this, but only the first post in that string showed up. The other 3 didn't.
Posted 2 years ago # -
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
Posted 2 years ago # -
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.
Posted 2 years ago # -
Awesome.
Thank you for sharing this code. It will also help newscast user.
The Dude
Posted 2 years ago #
Reply
You must log in to post.














