Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Number of product on the home page

  1. #11
    Thread Starter
    Senior Member piplo's Avatar
    Join Date
    Oct 2010
    Location
    France
    Posts
    163
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I really don't understand.

    Look my code.

    <div class="tabcontrol">
    <ul class="tabnavig">
    <li><a href="#block1"><span class="big"><?php _e('Just Listed','cp')?></span></a></li>
    <li><a href="#block2"><span class="big"><?php _e('Most Popular','cp')?></span></a></li>
    <li><a href="#block3"><span class="big"><?php _e('Random','cp')?></span></a></li>
    </ul>

    <!-- tab 1 -->
    <div id="block1">
    <div class="clr"></div>
    <div class="undertab"><span class="big"><a href="#"><?php _e('Classified Ads','cp') ?></a> / <strong><span class="colour"><?php _e('Just Listed','cp') ?></span></strong></span></div>


    <?php
    // show all ads but make sure the sticky featured ads don't show up first
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args = array('caller_get_posts' => 1, 'paged' => $paged,'category__not_in' => cp_get_blog_cat_ids_array(), 'posts_per_page' => 20);
    ?>

    <?php query_posts($args); ?>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <?php // if(is_sticky()) continue; // don't show any sticky posts in the main section ?>

    <?php // if (in_category(CP_BLOG_CAT_ID) || cp_post_in_desc_cat(CP_BLOG_CAT_ID)) continue; // don't show any blog posts ?>


    <div class="whiteblock can_chg_bg">

    <a href="<?php the_permalink(); ?>"><?php if(get_post_meta($post->ID, 'images', true)) cp_single_image_legacy($post->ID, get_option('medium_size_w'), get_option('medium_size_h')); else cp_get_image($post->ID, 'medium', 1); ?></a>

    <div class="priceblockbig">

    <h3><a href="<?php the_permalink(); ?>"><?php if (strlen(get_the_title()) >= 45) echo substr(get_the_title(), 0, 45).'...'; else the_title(); ?></a></h3>

    <p class="price"><?php if(get_post_meta($post->ID, 'price', true)) cp_get_price_legacy($post->ID); else cp_get_price($post->ID); ?></p>

    <div class="clr"></div>

    <p class="bot4px dotted"><?php _e('Category','cp') ?>: <?php the_category(', ') ?> | <?php _e('Listed','cp') ?>: <?php echo cp_ad_posted($post->post_date); ?></p>
    <p class="descr"><?php echo substr(strip_tags($post->post_content), 0, 200).'...';?></p>

    <div class="clr"></div>

    </div>

    <div class="clr"></div>

    </div><!-- /whiteblock -->

    <?php endwhile; ?>

    <?php if(function_exists('cp_pagination')) cp_pagination(); ?>

    <?php else: ?>
    <div class="whiteblock can_chg_bg">
    <h3><?php _e('Sorry, no listings were found.','cp')?></h3>
    </div><!-- /whiteblock -->

    <?php endif; ?>

    <?php wp_reset_query(); ?>

    </div><!-- /block1 -->


    For me it's fine but on line I still have just 10 products on my home page.

  2. #12
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,009
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    It is just the same code that I have used. Anyway, try increasing in the Wordpress Admin-Reading the "Blog pages show at most" option from 10 to 20 or 30.
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #13
    Thread Starter
    Senior Member piplo's Avatar
    Join Date
    Oct 2010
    Location
    France
    Posts
    163
    Thanks
    1
    Thanked 0 Times in 0 Posts
    YES it's was just that HAHA many thanks.

  4. #14
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,009
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    I am just glad to know.
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [TUTORIAL] Different Sidebar on Category page than on Home Page
    By ddashwood in forum ClassiPress General Discussion
    Replies: 1
    Last Post: October 4th, 2010, 09:06 AM
  2. What page controls the category box on home page?
    By dollarpermile.com in forum Help Using ClassiPress
    Replies: 6
    Last Post: July 15th, 2010, 04:34 AM