louissoriano
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Page 2,3 etc.. in blog redirecting to homepageI actually have the same problem. The next page (next_post_link) is redirecting me to index.php template. Can you explain further in specific how u are able to solve the problem? Sorry I’m new to wordpress and can’t quite understand your solution to the problem. Below is the code I use
<?php $wp_query = new WP_Query(); $wp_query->query('category_name=nail-salon&showposts=1&order=ASC'.'&paged='.$paged); ?> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php the_content(); ?> <div style="clear:right;"></div> <br /><br /> <div class="float-right" style="margin-left:10px;"><p><?php next_posts_link('More »') ?></p></div> <div class="float-right"><p><?php previous_posts_link('« Previous') ?></p></div> <?php endwhile;?>
Forum: Fixing WordPress
In reply to: wp query pagination always redirecting to index.phpTo follow up, it actually redirects to index.php template file, which it shouldn’t.
Forum: Fixing WordPress
In reply to: wp query pagination always redirecting to index.phpOh, actually the category link is in this page
https://www.avalonsalondayspa.com/category/nail-salon/and when I click what’s supposed to be the next link (more link), it rediretcs to index.php
https://www.avalonsalondayspa.com/category/nail-salon/page/2/
Thank you for your reply.
Forum: Fixing WordPress
In reply to: wp query pagination always redirecting to index.phpI am not sure if I should insert some code in my index.php to fix this because I am not using my index page in any of my template in wordpress. Thank you for your help as I am stuck with this problem for 3 days now. Cheers.