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

Change loop.php for empty search customization

I feel bad for answering my own question on here, but here’s what I did. I created a custom search template, a custom searchform.php and changed my header.php to reflect my custom search page. What I did is rename the search box names to search instead of s to get around WordPress automatically running search.php … Read more