wp_dropdown_categories links 404

Here is the answer I was looking for. Staring me right in the face. I have managed to fix this issue with a simple addition to the code. &value_field=slug So final code which works and maybe of help in the future. <form action=”<?php bloginfo(‘url’); ?>/” method=”get”> <label for=””>Search.</label> <?php $select = wp_dropdown_categories( ‘taxonomy=YOURTAXONOMY &name=YOURTAXONOMY &show_option_all=Please … Read more

Add pagination to search.php page

Sometimes pagination will break and give unexpected results, redirect you to the wrong page or give you a 404 (page not found) on the “paged” pages. This is usually due to your theme altering (querying) the main loop wrong. Try updating your .htaccess file by updating the permalink.

WP gives 404 error for custom post type with GET variable

Numbers work because single posts can have pagination, and there is a rewrite rule to support that. If you want to add an additional parameter after a permalink, add a rewrite endpoint. add_rewrite_endpoint( ‘show’, EP_PERMALINK ); EDIT- Here’s an internal rewrite example, assuming your custom post type slug is type1: add_rewrite_rule( ‘c/([^/]+)/([^/]+)/([^/]+)/?$’, ‘index.php?type1=$matches[1]&type2=$matches[3]’, ‘top’ );