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)

3
votes
1answer
1k 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 ...
3
votes
1answer
334 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 ...
3
votes
1answer
906 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 ...
2
votes
1answer
86 views

custom taxonomy and custom post type url conflict

i am having one serious url issue. there is news custom post type. it's slug is news. News taxonomy slug: news_category News taxonomy url is: http://domain.com/news_category/press-release i want ...
2
votes
1answer
61 views

Get the category is not working on url

Although this is my first post but i have been coming here for answers so I know the rule and this isn't a duplicate because i have tried whatever i could but couldn't seem to get my codes to work. ...
2
votes
1answer
567 views

How to get pretty URLs with add_query_arg in permalinks

With add_query_arg() it is nice to add additional parameters to an URL and it is also easy to create a rewrite rule. So far so good. But the problem is the URL replacement done by wordpress. When I ...
2
votes
1answer
118 views

Pagination problem

I have two custom rewrite rules: add_rewrite_rule('foo/bar/?', 'index.php?post_type=foo', 'top'); add_rewrite_rule('foo/bar/([a-z]+)/?', 'index.php?post_type=foo&bar=$matches[1]', 'top'); Which ...
2
votes
1answer
35 views

Is it possible to generate an alternate structure for multi-tag urls?

I know that one can query multiple tags with the + syntax, as in www.example.com?tag=?test+test2+test3 I'm looking for a solution where the URL would be in this format instead: ...
2
votes
1answer
2k 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 ...
2
votes
1answer
236 views

Custom taxonomy on permalink

I have a long time problem and look forward for your help. I have a custom taxonomy of "city" (it is no hierarchical like tags). I just would like my URLs to look like this: ...
2
votes
1answer
192 views

Rewriting URLs in Wordpress

I am trying to solve a rewrite problem but don't fully understand how to read the below code. I believe the event/industry/(.+)/?$' is stating the format I want in my new url after rewritten, which ...
2
votes
1answer
81 views

Is it possible to rewrite URLs in this situation?

I am using a fantastic plugin called Query Multiple Taxonomies which provides a widget to "drill down" by category / tag and other custom taxonomies you may have. The site is livetonom.com. The ...
1
vote
1answer
99 views

Adding special characters to slug?

Is it possible to prevent WP from stripping out certain characters when customizing a URL? For example, affiliate ids usually have something like ?id=something. Customizing a content's slug with ...
1
vote
1answer
88 views

Custom Post Type and Custom Taxonomy Permalinks

I'm currently working with a client's Wordpress blog that has a permalink structure set in the admin settings as "/speaks/%postname%/". This is so that all actual blog posts (post_type=>posts) have ...
1
vote
1answer
99 views

Why did installing wordpress in url root jack up underlying WP sites?

I have a server (w2008 with iis7.5) and domain with a lot of different WP installs. All of the following represent WP installations. x.com/stuff x.com/programs/recent ...
1
vote
1answer
96 views

IIS 7 Rewrite with parent categories

I have seen quite a few questions on here asking around the same thing but either have been unanswered or slightly different! I have tested the following on a linux machine and all works fine, when I ...
1
vote
1answer
1k views

Custom query_vars and parse_request on wp-admin

I've read this post http://wordpress.org/support/topic/query-vars-in-admin and although it's quite an old question, it suits me perfectly. I'm trying to accomplish what I already posted here: ...
1
vote
1answer
51 views

Rewrite Rules returning wrong data

I have a custom post type called product. It is categorized with the two taxonomies product_category (which is superior) and product_group. I want the permalinks for single products to appear like: ...
1
vote
1answer
101 views

Is a permastruct possible on pages?

Since a couple of weeks I'm trying to create my own rewritings on pages. I read a lot about rewriting with posts and custom post-types. BUT: I have pages that I call with variables. How is it ...
1
vote
1answer
202 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
vote
1answer
374 views

Permalinks for Taxonomy and Custom Post Type

Have the following situation here: Custom post type: 'recipes' Taxonomy for custom post type 'recipes': 'receitas' One of the taxonomies slug: 'receitas-whoopie-pie' The permalink structure MUST be: ...
1
vote
1answer
176 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 ...
1
vote
1answer
461 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 ...
1
vote
1answer
55 views

Multiple URLS per post non-ascii

I am looking for some best practice / practical advise on a particular URL use case. I am finding myself using a lot of non-ASCII characters in my URLs. This doesn't really make it easy for users of ...
1
vote
1answer
163 views

Custom Rewrite Rules

I am developing a plugin, the goal of which is to allow for a bookmark-able, pretty permalink search engine on a single page. To do so, I am using WP's rewrite rules to allow for the ...
1
vote
1answer
59 views

Organizing Your Pages

I'm having problems creating sub pages. So far I've followed the proper directions: Go to a new page, click the "Page Parent" drop-down menu. Select the appropriate parent Page from the drop-down ...
1
vote
1answer
97 views

Taxonomy in URL

I have a huge problem: I want to have nice URL's on my Homepage. I got a custom post type and taxonomies. Now I want to have a URL like that: www. mydomain ...
1
vote
1answer
153 views

Get Taxonomy Term Title by it's URL

I have a URL - http://localhost/products/product-name/ and I want to use this URL to retrieve the title Product Name This is out of loop, so the URL provided is all I have to work from. Product Name ...
1
vote
1answer
506 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 ...
0
votes
1answer
11 views

One custom post type with two different url structure base on taxonomy term

i have one cpt Anime and it has post_type taxonomy with term anime and animation anime(cpt): (site domain)/anime/post title | |-(tax)Anime |-(tax)Animation And my url structure are ...
0
votes
1answer
27 views

permastruct for custom post type not working in one of four cases

I've created custom permalinks for various custom post types on a website. They all worked. Until recently I added another one, which I cannot get to work 8-o. The "company" struct is not working and ...
0
votes
1answer
25 views

Worpress url parse

I want to display posts in certain category only with given tag. Problem with parsing url slugs. For example, I have category named 'Clothes': example.com/clothes/ I can get posts in this category ...
0
votes
1answer
46 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
28 views

Best way to hook a custom url?

Let say I've a custom page with slug created "/products", I want user will be able to POST to a form with url "/products/create" and allow us to render some JSON output. The "/products/create" page ...
0
votes
0answers
129 views

Rewrite a specific Post Format to URL slug

I'll cut to the chase. I am using Post Formats on my WordPress 3.6 site, specifically 'Video', which I want to include in the URL slug. I'm pretty well verse in WordPress plugin writing etc, but ...
0
votes
0answers
112 views

Using www and without www url both for same site

Site URL is lgagro.com.sg; currently, if browsed without www., it redirects to www.lgagor.com.sg. I want to access it with and without www i.e. when I browse it by http://lgagro.com.sg it should work ...
0
votes
0answers
82 views

How to create single static page extending another URL

I have existing URL game/ninja-cat-and-zombie-dinosaurs/ which is created by rewrite: game/([^/]+)(/[0-9]+)?/?$ It leads to a custom post type (defined by theme Swatch). Now I'd like to have a URL ...
0
votes
0answers
74 views

Use custom clean URLs for a plug in

I've created a plug in that displays a list of items from the database. I need to link from an item to the item description page, however instead of the link looking like: ...
0
votes
0answers
27 views

Help with rewrite rule

I have a probleme with a rewrite rule. On my page, I have a link to : mySite/pubmed/article/23919219 I would like to convert it to http://example.com/index.php?page_id=165&article_id=23919219 ...
0
votes
0answers
140 views

Custom post type & taxonomy just like WP defaults

I've spent days attempting to do a single thing: create a custom post type/taxonomy (cat)/taxonomy(tag) trio that replicates the stock standard WP category/post/tag structure with permalinks of ...
0
votes
0answers
190 views

Index page redirecting to custom post type page

Every time I go to the index page of the website, it redirects me to a single custom post type page. This url: http://example.com/ Redirects you to this url: ...
0
votes
0answers
60 views

Custom Rewrite for Profiles

I'm currently trying to modify my rewrites to allow for an additional URL segment e.g. http://example.com/vendors/username/ by default WP allows for additional numeric segments but everything else ...
0
votes
0answers
156 views

Stop wordpress to redirecting home page if no page found

I don't want to redirect to home page when there is no page or wrong url. I have following in httaccess file # BEGIN WordPress RewriteRule ^sitemap.xml sitemap-%{SERVER_NAME}.xml [L] RewriteRule ...
0
votes
0answers
148 views

Ignoring slug capitalization on rewrite rule for custom post type archive page

I'm declaring a custom post type 'games' with a rewrite rule: 'rewrite' => array('slug' => 'Games','with_front' => false), So the resulting url for the games archive is ...
0
votes
0answers
105 views

Multiple Taxonomy in URL/Query - No Custom Post Type

I have Volume and Issue as separate Taxonomies and all Posts have a Volume and Issue assigned. These posts are of post_type=post, not a custom post type. I linked to and queried for the Volume ...
0
votes
0answers
78 views

Add parameter to URL

I have in my functions.php this function: // rewrite the url function my_rewrites_init(){ add_rewrite_rule( 'demo/([0-9]+)/?$', 'index.php?pagename=demo&p_id=$matches[1]', ...
0
votes
0answers
208 views

uploading Attachments with permalinks based on parent file structure

We are rebuilding a public-interest site centered on civil rights research & document archives. The links in years of published info posts must be preserved in WordPress, and future uploaded ...
0
votes
0answers
1k views

Pretty URLs for lost password functionality

I have WP installed in sub-directory and I'd like to have pretty URLs for the lost password functionality. So, something like this, from WP native -> pretty URL: Initial and any errors lost password ...
0
votes
0answers
63 views

Wordpress adding in site URL to header links

A little information: I am developing a one page theme that uses posts as sections on the main page. I have created code that allows users to add a menu item in the post page from a meta box when they ...
-1
votes
0answers
46 views

Unique ID for custom post type url

I am building a site where members can log in and create a custom post type (event) and I'd like to maintain my permalinks structure for my posts to %postname% I want to use the ID for the custom ...