Pagination problem on custom pages
-
Hi, I have been using Minamaze now for quite some time, and I love the theme. However I wanted to have some custom pages in order to display my categories rather than having dynamic URLs such as:
/category/phones
I wanted the physical page so my website read:
http://www.techradiance.co.uk/smartphones
Therefore I manually created these pages, and edited the PHP of page.php to the following:
<?php /** * The template for displaying all pages. * * This is the template that displays all pages by default. * * @package ThinkUpThemes */ get_header(); ?> <?php //Phones if(is_page('404')){query_posts("cat=2");} //Laptops else if(is_page('654')){query_posts("cat=60");} //Desktops else if(is_page('667')){query_posts("cat=61");} //Tablets else if(is_page('656')){query_posts("cat=62");} //Apps else if(is_page('670')){query_posts("cat=63");} //hardware else if(is_page('758')){query_posts("cat=72");} ?> <?php //If the page is the about page (ID 5) if(is_page('9') || (is_page('5'))) { ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php thinkup_input_allowcomments(); ?> <hr class="thickHR"> <?php endwhile; ?> <?php } else { ?> <?php if( have_posts() ): ?> <?php while( have_posts() ): the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class('blog-article'); ?>> <?php if ( has_post_thumbnail() ) { $column1 = ' two_fifth'; $column2 = ' three_fifth last'; } else { $column1 = NULL; $column2 = NULL; } ?> <header class="entry-header<?php echo $column1; ?>"> <?php thinkup_input_blogimage(); ?> </header> <div class="entry-content<?php echo $column2; ?>"> <?php think_input_blogtitle(); ?> <?php thinkup_input_blogmeta(); ?> <?php thinkup_input_blogtext(); ?> </div> <div class="clearboth"></div> </article><!-- #post-<?php get_the_ID(); ?> --> <?php endwhile; ?> <?php thinkup_input_pagination(); ?> <?php else: ?> <?php get_template_part( 'no-results', 'archive' ); ?> <?php endif; ?> <?php } ?> <?php get_footer(); ?>My issue now is that the pagination does not work with the code I have included, if I type:
http://www.techradiance.co.uk/smartphones/page/2
The same results show up.. when it should show up the same as shown on the category page:
http://www.techradiance.co.uk/category/smartphones/page/2
Does anyone know how to fix this? or a more simple fix, how could I import the code from:
http://www.techradiance.co.uk/smartphones/page/2
to my own custom page?
Many thanks in advance
The topic ‘Pagination problem on custom pages’ is closed to new replies.
