wordpress home is gone
Have you tried going to Settings->Permalinks and hitting ‘Save’? You don’t even need to change anything, but I’m pretty sure it refresh’s WordPress’ .htaccess file.
Have you tried going to Settings->Permalinks and hitting ‘Save’? You don’t even need to change anything, but I’m pretty sure it refresh’s WordPress’ .htaccess file.
This is a matter of your template. To display the subcategories in a list view as well you would have to customize the template. I do not know what kind of template you use and how the file is named which displays the subcategories, but you could change it so that it displays the articles … Read more
For sure. Just set your structure to: /blog/%postname%/ or /blog/%category%/%postname%/. Permalink structure is only for posts ;D
Are you asking if you could do something like this: /states/%postname%/ In the permalink structure? As to why it’s giving back a 404 I’m not sure.
try to set rewrite as parameter in $args register_post_type function. Sample: function codex_custom_init() { $labels = array( ‘name’ => _x(‘Books’, ‘post type general name’), ‘singular_name’ => _x(‘Book’, ‘post type singular name’), ‘add_new’ => _x(‘Add New’, ‘book’), ‘add_new_item’ => __(‘Add New Book’), ‘edit_item’ => __(‘Edit Book’), ‘new_item’ => __(‘New Book’), ‘all_items’ => __(‘All Books’), ‘view_item’ => … Read more
in short this is normal … i guess you added stuff to your .htaccess file between the # BEGIN WordPress and # END WordPress What happened when you changed the permalinks is that WordPress changed that section of the .htaccess file. So you need to open and insert the rewrite rules into your .htaccess file … Read more
after_setup_theme is the wrong action to register post types. See register_post_type in Codex: Do not use register_post_type before init.
You’ll need to add a rewrite rule as well as the filter you have written. At the moment your filter only changes what is output when the author_link function is called, not WordPress’ permalink structure.
It’s not necessarily a fix, but you should be able to use the Rewrite Analyzer plugin to help you understand how WP is rewriting your links.
You’ll want to use a tool like Velvet Blues Update URLs to help you update all of your URLs automatically for you. Thanks!