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
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
-
- 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:
into:
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) );
-
- Moderator
2 posts
• Page 1 of 1