• Hey there, I have edited my page_blog.php to display 8 articles (french and arabic) and it’s working but the problem is when you click on “Next Page” it’ll take you to page 2/3/4/5/6 but the articles are not changing, even though I have more than 8 articles posted on my site.

    This is my site: [LINK] (pass guest/guest)

    This is the code page_blog.php

    <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("showposts=4&amp;paged=$page"); while ( have_posts() ) : the_post() ?>
    
                <?php
    				$arabic="";
    				foreach((get_the_category()) as $category) {
    				if($category->cat_name=="Arabic"){
    				$arabic='1';
    				echo '<div style="text-align:right;">';
    				} }
    				?>
    		<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    		<?php if($arabic=="1"){ the_excerpt_rereloaded('200','<strong>???????</strong>','<a>,<i>,<em>,<b>,<strong>,<ul>,<ol>,<li>,<span>,<blockquote>','plain'); } else{ the_excerpt_rereloaded('50','<strong>Suite</strong>','<a>,<i>,<em>,<b>,<strong>,<ul>,<ol>,<li>,<span>,<blockquote>','plain');} ?>
            				<div class="hpfeedmeta">
    					<p><?php the_time('j F, Y'); ?> | <?php comments_popup_link('Aucun commentaire', '1 Commentaire', '% Commentaires'); ?></p>
    				</div>
                    <?php
    				if($arabic=="1"){
    				echo '</div>';
    				}
    				?>
    
    			<div class="postmeta2">
    				Tagged: <?php the_tags('') ?>
    			</div>
    
    			<?php endwhile; ?>
    
    			<p align="right"><strong><?php
    			 if(get_query_var('paged')=='2'){
    			 echo '<a href="/">&laquo; Accueil</a> | ';
    			 next_posts_link('Page Suivante &raquo;');
    			 }else{
    			 posts_nav_link(' | ', '&laquo; Page Précédente', 'Page Suivante &raquo;');
    			 }
    			 ?></strong></p>

    Please tell me what am I doing wrong here?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Page_blog problem’ is closed to new replies.