Title: Page_blog problem
Last modified: August 19, 2016

---

# Page_blog problem

 *  [drugoholic](https://wordpress.org/support/users/drugoholic/)
 * (@drugoholic)
 * [17 years ago](https://wordpress.org/support/topic/page_blog-problem/)
 * 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]](http://www.michelpharaon.com/newsfeed/page/2/) (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)

 *  Thread Starter [drugoholic](https://wordpress.org/support/users/drugoholic/)
 * (@drugoholic)
 * [17 years ago](https://wordpress.org/support/topic/page_blog-problem/#post-1055427)
 * Anyone? help..

Viewing 1 replies (of 1 total)

The topic ‘Page_blog problem’ is closed to new replies.

## Tags

 * [page](https://wordpress.org/support/topic-tag/page/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [drugoholic](https://wordpress.org/support/users/drugoholic/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/page_blog-problem/#post-1055427)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
