custom taxonomy archive permalink shows 404 error
I solved this issue by making sure that the calls to register my taxonomies were placed before the calls to registering my custom post types. Weird but it works!
I solved this issue by making sure that the calls to register my taxonomies were placed before the calls to registering my custom post types. Weird but it works!
All you have to do to achieve this is to modify the category taxonomy arguments by using register_taxonomy() again at the init hook after the category taxonomy has been registered. This can be done with any taxonomy as in the following snippet. Code for Taxonomies in General (Code for this use case below): function mytheme_change_category_args() … Read more
You can add an endpoint to your URIs to handle special requests. Here is a basic example as plugin. To understand what’s going on read Christopher Davis‘s fantastic tutorial A (Mostly) Complete Guide to the WordPress Rewrite API. <?php # -*- coding: utf-8 -*- /** * Plugin Name: T5 Endpoint Example * Description: Adds a … Read more
There are probably more problems with your question than with WordPress. To get an insightful answer, it’d help to get us a clear idea about your setup. Don’t be shy about hiding your website link and it’s structure. This can help us figure it out. To get the rewrite rules of your blog add_action (‘template_redirect’, … Read more
You’re wanting to use “Pretty Permalinks” and in order to do so you need to have some form of rewrite documentation present. The easiest and most common is a .htaccess file to hold the rewrite rules. Do you have an .htaccess present for the site? If you do not, you can reference the WordPress Codex … Read more
You can try this but not 100% sure it will work since the post_id is not in the original permalink structure. RedirectMatch 301 ^/([0-9]{4})/([^/]+)/([^/]+).html$ http://domain.com/$2/$3/
Post in Multiple Categories to stay in current category (permalink, next previous post link)
I was able to achieve this effect by updating the category slug. Under posts, go to Categories. Select the category you are working with and update the slug to “resources”. Now, if you visit the category archive for Resource, you should see the URL form thus: example.com/resources/.
Stop redirecting to posts not in a category / duplicate slugs
download a copy of wordpress.zip file then unzip it, copy /wp-admin/includes/update-core.php file and overwrite the one on the problem site. that worked for me.