404 on form submit [duplicate]

Do not use variable name “name” for html textbox control, use something else. This behavior is due to internal handling of WordPress with “name” variable found in query string of posted data.

Pagination (page/2/) displaying 404 on archive pages

Found the answer!!! Put this in functions.php (or a required file). Of course, change it to suit your needs. I needed something that only worked for product category archives. function modify_product_cat_query( $query ) { if (!is_admin() && $query->is_tax(“product_cat”)){ $query->set(‘posts_per_page’, 2); } } add_action( ‘pre_get_posts’, ‘modify_product_cat_query’ ); I also took out the posts_per_page parameter from my … Read more