?page=2 works, but page/2/ does not.
-
Hi guys,
So I’ve been struggling with this problem for a while, trying a lot of different solutions, but I can’t seem to find any solution that actually helps me out.
So I have woocommerce installed and now I’m trying to show them on the frontpage which I made by using home.php with a custom wp_query. Now this all works fine and when I put ?page=2 behind my url it goes to the second page. However when I use the buttons that use pretty permalinks and go to /page/2/. It shows me a 404 page.
I have no idea why this is happening.
// Get current page $paged = (get_query_var('page')) ? get_query_var('page') : 1; // Product Query Arguments $args = array ( 'post_type' => array('product'), 'pagination' => true, 'posts_per_page' => '16', 'ignore_sticky_posts' => false, 'order' => 'DESC', 'orderby' => 'date', 'paged' => $paged ); // Product Query $loop = new WP_Query( $args );
Hope someone can help me out!
– Xevo
- The topic ‘?page=2 works, but page/2/ does not.’ is closed to new replies.