Title: tag error
Last modified: August 19, 2016

---

# tag error

 *  [raddy59](https://wordpress.org/support/users/raddy59/)
 * (@raddy59)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/tag-error/)
 * I amended “index.php” to have the home page select just 1 post from 1 category
 * the code looks like this
 * <?php
    get_header(); query_posts(‘category_name=Editors Choice&posts_per_page
   =1’); ?>
 * and works a treat.
 * However – I now get an <Older entries> tag at the bottom that takes me to a new
   page ([http://formbyfocus.co.uk/?paged=2](http://formbyfocus.co.uk/?paged=2))
   showing the same post as on the home page. A further hitting the button takes
   me to the same post on a newer page
 * I tried disabling all plugins but it is still the same?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/tag-error/#post-1865121)
 * to support pagination, you need to use the ‘paged’ parameter in the query:
 * [http://codex.wordpress.org/Function_Reference/query_posts#Pagination_Parameters](http://codex.wordpress.org/Function_Reference/query_posts#Pagination_Parameters)
 * your code could look like:
 *     ```
       <?php
       get_header();
       $paged = (get_query_var('page')) ? get_query_var('page') : 1;
       query_posts('category_name=Editors Choice&posts_per_page=1&paged=' . $paged);
       ?>
       ```
   
 *  Thread Starter [raddy59](https://wordpress.org/support/users/raddy59/)
 * (@raddy59)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/tag-error/#post-1865124)
 * Still get the <older entries> tag
 * > <?php # error_reporting(-1);
   >  list($bfa_ata, $cols, $left_col, $left_col2, 
   > $right_col, $right_col2, $bfa_ata[‘h_blogtitle’], $bfa_ata[‘h_posttitle’]) 
   > = bfa_get_options(); get_header(); extract($bfa_ata);
   > ?>
   >  <?php get_header(); $paged = (get_query_var(‘page’)) ? get_query_var(‘page’):
   > 1; query_posts(‘category_name=editors-choice&posts_per_page=1&paged=’ . $paged);?
   > >
   > <?php /* If there are any posts: */
   >  if (have_posts()) : $bfa_ata[‘postcount’]
   > = 0; /* Postcount needed for option “XX first posts full posts, rest excerpts”*/?
   > >
   >  <?php include ‘bfa://content_above_loop’; ?>
   >  <?php while (have_posts()) : the_post(); $bfa_ata[‘postcount’]++; ?>
   >  <?php include ‘bfa://content_inside_loop’; ?>
   >  <?php endwhile; ?>
   >  <?php include ‘bfa://content_below_loop’; ?>
   > <?php /* END of: If there are any posts */
   >  else : /* If there are no posts:*/?
   > >
   > <?php include ‘bfa://content_not_found’; ?>
   > <?php endif; /* END of: If there are no posts */ ?>
   > <?php # center_content_bottom does not exist
   >  # if ( $bfa_ata[‘center_content_bottom’]!
   > = ” ) include ‘bfa://center_content_bottom’; ?>
   > <?php get_footer(); ?>
 *  Thread Starter [raddy59](https://wordpress.org/support/users/raddy59/)
 * (@raddy59)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/tag-error/#post-1865125)
 * In fact I stay on the home page – which is good – just got the tag displaying
   
   grrrr!
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/tag-error/#post-1865127)
 * in case your wordpress version is lower than 3.02, try to use `get_query_var('
   paged')`:
 *     ```
       <?php
       get_header();
       $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       query_posts('category_name=editors-choice&posts_per_page=1&paged=' . $paged);
       ?>
       ```
   
 * and there is also the atahualpa forum:
    [http://forum.bytesforall.com/](http://forum.bytesforall.com/)
 *  Thread Starter [raddy59](https://wordpress.org/support/users/raddy59/)
 * (@raddy59)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/tag-error/#post-1865137)
 * thanks alchymth
 * No difference I’m afraid, but many thanks for your help
 * P
 * PS
    I have the same q on BFA, still waiting

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘tag error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [raddy59](https://wordpress.org/support/users/raddy59/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/tag-error/#post-1865137)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
