Slug for custom post type archive

Nothing appears to be incorrect – (and I assumed you’ve gone to saved your permalink structure to flush the rewrite rules as the comments suggest? 🙂 ). I would recommend using this plug-in to determine problems with your url-redirection: http://wordpress.org/extend/plugins/monkeyman-rewrite-analyzer/ – update your question with your findings and someone may be able to offer a … Read more

Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin

Background & Core Functionality Why a Taxonomy Path Slug Alone Produces a 404 However this slug doesnt work. mysite.com/wiki/help-topics throws a 404. WordPress does not provide a mechanism for “an archive of taxonomy terms” out of the box – that is, neither the template hierarchy nor the WP_Query/WP_Tax_Query logic support a direct display of terms … Read more

Need help with rewrite_rules_array

Try this: function when_rewrite_rules( $wp_rewrite ) { $new_rules = array(); $new_rules[‘category/tasks/(\d*)$’] = ‘index.php?when=$matches[1]’; $wp_rewrite->rules = $new_rules + $wp_rewrite->rules; } add_filter(‘generate_rewrite_rules’,’when_rewrite_rules’);

How to remove the index.php in the url?

The problem likely has to do with the server settings in Nginx for your blog. It’s likely that the location rules for /blog/ are wrong, specifically try_files. It should look like this: location /blog/ { try_files $uri $uri/ /index.php$is_args$args; } This tells Nginx the order in which it should try to find the requested resource. … Read more

rewrite_rule() not preserving the query string

If faculty is a child page of meetings, the rule should be: add_rewrite_rule( ‘meetings/faculty/([^/]+)/?$’, ‘index.php?pagename=meetings/faculty&hash=$matches[1]’, ‘top’ ); pagename=meetings/faculty instead of p=1598 EDIT- or alternately: add_rewrite_rule( ‘meetings/faculty/([^/]+)/?$’, ‘index.php?page_id=1598&hash=$matches[1]’, ‘top’ ); page_id=1598 instead of p=1598

Taxonomy archives based on Custom Post Type

Here is a complete example made possible using add_rewrite_rule(). The basic setup for this example is documented first, then we’ll get to the real part of the solution using add_rewrite_rule(). Taxonomy and Post Type registration Register the genre taxonomy and the book, movie, and game post types (note that the singular version of each of … Read more

WordPress URLs without posts

Yes, it is possible. WordPress frontend workflow can be summarized like so: A url is visited By checking current url against all the defaults and custom rewrite rules the url is “converted” to a set of arguments for WP_Query. This is done by the parse_request method of an instance of the WP class stored in … Read more