If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
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'];
$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.
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.
The topic ‘Pages for the homepage slider’ is closed to new replies.