Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"

learn more… | top users | synonyms (1)

0
votes
1answer
462 views

Edit Permalink Structure For Custom Post Type or Modify .htaccess?

I've been trying to find a solution for days now and I am absolutely stumped. I am putting together a website to list my domain portfolio for sale and I'm using a plugin I purchased to lists the ...
1
vote
0answers
16 views

Custom Permalink Structure Redirects Pages to Homepage

I'm trying to add a custom field to my post types permalink structure - for the test purposes I've simplified the code. The custom permalinks work but the issue is that Top Level Pages redirect to the ...
0
votes
1answer
47 views

URL rewriting taxonomy term

I'm trying to find solution for the following hours now and i don't know if this is applicable. I have 1 Custom Taxonomy "Years" for Post Type "Post (default)". The taxonomy has 2 Terms: "2014" and "...
0
votes
0answers
18 views

Rewrite rule with a custom post type and a custom field

I'm creating a website that will display, from a search by location, a list of singer. If we click on a singer I will have to display that singer with the city inside the url. Here are the two ...
0
votes
1answer
24 views

Page Permalinks: Custom URLs

I'm trying to make URLs that have different "routes", per say. I don't know how to explain it, but on the site I had to move, the owners want it to have different suburl URL directories. Problem is, I ...
23
votes
1answer
35k views

How to create custom URL routes?

I have a very peculiar requirement, hopefully I can explain it without being too confusing. I created a page template where I list some properties I get from an external XML file, so far no problems, ...
3
votes
1answer
515 views

How to remove admin.php?page= from admin using .htaccess?

I've been looking for this everywhere, and can't find it - so I apologize if it is a duplicate question. I can't believe it hasn't been asked before... So please direct me if it has :) I'm looking ...
2
votes
1answer
87 views

How to add dot(“.”) in post slug

How to add dot(.) in post slugs? In our blog, we are writing about websites and would like to use their exact address as slug like this: ourdomain.com/example1.com But dots are either removed when ...
3
votes
2answers
3k views

Passing parameters to a custom page template using clean urls

I am now passing parameters to a custom template in the following format www.example.com/?pageid=12&rid=24&title=this-is-the-title I have created two tables . So I need to fetch data and ...
0
votes
0answers
9 views

Rewrite rule to match any child page

I have this code to add a custom rewrite rule, based on this post. When I use the snippet as-is from the other post, it works and loads page.php. But, when I try to have my regex match letters instead ...
0
votes
1answer
457 views

How do I remove a word from a url in Wordpress using .htaccess?

In the site I'm building there is a post-type called "Focus". Since they need to url to be like www.mysite.com/focus/page-post-name I have the post type slug as "focus". Of course the archive page is ...
0
votes
1answer
702 views

Custom url structure - pages under a custom post type

I'm struggling with the structure of my Wordpress site and I was hoping you might be able to give me some advice. The site is for a series of events and the structure is as follows: Gateway (...
-2
votes
0answers
26 views

Remove custom taxonomy base slug or not, what is the industry standard?

I have been working on a Wordpress theme for over 6 months now. My plan is to release it as a free theme and then possibly add more features and sell it as a premium theme. I am very experienced with ...
0
votes
1answer
12 views

Change url to posts if they have custom tax only

I have custom taxonomy "category_slider". function taxonomy_slider() { $labels = array( 'name' => 'Категории проекта', 'singular_name' => 'Категории', 'search_items'...
1
vote
1answer
423 views

Using plus (+) sign insread of space (-) in WordPress URL

How to change space (-) sign to plus (+) sign in clean URL WordPress? Like: http://www.whitelotuscorporation.co.in/anax_wp/about-us/ to: http://www.whitelotuscorporation.co.in/anax_wp/about+us/ ...
-1
votes
1answer
420 views

How to change pagination base from slash to query form?

Can this function... function custom_pagination_base() { global $wp_rewrite; $wp_rewrite->pagination_base = 'p'; $wp_rewrite->flush_rules(); } add_action( 'init', 'custom_pagination_base' ); ....
0
votes
0answers
26 views

Rewrite URL custom post type with add_rewrite_tag

i'm registering a custom post type with the current code: 'query_var' => 'lookbook', 'menu_position' => 0, 'menu_icon' => 'dashicons-admin-tools', 'rewrite' => false, 'has_archive' => ...
0
votes
0answers
9 views

Custom Post Type (CPT) not honoring custom permalink structure

I've got a custom permalink structure of: /post/%post_id%/%postname%/ When I create a custom post type I'd expect the permalink to be: /post/cpt/%post_id%/$post_name%/ But instead it's: /post/cpt/...
1
vote
1answer
710 views

Custom Post Types, URL rewrite on multiple CPTs

Re: Custom post types, taxonomies, and permalinks by @TheDeadMechanic The solution above works perfectly, and rewrite is great, but can you advise on how to rewrite for more than one custom post type ...
4
votes
1answer
2k views

add_query_vars and add_rewrite_rules

I am looking for some clarity on what add_rewrite_rules does. If I type in, or submit variables from a form, is it supposed to change the query variables to the pretty url? Currently when I type in ...
0
votes
3answers
55 views

How to Rewrite the URL

Here I mentioned the url http://localhost/wp/2016/?category_name=cricket now i need to rearrange the url like http://localhost/wp/cricket/2016. here cricket is category name and 2016 is year. ...
1
vote
0answers
28 views

category slug and page slug same

I have "movies" category name/slug and i have same page slug/name "movies". My category page: sitename.com/movies/page/2,3,4 bla bla My page url: sitename.com/movies/query If i enter first page on ...
0
votes
1answer
489 views

How to use wp rewrite to hide form action url?

I have a widget that I'm making that builds a multi-step form which retrieves xml data from a third party plugin (http://xmlplugin.com/geoquote.php). While this plugin is available for use already it ...
-4
votes
4answers
38 views

How do I change my Wordpress website's address or URL?

A non-profit organisation (NPO) has a Wordpress website. The URL (example.com) carries the name of the NPO. The name of the NPO has changed so now we need to change the URL to reflect the new name. ...
0
votes
0answers
30 views

How to remove attribute pagination_base from wordpress url?

I have a new Wordpress and function: function category_permastruct(){ global $wp_rewrite; $wp_rewrite->pagination_base = 'x'; $wp_rewrite->extra_permastructs['category']['struct'] ...
0
votes
0answers
19 views

Change URL for logged in users

I'm wondering if there is any way to give logged in users a custom URL of sorts. So say when you're not logged in, you get xyz.abc/home, but when you are logged in you get xyz.abc/home?l or xyz.abc/...
0
votes
0answers
26 views

custom post type URL change

At the moment, the urls for my movies post type look like .com/movies/ryi2NKR5ZY4DCNWG0XPj/ I got the 20 character hash in there by making the post name the hash like this: function ...
0
votes
0answers
12 views

How to require match for all arguments passed in URL?

I'm developing a site for a small car dealership with a proposed URL schema of domain.com/vehicles/<manufacturer>/<vin>. The Problem I can't get Wordpress to correctly handle when URL ...
1
vote
1answer
762 views

Duplicate Custom Post Type and Taxonomy Slug

I've seen a few questions that are very similar, but I haven't been able to get an exact answer, so I'm going to explain my situation here. Quite simply, I need the following url structure: site.com/...
1
vote
3answers
505 views

add_rewrite_rule not working for me

I have the following rewrite tags defined: // ADD REWRITE TAG FOR 'VEHICLE MAKES' add_rewrite_tag('%make%','([^&]+)'); // ADD REWRITE TAG FOR 'BODY STYLES' add_rewrite_tag('%body-style%','([^&...
0
votes
5answers
867 views

Exclude subcategories from the url

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 ...
0
votes
1answer
540 views

Change custom post type slug from plugin options

I'd like to give users the option to change a custom post type slug in my plugin. Using this answer, I'm able to hardcode it into a function: Redeclare/Change Slug of a Plugin's Custom Post Type ...
0
votes
0answers
13 views

custom post type cate/child not working

hey i have this custom post type with taxonamy job_listing_region register_post_type( 'job_listing', array( 'hierarchical' => true, 'public' => true, 'rewrite' => array( ...
3
votes
2answers
676 views

How to change ?lang=cn into /cn/

I'm trying to add languages to my wordpress driven website and i installed xili-languages plugin. Unfortunately it uses lang param to differentiate between languages and i rather have seen something ...
0
votes
1answer
24 views

Rewriting a page with a custom parameter

I have an issue similar to this one: Rewrite Rule for Custom Page with Query Vars in URL We have those two rules we're trying to add through the Rewrite plugin. We tested it and the GET parameters ...
0
votes
1answer
15 views

Add a custom word to the base of a multisite url

Is there a way to add a unique and custom word per site in my multsite network? I want my url to be like this: http://example.com/multisite-name/custom-word/pagename I know I can add a word in my ...
2
votes
1answer
684 views

WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)

I would like to use the WP native login/register/restore password/.. functionality, but display pretty URLs instead of wp-login.php I've been looking at the core code and noticed that most login ...
0
votes
3answers
983 views

Use subdomain for certain urls

I have the following rules in my .htaccess file on a WordPress (single installation): # REWRITE FORUMS DOMAIN TO FOLDER RewriteCond %{HTTP_HOST} ^forums\.example\.com$ RewriteRule !^forums/? forums%{...
0
votes
1answer
28 views

How to rewrite a folder in WordPress?

I'm using "The7" theme and don't want to use the standard Portfolio archive template. I have used the default template to create a page that looks great, let's call it /our-portfolio/. Currently the ...
0
votes
0answers
22 views

Unable to stop WordPress auto correcting URLs

WordPress is correcting URLs that go to static files on the server to WordPress pages with a similar name. Like this example... example.com/2009/spring (Static page) example.com/spring (Gets auto ...
0
votes
0answers
19 views

Rewrite acting as intended - but not changing url

I am trying to make this rewrite work, and it isn't working as intended. In the code below, player is a custom user_type. When I click on that player, I want to follow a link to his userpage (...
0
votes
1answer
35 views

Custom rewrite permalink doesn't work

function create_posttype() { register_post_type( 'events', array( 'labels' => array( 'name' => __( 'Events' ), 'singular_name' => __( '...
0
votes
1answer
7 views

Show index and not the archive for “Dog Custom Post” with default slug

When creating a Custom Post, in my case with the name dogs and slug dogs, at the url www.example.com/dogs Wordpress shows by default the archive page if has_archive is set to true I don't want to ...
-1
votes
2answers
924 views

Later change of taxonomy slug base not changing permalink

When defining a taxonomy I successfully set the slug base for it as well, all via functions.php. However, any change on the slug’s base (via editing functions.php again) is being recognised, i.e. it ...
0
votes
1answer
451 views

Wordpress Permalinks & Nginx Rewrite Rule Not Working

My Server configuration is: Nginx php-fpm5 I set up WordPress and it's working fine with custom permalink 'Day and name'. Now I want to set the rewrite rule in the nginx file and it's not working ...
5
votes
1answer
74 views

Custom rewrite rules for archive page and single post

I'm building a Wordpress site with several custom post types. Every post type is a different magazine. I have also a custom meta fields for a magazine year and issue. I would like to have urls (used ...
1
vote
1answer
584 views

Add a query string to ALL links on site

Our client would like to embed his site into an iframe in their software backend. I get a query string on the first link but need to make sure that string persists across URLs for all links and ...
0
votes
0answers
9 views

Rewrite Rule for Multistep Estimate Form

I want to be able to create a few rewrite rules and utilize some templates that I've created, but I don't want to be limited by having to create the pages within the WordPress admin ... essentially, I ...
0
votes
0answers
28 views

URL Rewriting on CPT

My website has Custom Post Type and I want to have beautiful URLs but i don't know how to do. Ex: https://www.mywebsite.com/boutique/?countryname=allemagne#!/countries=252 TO BE https://www....
0
votes
1answer
9 views

URL duplicating after migrating domain

I just set my CNAME to set my subdomain name and now, my WP site that was working has a weird thing, a lot of URL are broken... All menu links are OK, but all ressources url are not ok. The new bad ...