Changing permalink settings causes 404

There are several possibilities: you may need to enable mod_rewrite on the Ubuntu server or check/fix permissions to allow WordPress to write to the .htaccess file. Best thing to do is read http://codex.wordpress.org/Using_Permalinks and work through suggestions.

How to setup a permalink structure for a custom post type

I think you need to use the rewrite argument. Here’s an example setting the url to tips $args = array( ‘public’ => true, ‘publicly_queryable’ => true, ‘show_ui’ => true, ‘show_in_menu’ => true, ‘query_var’ => true, ‘rewrite’ => array( ‘slug’ => ‘tips’ ), // Here! ‘capability_type’ => ‘post’, ‘has_archive’ => true, ‘hierarchical’ => false, ‘menu_position’ => … Read more

WordPress Permalink

This might help you: Go to your Settings => Permalinks => Cutom Structure And paste this: /category/%category%/article/%postname%/ Also paste this on Category Base field: category This will work for category but when you visit any post you will be welcomed with 404 page not found (Isn’t it nice?). So stealing from this answer Add this … Read more

Can’t get the previous and next posts permalink

You could use different code. As an example, this modified code from the Twenty Fourteen parent theme which i tested on other themes works well. Add this to a new file named template-tags.php <?php if ( ! function_exists( ‘wpsites_post_nav’ ) ) : function wpsites_post_nav() { $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : … Read more

Change permalinks for custom post type based on taxonomy term

Use Category base and Tag base Permalink The Category base and Tag base are prefixes used in URLs for category and tag archives, which look like this: example.net/wp/category_base/category_name example.net/wp/tag_base/tag_name The default values for these are category and tag. You can change them, but you can’t remove them from the URLs altogether. Custom permalinks work on … Read more