Custom URLs in Custom Search Results

You can get close to what you want by using the template_redirect hook. function my_custom_search_url_rewrite() { if ( is_search() && ! empty( $_GET[‘s’] ) ) { wp_redirect( home_url( “/search/” ) . urlencode( get_query_var( ‘s’ ) ) ); exit(); } } add_action( ‘template_redirect’, ‘my_custom_search_url_rewrite’ ); Then you can use a URL like http://domain.com/search/category+location/. If you then … Read more

find posts that don’t have a custom taxonomy

Emily’s answer is mostly correct, just that the operator shouldn’t have an underscore in it: $args = array( ‘post_type’ => ‘my_post_type’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘series’, ‘operator’ => ‘NOT EXISTS’, ), ), ); $query = new WP_Query( $args );

How to rename custom taxonomy URL with extra words

You’d be better off adding or modifying the rewrite variable that’s being passed to your register_taxonomy() call for the custom taxonomy. You can modify the rewrites to suit your purpose. For example: $taxonomy_args = array( // All the variables and their values… ‘rewrite’ => array( ‘slug’ => ‘services/home-care’, ), // …more variables and values… ); … Read more