Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Please don’t bump, that’s not allowed here.

    What is the URL of the site you are having this pagination problem with?

    Thread Starter soufix

    (@soufix)

    Bumps are still not allowed; also, I moderated several duplicate topics which are also not tolerated here in the forum.
    if the solving of your problem is so urgent, consider to hire somebody; https://jobs.wordpress.net/

    does this also happen if you temporarily switch to the default theme Twenty Fourteen?

    have you edited any of the templates?

    have you reviewed https://codex.www.ads-software.com/Pagination ?

    have you contacted the theme’s developer?
    you seem to be using the theme ‘Dilapidated’ which is not one of the supported themes from https://www.ads-software.com/themes/

    Thread Starter soufix

    (@soufix)

    this is my index.php if u can find the prb , plz 4 days same prb plz

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <?php
    get_header();
    global $options;
    foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
    }
    ?>
    
    <?php query_posts('paged='.$paged.'&cat='.$theme_home_cats); if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    	<div class="post">
    
    		<h2><a>"><?php the_title(); ?></a></h2>
    
    		<div class="meta">
    			Posted <?php if (function_exists('time_since')) {
    			echo time_since(abs(strtotime($post->post_date_gmt . " GMT")), time()) . " ago";
    			} else {
    			the_time('d M Y');
    			} ?> in <?php the_category(', '); ?> <?php edit_post_link('(Edit Post)'); ?>
    		</div>
    
    		<div class="clear"></div>
    
    		<?php if((get_post_meta($post->ID, 'ghostpool_thumbnail', true) OR has_post_thumbnail()) && ($theme_thumbnails == "0")) { ?>
    
    			<div class="image-preview">
    				<a>"><?php if(get_post_meta($post->ID, 'ghostpool_thumbnail', true)) { ?><img src="<?php echo(get_post_meta($post->ID, 'ghostpool_thumbnail', true)); ?>" class="wp-post-image" alt="" /><?php } else { ?><?php the_post_thumbnail(('thumbnail'), array('title' => '')); ?><?php } ?></a>
    			</div>
    
    		<?php } ?>	
    
    			<div class="post-excerpt">
    
    				<?php if($theme_homepage_text_display == "1") { ?>
    					<?php the_content(); ?>
    				<?php } else {?>
    					<p><?php echo excerpt(120); ?></p>
    				<?php } ?>
    
    			</div><!--End post excerpt-->
    
    		<div class="meta right">
    			<a>" rel="bookmark" title="<?php the_title(); ?>">Read More</a> / <?php comments_popup_link('0 Comments', '1 Comment', '% Comment', 'comments-link', '-'); ?>
    		</div>
    
    	</div><!--End post-->
    
    <?php endwhile; ?>
    
    	<?php wp_pagenavi(); ?>
    
    <?php else : ?>	
    
    	<div class="post">
    		<h3>Page Not Found</h3>
    	</div>
    
    <?php endif; wp_reset_query(); ?>
    
    <?php get_footer(); ?>

    make sure the variables $paged and $theme_home_cats are properly defined;

    review the Codex information https://codex.www.ads-software.com/Pagination#Adding_the_.22paged.22_parameter_to_a_query, and apply it to:

    <?php query_posts('paged='.$paged.'&cat='.$theme_home_cats); if (have_posts()) : while (have_posts()) : the_post(); ?>

    in any case, using query_posts() in this way is not recommended – review https://wordpress.stackexchange.com/questions/1753/when-should-you-use-wp-query-vs-query-posts-vs-get-posts

    if the line is the original code from your theme, then you have to contact the theme’s developer.

    this forum here can only really help with themes which are from https://www.ads-software.com/themes/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pagination Doesn't Work’ is closed to new replies.