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
0answers
11 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
9 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
731 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
502 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
848 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
536 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
12 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
663 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
22 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
13 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
943 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
24 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
32 views

Custom rewrite permalink doesn't work

function create_posttype() { register_post_type( 'events', array( 'labels' => array( 'name' => __( 'Events' ), 'singular_name' => __( '...
0
votes
1answer
6 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
916 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
444 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
63 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
551 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 ...
2
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
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 ...
0
votes
0answers
18 views

Single page with subpages

I'm wondering what would be the best approach to create pages that are 'linked' to a single page. For instance, I have a post type called 'books'. On the front end I would like to have pages like (...
1
vote
1answer
42 views

add_rewrite_rule is not taking effect in Wordpress? .htaccess file doesn't update

I have tried all day to get my own rewrite to work in wordpress, but I simply can't get anything to work. I've tried so many different ways but thing is nothing updates in the .htaccess file so I am ...
0
votes
1answer
697 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 (...
3
votes
1answer
503 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 ...
6
votes
1answer
133 views

Meta_Query as a way how to setup CPT permalinks - is it a good thing?

I'm creating quite complex website for a literary magazine. For its custom post types Issue and Event, I wanted different permalink structure than for posts (which is basic http://example.com/%...
0
votes
1answer
442 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
2answers
144 views

I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?

I am working on a site for a client and am using a plugin that adds an "event" custom post type and an "event-category" taxonomy. I have also attached the "event-category" taxonomy to the default ...
3
votes
2answers
915 views

How do you permanently remove default rewrite rules from the wp_options table?

We have tons of rewrite rules saved in our wp_options table and I'd like to permanently remove any entries that we're not using on our site (such as comment feeds, page attachments, etc.). What's the ...
0
votes
0answers
23 views

Help to fix custom post rewrite + taxonomy. Simple pages show 404

I'm getting 404 for each page. I want to have structure and pages like: url/page-sample url/taxonomy url/taxonomy/custom-post Example of structure (just trying to explain): url/about-us-page url/...
0
votes
0answers
46 views

multiple url slug for single custom post type

I have created a custom post type for events. Now within events post type I have created 2 categories. One is 'event' and another one is 'workshop'. The 'event' category post url looks like http://...
0
votes
0answers
28 views

How can I add rewrite rule for custom page?

I'm showing child categories data in custom page using wordpress. Problem is that i'm fetching those child categories from parent category slug. www.example.com/digital-post-page/?cp=category-slug ...
1
vote
1answer
28 views

Adding two rewrite rules

I have a custom post type with a custom taxonomy. The custom post type is news. The custom taxonomy is new_category. What I want is the possibility two operate link that: http://example.com/news/ -...
0
votes
1answer
451 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 ...
0
votes
0answers
20 views

Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page

Need some help with some custom rewrite rules. I found this post How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-...
2
votes
2answers
445 views

Random Alphanumeric Key URLs

I need random (and unique) alphanumeric permalinks. I've looked at several plugins but they all seem to do some form of redirection to a longer URL. That's not what I want, I want the permalink to be ...
3
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 ...
1
vote
1answer
706 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 ...
3
votes
1answer
59 views

Add rewrite rule to permalink structure

I have a Custom Structure setup for posts in Settings > Permalinks as: /%category%/%post_id%-%postname% This works great for most of my posts, but there is one category that I want to remove the ...
1
vote
1answer
44 views

Does flush_rewrite_rules() remove all rules added by other plugins as well as mine?

I am developing a plugin, and am using add_rewrite_rule followed by flush_rewrite_rules during plugin activation. On plugin deactivation I am using just flush_rewrite_rules to remove the rule that I ...
0
votes
0answers
13 views

add_rewrite_rule redirection okay, but not detecting add_rewrite_tag as query_var

I'm having an odd issue with add_rewrite_rule and add_rewrite_tag I basically am creating a page so that if you go to:- http://domain.com/enquire-now/test/ It will go the equivalent of:- http://...
0
votes
0answers
33 views

WordPress thinks my custom route is a 404

I created a plugin that sets up a custom route and then loads a template file for that url. Everything works fine, except that WordPress seems to think it's a 404 even though it's correctly rendering ...
1
vote
2answers
42 views

Custom Post Type Post have a Child `Page` Post Type Post

Oddly enough I can't seem to find anyone asking this question exactly in this fashion. Is it at possible to make a page be a child of a CPT? In a repeatable fashion (see below for more info) n.b. I ...
8
votes
2answers
3k views

Creating custom permalink structure for languages

I've written a simple multi-language system, whereby clicking on a flag icon sets a one year cookie containing a two letter language code (e.g. nl, de, etc). I hook into the wp action to read the ...
6
votes
3answers
3k views

Filtering categories in the permalink structure

Using /%category%/%postname%/ for the permalink I get a URL string of all the categories that the specific post is included in. I would like the categories in the url to be filtered down to only one ...
0
votes
1answer
482 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 ...