WordPress.org

Ready to get started?Download WordPress

Forums

[How to] Use more than allowed posts in homepage slider (3 posts)

  1. onesoftindiana
    Member
    Posted 1 year ago #

    The wordpress themes I'm using provides only for a limited number of posts on homepage slider. I want to increase the current number of posts allowed from 2 to 4 or more. What changes should I make in the theme and where ?

    <?php get_header(); wp_enqueue_script( 'slider-main', get_template_directory_uri() . '/js/slider.js' ); ?>
          <div id="slider">
             	<div id="slideshow"><ul class="bjqs">
    			<?php $sbargs = smallbusiness_ppp(); query_posts( $sbargs );
    			if (have_posts()) : while (have_posts()) : the_post();?></div>
  2. pvashist75
    Member
    Posted 1 year ago #

    just try to find a number value same as the limit of posts allowed for slider. Don't know which slider are you using but there will be a value passed in arguements like "showpost=(number)". look for that and try to change.

  3. onesoftindiana
    Member
    Posted 1 year ago #

    There's nothing like that available. As said by the theme aythor, I need to buy premium version of the theme for that to implement, but I know it can be done with some adjustments in code. thanks anyways.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.