I want to change the url structure for custom post type  post type --> movies  This url structure sitename.com/movies/post-name need to change sitename.com/custom-taxonomy/movies/post-name     /%customtaxonomy%/%customposttype%/%postname%/
4944
I am having trouble working with WordPress rewrite rules, and could use some help.  I have a custom post type called _shows_.  All shows have a single custom taxonomy category _show-category_. A _show_ will never have more than one _show-category_.  I would like my urls to route in this manner:  www.mysite.com/shows/  =&gt;  archive-shows.php  www.mysite.com/shows/%category%/ =&gt; taxonomy-show-category.php  www.mysite.com/shows/%category%/%postname%/ =&gt; single-shows.php   So as a real world example, lets say we have a _show-category_ "Foo" and a _show_ post titled "Bar" that has "Foo" as it's _show-category_. I would expect my WordPress app to look like this:  www.mysite.com/shows/foo/ =&gt; shows all posts under the foo category www.mysite.com/shows/foo/bar =&gt; shows the indivual post   I try to avoid plugins when possible, but am open to any solution.
14773
I created a custom post type:  register_post_type('sample_post_type',array(     'labels' =&gt; array(         'name' =&gt; _x('Sample Posts', 'post type general name'),         'singular_name' =&gt; _x('Sample Post', 'post type singular name')     ),     'public' =&gt; true,     'show_in_nav_menus' =&gt; false,     'exclude_from_search' =&gt; true ));   How can i disable the single post view for this specific post type? Displaying a simple 404 is fine, or redirecting to the homepage. This is inside a plugin, so i can't create a single-sample_post_type.php file to setup an empty page.
27305
As I pointed out in , the URL scheme for full-form links to answers has changed from:  https://site/questions/question-id/question-title/answer-id#answer-id   to:  https://site/questions/question-id/question-title#answer-id   Pretty much every link that redirects to an answer, including short-form links to answers (i.e. https://site/a/answer-id) and ?lastactivity links to questions, for example, now redirect to the latter form of URL, instead of the former one. (Interestingly, the responses tab in one's own user profile still consists of hard links to the old form.)  Why was this change made? It seems to have , as those are still looking for the old form of URL. Additionally, as per Tim Stone's comment, it also seems to have .  As a test for the above, I tried manually changing the URL to the old form, and it properly oneboxed in chat and properly changed the page and scrolled down.  It also briefly affected SmokeDetector (a community project that widely affects SE sites), until I filed an issue with them and had it fixed.  Was it done because search engines were showing multiple results, since it wasn't clear to them that they were looking at the same page since the URLs to answers were technically different?
68290
Please explain which is the best URL structure and why:  website.com/apartments-to-let/manhattan   or  website.com/apartments-to-let-manhattan   This is a property site. Is it best for the bots to break the properties/URL's down in categories?
16479
We have a site with categories and subcategories.  If anybody navigates to a content belongs to a subcategory the url will have the following form: domain/main-category/sub-category/mycontent/ But we need another form: domain/main-category/mycontent where mycontent belongs a subcategory inside main-category, but we don't want the subcategory to be displayed in the URL.  Is there any possible solution for this?
32459
I'm trying to change the logo url of the site to "mywebsite.com/side2", but it is not working, can anyone tell me where is the error in the code below?  add_filter( 'login_headerurl', 'custom_loginlogo_url' ); function custom_loginlogo_url($url) {  return home_url( 'side2' ); }
64663
Hi to the community, is it possible to change the default username slug to nickname if is available?    By default the url is something like: ) , is it possible to rewrite and change to ) so if a user change his nickname from the profile page the slug it will change also to the new name given by the user?  thanks a lot! Philip
117376
My php is weak and I'm trying to change this string:  http://www.example.com/backend.php?/c=crud&amp;m=index&amp;t=care                                    ^   to be:  http://www.example.com/backend.php?c=crud&amp;m=index&amp;t=care                                   ^   removing the / after the backend.php?. Any ideas on the best way to do this?  Thanks!
11642
Someone just edited a link in one of my answers to point to a 'better reference'.    I've no problem with links being changed in general, but this smells like part of a concerted attempt to redirect traffic.   Is this kind of activity acceptable on SO?
44970
Made this custom taxonomy that'll control layout on single posts, basically I want to add two options, Layout 1 and Layout 2.  // Register Custom Taxonomy function custom_taxonomy() {      $labels = array(         'name'                       =&gt; _x( 'Layout', 'Taxonomy General Name', 'text_domain' ),         'singular_name'              =&gt; _x( 'Layout', 'Taxonomy Singular Name', 'text_domain' ),         'menu_name'                  =&gt; __( 'Taxonomy', 'text_domain' ),         'all_items'                  =&gt; __( 'All Items', 'text_domain' ),         'parent_item'                =&gt; __( 'Parent Item', 'text_domain' ),         'parent_item_colon'          =&gt; __( 'Parent Item:', 'text_domain' ),         'new_item_name'              =&gt; __( 'New Item Name', 'text_domain' ),         'add_new_item'               =&gt; __( 'Add New Item', 'text_domain' ),         'edit_item'                  =&gt; __( 'Edit Item', 'text_domain' ),         'update_item'                =&gt; __( 'Update Item', 'text_domain' ),         'separate_items_with_commas' =&gt; __( 'Separate items with commas', 'text_domain' ),         'search_items'               =&gt; __( 'Search Items', 'text_domain' ),         'add_or_remove_items'        =&gt; __( 'Add or remove items', 'text_domain' ),         'choose_from_most_used'      =&gt; __( 'Choose from the most used items', 'text_domain' ),         'not_found'                  =&gt; __( 'Not Found', 'text_domain' ),     );     $capabilities = array(         'manage_terms' =&gt; 'foobar',         'edit_terms'   =&gt; 'foobar',         'delete_terms' =&gt; 'foobar',         'assign_terms' =&gt; 'foobar'      );     $args = array(         'labels'                     =&gt; $labels,         'hierarchical'               =&gt; true,         'public'                     =&gt; true,         'show_ui'                    =&gt; true,         'show_admin_column'          =&gt; false,         'show_in_nav_menus'          =&gt; false,         'show_tagcloud'              =&gt; false,         'capabilities'               =&gt; $capabilities,     );     register_taxonomy( 'Layout', array( 'post' ), $args );  }  // Hook into the 'init' action add_action( 'init', 'custom_taxonomy', 0 );   Capabilities are set to invalid values to stop terms from being edited, but I can't get wp_insert_term working.  Adding two terms to my custom taxonomy can't be so hard, right?  Using this to insert a term doesn't work, although if I changed my custom taxonomy name to 'category', ie WP default it works just fine. What gives?  function example_insert_category() {     $parent_term = term_exists( 'layout' ); // array is returned if taxonomy is given $parent_term_id = $parent_term['term_id']; // get numeric term id     wp_insert_term(         'Example Category',         'layout',         array(           'description' =&gt; 'This is an example category created with wp_insert_term.',           'slug'        =&gt; 'example-category'         )     ); } add_action( 'after_setup_theme', 'example_insert_category' );
73312
I have a static IP and hosted my site in this.Working fine. But I want to change the URL name (static IP) to a domain name. I have one domain name already registered.  I have http://xx.xx.xx.xx/ but I want to use something like http://www.mydomain.com  How can I achieve this?
101366
As I'm having quite many article under one of my categories (Investments), I'm thinking about creating new subcategories (e.g. Real Estate Investments) under my main category and move some posts there. Would moving some of my existing posts in the Investments category to a newly created subcategory (e.g. Real Estate Investments) impact my site negatively from an SEO point of view? Please note: My URL structure does not contain category name, so that's not an issue. I'm thinking more about cannibalisation, duplicate content etc.
55719
I have a site collection (of type enterprise KB) under the following URL http//servername/customer/questions where the customer is a wildcard managed path. now I want to change the site collection URL to be http://servername/customer/generalquestions.   so I am not sure how to change the site collection URL. I read that I can backup the current site collection, remove it,create a new site collection under the desired URL (customer/GeneralQuestion), restore the backup file on the new url.. but I am not sure if there is a more straightforward approach  to follow? using power shell or UI to accomplish this ?  Thanks
110226
I posted  that was . My original answer included a destination URL on TeX.SE and was therefore not automatically converted to it's title equivalent. However, now that the post has been migrated, the automatic conversion has still not taken place.  Interestingly, editing the post reveals an updated, converted title-form of the URL. Migrated post (now on TeX.SE):        Rendered post during an edit:        Is there a way to have these URLs automatically update across networks? Or, upon conversion (without a visible alternative/source), be updated?
47834
I am building a site with 4 custom post types. To make things easier for our client/admin, I'm wondering if there is a way to merge those custom post types into one list in the backend? Like if you look at normal backend admin page with the list and columns of posts, can a page like that pull in 3 other post types for easy sorting/searching?  I can't combine the CPTs into one, they must remain seperate outside of one 'viewing' page in the admin area if possible.  Any thoughts on how to do this?? Or even where to start looking/thinkging of how to develop this?
7008
I'm working for a website to convert the website URL to an SEO friendly URL. I plan to use this:  example.com/category-name/pageid-123-page-name  I looked at some similarly categorized, highly ranked websites. They have the same structure, except for one thing. In one case, the URL format was  example.com/category-name/pageid-123-page-name.html  Another was   example.com/category-name/pageid-123-page-name.php  Now I know the text in URLs help with SEO. Is it more helpful to have a file extension? If yes, which one is better?  Or if my current plan is okay, will it be better with a / at the end?
104037
I have about 130 products on my site, and I want the URL to look like this example.com/unique-product-name-ratings-reviews-prices.  Since I have 130 of these pages, I am concerned about the (ratings-reviews-prices) portion of the URL, and afraid it may look like keyword stuffing, though the page will contain info about all 3 of those things.