How to create subdomain for custom post type and associated custom taxonomies

While multisite would give you exactly what you wanted via domain mapping, you’ve opted to throw away this option in favour of the much more time consuming and harder method of manual htaccess rewrites etc. The challenges you face include: Telling wordpress to rewrite the permalink URLs it outputs to shop.mysite.com but not for the … Read more

Modifying search results based on post_type

i think you can PHP it using an if statement.. like so: Say this is the loop.. (simple one i know): <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php $post_type = get_post_type_object( get_post_type($post) ); $post_type_name = $post_type->labels->singular_name if ($post_type_name == ‘example’) { echo ‘<div class=”highlight searchResults”>’; } else { … Read more

Custom post type, permalink, add query variables problem

Yes I did, didn’t help but thanks anyway! I fixed it by installing the dump environment plugin http://wordpress.org/extend/plugins/dump_env/ This way I was able to evaluate all existing rewrite rules. My custom rewrite rule was conflicting with an existing rewrite rule that WP generated for the custom post type by default. I changed my rule ‘kennel/ras/(.+)/(.+)/?$’ … Read more