Support » Plugin: WP-Paginate » WP-Paginate – Template file – Alwayes return to the first page

Viewing 1 replies (of 1 total)
  • I’m writing to show my code, wich was moderated due to its size.
    So, the code is:

    <?php query_posts('category_name=category-name'); ?>
        <?php if (have_posts()) : ?>
             <h2>Title</h2>
                	<?php while (have_posts()) : the_post(); ?>
                                <h3><?php the_title(); ?></h3>
    		<?php endwhile; ?>
    		<?php if(function_exists('wp_paginate')) {
                        wp_paginate();
                    } ?>
      <?php endif; ?>

    My problem is that, the plugin creates the following url:
    http://www.mysite.com/TEMPLATE-PAGE/page/2/
    Once it happens, I’m redirected to the first page every time.

    But what I really needed is that the plugin creates a url like this:
    http://www.entrecactoos.com.br/category/CATEGORY-NAME/page/2/

    Where, my CATEGORY-NAME is the name of the category I’m calling with the query_post tag, at the beginning of my code.

    I need it to create a friendly SEO url that has /TEMPLATE-PAGE immediately after the http://www.mysite.com. If anyone knows an alternative to achieve it instead of creating a template page wich calls a loop of results, similar to the archive template but with a specific category, please help me!

Viewing 1 replies (of 1 total)
  • The topic ‘WP-Paginate – Template file – Alwayes return to the first page’ is closed to new replies.