>

ColdStone Theme: Using Pages Instead of Posts for Featured Image

Hi,
please go to featured.php

save the file just in case;

there, find: $coldstone_featured_number=

make this equal with the numbers of pages you will use for the slider, like:

$coldstone_featured_number=3;

find:

$my_query = new WP_Query

before this add:

$args = array(
‘post_type’ => ‘page’,
‘post__in’ => array(2,78,55)
);

where 2,78,55 are 3 id’s of the pages you want to show in the slider. You need to insert here the actual id’s of the pages you want to include in the slider;

then replace the line:
$my_query = new WP_Query(………

with:

$my_query = new WP_Query($args);

and it should work

From: https://www.elegantthemes.com/forum/viewtopic.php?f=31&t=146758

banner ad

Comments are closed.