Number of Elements in Slider

Multipurpose WordPress Theme Forum Support
GK User
Tue Oct 10, 2017 2:52 pm
Hey,

i want to show about 15-20 Elements in the slider at the frontpage.

But there will not be shown more than 5 elements.

Thanks for your help...

Garthi
User avatar
Expert Boarder

Joshua M
Wed Oct 11, 2017 8:37 am
Hi,
Try to edit your Quark/template.frontpage.php file and change this line:
Code: Select all
$query = new WP_Query( array ( 'post_type' => 'page', 'post_parent' => $post->ID, 'order' => 'ASC') );


into:
Code: Select all
$query = new WP_Query( array ( 'post_type' => 'page', 'post_parent' => $post->ID, 'order' => 'ASC', 'posts_per_page' => 15) );
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.