WordPress.org

Ready to get started?Download WordPress

Forums

[closed] need help on classipress pagination not working after wp 3.4 update (18 posts)

  1. c10
    Member
    Posted 2 years ago #

    hi guys, i need help

    i have updated wordpress 3.4.1 but my pagination is not working i have a classipress theme i have gone through the other topics on this same topic but i dont know how to do it on classipress please i need help on this.

    i get "Page Note Found" when i click page 2, 3 or 4.

    plz help me on this.

  2. keesiemeijer
    moderator
    Posted 2 years ago #

    Since this is a commercial theme with its own functionality and support system, I recommend you contact the theme developer for assistance.

  3. c10
    Member
    Posted 2 years ago #

    thanks @keesiemeijer
    any other ideas besides contacting theme developer? u might be having some kinda code or something?? plz

  4. keesiemeijer
    moderator
    Posted 2 years ago #

    Without having access to the theme files it's very difficult to pinpoint the problem. Is this a pagination problem on your front page?

  5. c10
    Member
    Posted 2 years ago #

    yes the prob in pagination on the front page.

  6. keesiemeijer
    moderator
    Posted 2 years ago #

    Can you look for for something similar to query_posts(); in your theme's index.php and post that here. (Guessing that it has a query_post messing up the pagination)

  7. c10
    Member
    Posted 2 years ago #

    here>>>

    <?php get_header(); ?>
    
    <div class="content">
    
    	<div class="content_botbg">
    
    		<div class="content_res">
    
                <?php
    				if ( file_exists(STYLESHEETPATH . '/featured.php') )
    	                include_once(STYLESHEETPATH . '/featured.php');
        	        else
            	        include_once(TEMPLATEPATH . '/featured.php');
    			?>
    
            <!-- left block -->
            <div class="content_left">
    
                <?php if ( get_option('cp_home_layout') == 'directory' ) : ?>
    
                    <div class="shadowblock_out">
    
                        <div class="shadowblock">
    
                        <h2 class="dotted"><img src="http://i1020.photobucket.com/albums/af328/dardeals/newspaper.png">&nbsp;&nbsp;Ad Categories - (click a category name to browse ads)</h2>
    
                            <div id="directory" class="directory <?php if(get_option('cp_cat_dir_cols') == 2) echo 'two'; ?>Col">
    
                                <?php echo cp_cat_menu_drop_down(get_option('cp_cat_dir_cols'), get_option('cp_dir_sub_num')); ?>
    
                                <div class="clr"></div>
    
                            </div><!--/directory-->
    
                        </div><!-- /shadowblock -->
    
                    </div><!-- /shadowblock_out -->
    
                <?php endif; ?>
    
            <div class="tabcontrol">
    
                <ul class="tabnavig">
                  <li><a href="#block1"><span class="big"><img src="http://i1020.photobucket.com/albums/af328/dardeals/New_icons_23.gif">&nbsp&nbsp<?php _e('Just Listed','appthemes')?></span></a></li>
                  <li><a href="#block2"><span class="big"><?php _e('Most Popular','appthemes')?></span></a></li>
                  <li><a href="#block3"><span class="big"><?php _e('Random','appthemes')?></span></a></li>
    <li><a href="#block4"><span class="big"><?php _e('Events','appthemes')?></span></a></li>
                </ul>
    
                <!-- tab 1 -->
                <div id="block1">
    
                  <div class="clr"></div>
    
                  <div class="undertab"><span class="big"><?php _e('Classified Ads','appthemes') ?> / <strong><span class="colour"><?php _e('Just Listed','appthemes') ?></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;
                        query_posts( array('post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged) );
                    ?>
    
                    <?php get_template_part( 'loop', 'ad_listing' ); ?>
    
                </div><!-- /block1 -->
    
                <!-- tab 2 -->
                <div id="block2">
    
                  <div class="clr"></div>
    
                  <div class="undertab"><span class="big"><?php _e('Classified Ads','appthemes') ?> / <strong><span class="colour"><?php _e('Most Popular','appthemes') ?></span></strong></span></div>
    
                      <?php
                      // give us the most popular ads based on page views
                      $sql = $wpdb->prepare( "SELECT * FROM " . $wpdb->prefix . "cp_ad_pop_total a "
                           . "INNER JOIN " . $wpdb->posts . " p ON p.ID = a.postnum "
                           . "WHERE postcount > 0 AND post_status = 'publish' AND post_type = '".APP_POST_TYPE."' "
                           . "ORDER BY postcount DESC LIMIT 10" );
    
                      $pageposts = $wpdb->get_results( $sql );
    
    				  //run query_posts for correct pagination results
    				  // 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;
                      query_posts( array('post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged) );
                      ?>
    
                     <?php if ( $pageposts ) : ?>
    
                         <?php foreach ( $pageposts as $post ) : ?>
    
                             <?php setup_postdata( $post ); ?>
    
                             <div class="post-block-out">
    
    							  <div class="post-block">
    
    								  <div class="post-left">
    
    									  <?php if ( get_option('cp_ad_images') == 'yes' ) cp_ad_loop_thumbnail(); ?>
    
    								  </div>
    
    								  <div class="<?php if(get_option('cp_ad_images') == 'yes') echo 'post-right'; else echo 'post-right-no-img'; ?> <?php echo get_option('cp_ad_right_class'); ?>">
    
    									  <h3><a href="<?php the_permalink(); ?>"><?php if ( mb_strlen(get_the_title()) >= 75 ) echo mb_substr( get_the_title(), 0, 75 ).'...'; else the_title(); ?></a></h3>
    
    									  <div class="price-wrap">
    										  <span class="tag-head">&nbsp;</span><p class="post-price"><?php if ( get_post_meta($post->ID, 'price', true) ) cp_get_price_legacy( $post->ID ); else cp_get_price( $post->ID, 'cp_price' ); ?></p>
    									  </div>
    
    									  <div class="clr"></div>
    
    									  <p class="post-meta">
    										  <span class="folder"><?php if ( get_the_category() ) the_category(', '); else echo get_the_term_list( $post->ID, APP_TAX_CAT, '', ', ', '' ); ?></span> | <span class="owner"><?php if ( get_option('cp_ad_gravatar_thumb') == 'yes' ) appthemes_get_profile_pic( get_the_author_meta('ID'), get_the_author_meta('user_email'), 16 ) ?><?php the_author_posts_link(); ?></span> | <span class="clock"><span><?php echo appthemes_date_posted( $post->post_date ); ?></span></span></p>
    
    									  <p class="post-desc"><?php echo mb_substr( strip_tags($post->post_content), 0, 150 ).'...';?></p>
    
    									  <p class="stats"><?php if ( get_option('cp_ad_stats_all') == 'yes' ) appthemes_get_stats($post->ID); ?></p>
    
    									  <div class="clr"></div>
    
    								  </div>
    
    								  <div class="clr"></div>
    
    							  </div><!-- /post-block -->
    
    						</div><!-- /post-block-out -->	  
    
                        <?php endforeach; ?>
    
                          <?php if ( function_exists('appthemes_pagination') ) appthemes_pagination(); ?>
    
                    <?php else: ?>
    
                            <div class="shadowblock_out">
    
                            <div class="shadowblock">
    
                                <div class="pad10"></div>
    
                                <p><?php _e('Sorry, no listings were found.','appthemes')?></p>
    
                                <div class="pad50"></div>
    
                            </div><!-- /shadowblock -->
    
                        </div><!-- /shadowblock_out -->
    
                    <?php endif; ?>
    
    		<?php wp_reset_query(); ?>
    
                </div><!-- /block2 -->
    
                <!-- tab 3 -->
                <div id="block3">
    
                  <div class="clr"></div>
    
                  <div class="undertab"><span class="big"><?php _e('Classified Ads','appthemes') ?> / <strong><span class="colour"><?php _e('Random','appthemes') ?></span></strong></span></div>
    
                    <?php
                        // show all random ads but make sure the sticky featured ads don't show up first
                        $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
                        query_posts( array('post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged, 'orderby' => 'rand') );
                    ?>
    
                    <?php get_template_part( 'loop', 'ad_listing' ); ?>
    
                </div><!-- /block3 -->
    
    <!-- tab 4 -->
    <div id="block4">
    
                  <div class="clr"></div>
    
                  <div class="undertab"><span class="big"><?php _e('Classified Ads','appthemes') ?> / <strong><span class="colour"><?php _e('Events','appthemes') ?></span></strong></span></div>
    
                    <?php
                        // show all random ads but make sure the sticky featured ads don't show up first
                        $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
                        query_posts( array('post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged, 'orderby' => 'desc') );
                    ?>
    
                    <?php get_template_part( 'loop', 'ad_listing' ); ?>
    
                </div><!-- /block4 -->
    
              </div><!-- /tabcontrol -->
    
          </div><!-- /content_left -->
    
                <?php get_sidebar(); ?>
    
                <div class="clr"></div>
    <!-- /<img width="975" height="90" alt="Ad 1" src="http://www.975x90_21.jpg"></a> -->
            </div><!-- /content_res -->
    
        </div><!-- /content_botbg -->
    
    </div><!-- /content -->
    
    <?php get_footer(); ?>
  8. mukto90
    Member
    Posted 2 years ago #

    same problem here!
    My website: Bd-Bazar

  9. c10
    Member
    Posted 2 years ago #

    hi mukto90, i visited your site and saw your pagination is working, how did u manage to solve your problem? please help me also im having this problem and cant seem to find a solution for it.

  10. mukto90
    Member
    Posted 2 years ago #

    I downgrade my WordPress, I didn't get any other solutions! :( @c10

  11. c10
    Member
    Posted 1 year ago #

    hi keesiemeijer sorry for late late reply, i hope u can check for me the below code; i think this code has query_posts() in it please help me out on this!! :(

    <?php get_header(); ?>
    
    <div class="content">
    
    	<div class="content_botbg">
    
    		<div class="content_res">
    
                <?php
    				if ( file_exists(STYLESHEETPATH . '/featured.php') )
    	                include_once(STYLESHEETPATH . '/featured.php');
        	        else
            	        include_once(TEMPLATEPATH . '/featured.php');
    			?>
    
            <!-- left block -->
            <div class="content_left">
    
                <?php if ( get_option('cp_home_layout') == 'directory' ) : ?>
    
                    <div class="shadowblock_out">
    
                        <div class="shadowblock">
    
                            <h2 class="dotted"><?php _e('Ad Categories','appthemes')?></h2>
    
                            <div id="directory" class="directory <?php if(get_option('cp_cat_dir_cols') == 2) echo 'two'; ?>Col">
    
                                <?php echo cp_cat_menu_drop_down(get_option('cp_cat_dir_cols'), get_option('cp_dir_sub_num')); ?>
    
                                <div class="clr"></div>
    
                            </div><!--/directory-->
    
                        </div><!-- /shadowblock -->
    
                    </div><!-- /shadowblock_out -->
    
                <?php endif; ?>
    
            <div class="tabcontrol">
    
                <ul class="tabnavig">
                  <li><a href="#block1"><span class="big"><?php _e('Just Listed','appthemes')?></span></a></li>
                  <li><a href="#block2"><span class="big"><?php _e('Most Popular','appthemes')?></span></a></li>
                  <li><a href="#block3"><span class="big"><?php _e('Random','appthemes')?></span></a></li>
                </ul>
    
                <!-- tab 1 -->
                <div id="block1">
    
                  <div class="clr"></div>
    
                  <div class="undertab"><span class="big"><?php _e('Classified Ads','appthemes') ?> / <strong><span class="colour"><?php _e('Just Listed','appthemes') ?></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;
                        query_posts( array('post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged) );
                    ?>
    
                    <?php get_template_part( 'loop', 'ad_listing' ); ?>
    
                </div><!-- /block1 -->
    
                <!-- tab 2 -->
                <div id="block2">
    
                  <div class="clr"></div>
    
                  <div class="undertab"><span class="big"><?php _e('Classified Ads','appthemes') ?> / <strong><span class="colour"><?php _e('Most Popular','appthemes') ?></span></strong></span></div>
    
                      <?php
                      // give us the most popular ads based on page views
                      $sql = $wpdb->prepare( "SELECT * FROM " . $wpdb->prefix . "cp_ad_pop_total a "
                           . "INNER JOIN " . $wpdb->posts . " p ON p.ID = a.postnum "
                           . "WHERE postcount > 0 AND post_status = 'publish' AND post_type = '".APP_POST_TYPE."' "
                           . "ORDER BY postcount DESC LIMIT 10" );
    
                      $pageposts = $wpdb->get_results( $sql );
    
    				  //run query_posts for correct pagination results
    				  // 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;
                      query_posts( array('post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged) );
                      ?>
    
                     <?php if ( $pageposts ) : ?>
    
                         <?php foreach ( $pageposts as $post ) : ?>
    
                             <?php setup_postdata( $post ); ?>
    
                             <div class="post-block-out">
    
    							  <div class="post-block">
    
    								  <div class="post-left">
    
    									  <?php if ( get_option('cp_ad_images') == 'yes' ) cp_ad_loop_thumbnail(); ?>
    
    								  </div>
    
    								  <div class="<?php if(get_option('cp_ad_images') == 'yes') echo 'post-right'; else echo 'post-right-no-img'; ?> <?php echo get_option('cp_ad_right_class'); ?>">
    
    									  <h3><a href="<?php the_permalink(); ?>"><?php if ( mb_strlen(get_the_title()) >= 75 ) echo mb_substr( get_the_title(), 0, 75 ).'...'; else the_title(); ?></a></h3>
    
    									  <div class="price-wrap">
    										  <span class="tag-head">&nbsp;</span><p class="post-price"><?php if ( get_post_meta($post->ID, 'price', true) ) cp_get_price_legacy( $post->ID ); else cp_get_price( $post->ID, 'cp_price' ); ?></p>
    									  </div>
    
    									  <div class="clr"></div>
    
    									  <p class="post-meta">
    										  <span class="folder"><?php if ( get_the_category() ) the_category(', '); else echo get_the_term_list( $post->ID, APP_TAX_CAT, '', ', ', '' ); ?></span> | <span class="owner"><?php if ( get_option('cp_ad_gravatar_thumb') == 'yes' ) appthemes_get_profile_pic( get_the_author_meta('ID'), get_the_author_meta('user_email'), 16 ) ?><?php the_author_posts_link(); ?></span> | <span class="clock"><span><?php echo appthemes_date_posted( $post->post_date ); ?></span></span></p>
    
    									  <p class="post-desc"><?php echo mb_substr( strip_tags($post->post_content), 0, 150 ).'...';?></p>
    
    									  <p class="stats"><?php if ( get_option('cp_ad_stats_all') == 'yes' ) appthemes_get_stats($post->ID); ?></p>
    
    									  <div class="clr"></div>
    
    								  </div>
    
    								  <div class="clr"></div>
    
    							  </div><!-- /post-block -->
    
    						</div><!-- /post-block-out -->	  
    
                        <?php endforeach; ?>
    
                          <?php if ( function_exists('appthemes_pagination') ) appthemes_pagination(); ?>
    
                    <?php else: ?>
    
                            <div class="shadowblock_out">
    
                            <div class="shadowblock">
    
                                <div class="pad10"></div>
    
                                <p><?php _e('Sorry, no listings were found.','appthemes')?></p>
    
                                <div class="pad50"></div>
    
                            </div><!-- /shadowblock -->
    
                        </div><!-- /shadowblock_out -->
    
                    <?php endif; ?>
    
    		<?php wp_reset_query(); ?>
    
                </div><!-- /block2 -->
    
                <!-- tab 3 -->
                <div id="block3">
    
                  <div class="clr"></div>
    
                  <div class="undertab"><span class="big"><?php _e('Classified Ads','appthemes') ?> / <strong><span class="colour"><?php _e('Random','appthemes') ?></span></strong></span></div>
    
                    <?php
                        // show all random ads but make sure the sticky featured ads don't show up first
                        $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
                        query_posts( array('post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged, 'orderby' => 'rand') );
                    ?>
    
                    <?php get_template_part( 'loop', 'ad_listing' ); ?>
    
                </div><!-- /block3 -->
    
              </div><!-- /tabcontrol -->
    
          </div><!-- /content_left -->
    
                <?php get_sidebar(); ?>
    
                <div class="clr"></div>
    
            </div><!-- /content_res -->
    
        </div><!-- /content_botbg -->
    
    </div><!-- /content -->
    
    <?php get_footer(); ?>
  12. keesiemeijer
    moderator
    Posted 1 year ago #

    I'm sorry but this is a very complex query. I cannot duplicate or test this on my testsite (because I don't have access to all the theme files).

    Your purchase should have included support from either the theme author or where you purchased the theme from. It would be best to contact them for specific instructions on how to solve this problem.
    http://forums.appthemes.com/using-classipress-questions-troubleshooting/

    Have you checked if you're using the latest version of the theme?

  13. c10
    Member
    Posted 1 year ago #

    i hv not purchased this theme i dowloaded it from other site, thts y im not able to post bout this problem on apptheme forum.

  14. keesiemeijer
    moderator
    Posted 1 year ago #

    Then I would suggest you purchase the theme (as you should have) and ask for support from the vendor or use a different theme.

    http://wordpress.org/extend/themes/

  15. c10
    Member
    Posted 1 year ago #

    okayyyy,, any suggestions what is the next best classified ads themes besides classipress

  16. keesiemeijer
    moderator
    Posted 1 year ago #

    I Haven't got a clue. Feel free to make a new topic for that question.
    http://wordpress.org/support/forum/themes-and-templates#postform

  17. sadoknet
    Member
    Posted 1 year ago #

    Hi c10,

    Did you find a solution to your problem ?
    I have the same problem :(

    Thanks

  18. free_soft
    Member
    Posted 1 year ago #

    Hi, this solution is not exactly what you ask for but is the only solution i found:

    1) First of all install this plugin:
    http://www.adostudio.it/blog/simple-custom-posts-per-page-397
    and activate it.

    2)In admin panel go to settings>reading and change"The Ads show at most" to th number you want to display.

    3)Find /wp-content/themes/ClassiPress/style.css
    open it
    and in line:365 change this:

    /* pagination */
    .paging {-moz-border-radius:6px 6px 6px 6px;background:none repeat scroll 0 0 #FFFFFF;border:1px solid #BBBBBB;margin:0 0 4px;padding:8px;}

    to that:

    /* pagination */
    .paging {-moz-border-radius:6px 6px 6px 6px;background:none repeat scroll 0 0 #FFFFFF;border:1px solid #BBBBBB;margin:0 0 4px;padding:8px; display:none;}

    4)Find /wp-content/themes/ClassiPress/index.php
    open it and you will find 3 blocks. <div id="block1"><div id="block2"><div id="block3">. Before the closing </div> of the blocks put this link that drives the user in a different page that shows all ads.

    For example: `<?php
    Echo "<a href="http://www.YOURSITE.com/PRODUCT_PAGE/" />Show More Ads"
    ?>`

    5)In the same file /wp-content/themes/ClassiPress/PRODUCT_PAGE.php put that code before custom query for your loop:
    <?php $GLOBALS['ado_cspp_disable']="ad_listing"; ?>

    * For the PRODUCT_PAGE.php i create a new template tpl-products.php that is a duplication of index.php without categories. If you want more informations about that solution reply to me.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags