A permanent link to an item (a blog post, an attachment, ...). The default structure is "?p=123", but WordPress can handle "pretty permalinks" and will rewrite them internally to the former version. If you have a question about special rewrite structures you should use the [url-rewriting] tag.

learn more… | top users | synonyms (1)

2
votes
0answers
16 views

How can I store page ID in a post instead of other selected permalink?

We're using Wordpress as a knowledge base. We just left mediawiki and jekyll for Github pages and reduced the amount of different systems from four to just one. One Wordpress installation for blogging ...
2
votes
0answers
137 views

How to remove slug from hierarchical custom types in 3.5.2

I know that is not suggested and that there is lots of discussion about this argument out there. Unfortunally, after a week of trying and tests, I have not managed to remove the slug from my custom ...
2
votes
0answers
76 views

Page Attachment Permalink Structure based on Menu Order?

I've been on a quest for the past couple of days reading up on Rewrite in WordPress but still can't seem to figure out how to accomplish this. When using pretty links in WordPress, media attached to ...
2
votes
0answers
290 views

get_permalink returns default link

I hope you can help me. So I'm using /%postname%/ as permalink structure, and my htaccess looks like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase ...
1
vote
0answers
17 views

Wordpress is suppressing page extensions!

I've built 2 sites on Wordpress. In both of them, I did two things: Created a slug for each page. In Settings > Permalink Settings, I chose "Custom Structure", and entered /%postname%.php In one ...
1
vote
0answers
40 views

How to change hierarchical page permalinks to be flat

I'm building a site for a client with a large navigational structure. I think it would be easiest for them to manage if the pages were listed hierarchically in the admin panel, but it would also be ...
1
vote
0answers
35 views

Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)

I have a custom post type named "tours" and a custom taxonomy named "tour_type". "tour-type" taxonomy is hierarchical. In "tour-type" taxonomy, parent terms are limited to "eco-tours", "daily-tours", ...
1
vote
0answers
34 views

Use category base slug in posts' permalink

The Goal I would like to format my permalinks as follows: for posts: somePrefix/%category%/%postname% for categories: somePrefix/%category% Where somePrefix is the same in both cases. I know ...
1
vote
0answers
56 views

Strange number at the end of wordpress permalinks

I've just noticed in my google webmaster tools that there are 404 errors and they are pointing from my permalinks which have this number in the end : 9223372036854775807. For example this url : ...
1
vote
0answers
31 views

How to rewrite the post URL according to the category?

I have 1000 posts in my website, half of them are in difference categories and another half is in category called "blog". Current permalink structure is: http://xxxxx.com/articles/%postname% - this is ...
1
vote
0answers
69 views

“Post name” permalink returns home page for custom posts

I'm new here. I badly need help on this permalink issue. In my site I've one custom post type 'portfolio' but when I set the permalink structure to 'Post name' it returns loads index.php page not its ...
1
vote
0answers
48 views

Accessing Subdirectories in WordPress Install

I have scripts that are in a subdirectory of my WordPress install folder. They are on the same level as the /wp-content/ and /wp-admin/ folders. I'm running them as form processing but I've got the ...
1
vote
0answers
45 views

Pre-populate Slug / Permalink with URL

I would like to not only pre-populate the title, tags, and categories, but would also like to pre-populate the slug / permalink as well. Can I do this and if so how? Here's my functions.php code: ...
1
vote
0answers
59 views

WordPress URL Rewrite for dynamic and customized URL

I'm working on a website in WordPress where I have to show AP News from external Database and not from the WordPress DB. I have created few shortcodes for this, which are working absolutely fine. I ...
1
vote
0answers
33 views

Filter categories used with Custom Structure Permalink

I'm using a "Custom Structure" permalink setting: http://mysite.com/%category%/%postname%/ However, when the post belongs to uncategorized, or to more than one category, this produces unwanted URL ...
1
vote
0answers
44 views

Plural Category Base Slug On Category Archive Page

I've got a little problem with the category base slugs. Say I have got a category called 'Resources', with the category slug set to 'resource'. So any post in the category resource will appear with ...
1
vote
0answers
70 views

Relative v.s. absolute URLs: which ones should I use for cross-domain portability?

My question is related to but different from this one I need to make sure that my URLs work across domains like staging.domain.com, localhost:8000 and www.domain.com. I have local, staging and ...
1
vote
0answers
116 views

Hierarchical permalinks for custom post type and taxonomy

I have registered the custom post type "word" and the custom taxonomy "wordcat". Now what I want is proper hierarchical permalinks. So I've been searching the web for quite some time with no result. ...
1
vote
0answers
38 views

Change Permalink of attachment page

How to change permalink of attachment page. Current: domain.com/post-url/attachment-url/ What I want : domain.com/attachment-url/ Also, How to redirect old pages with new slug.
1
vote
0answers
50 views

How to organize hierarchical structure in custom post type with taxonomy (like with categories)

can anyone help me with custom post type arhive? I want there organise taxonomy term structure like with categories. Full image url: http://i.stack.imgur.com/nzl4y.png
1
vote
0answers
103 views

Custom Post Fields at the beginning of a Custom Permalink

Is there any way to have a permalink begin with a custom post field? For example, the follow works: $wp_rewrite->add_permastruct('solicitors', '/anything/%custom_field%/%custom_field_2%', false); ...
1
vote
0answers
176 views

Permalink /%category%/%postname%/ returns 404 on OSX

I'm on OSX 10.8.4 with a pretty standard installation of Wordpress 3.6.1 under the local OSX Apache/MySQL. If my permalinks are set to /%category%/%postname%/ I get a 404... This is working on the ...
1
vote
0answers
153 views

Pretty URLs and custom post types

I've read the posts on WP SA on rewrites and custom post types, but I can't figure out why my search for 2 different post types isn't working. I'd like my URLS to become ...
1
vote
0answers
807 views

How to make permalink structure %category%/%postname%/ work for custom post type?

I'm trying to achieve the following permalink structure for a custom post type called "concept" with taxonomy "category" http://domain/categoryname/conceptname Note: The main problem here is I ...
1
vote
0answers
78 views

Using arbitrary paths in page urls

I have been looking all over the place and maybe I'm just searching the wrong terminology but I need to be able to allow an end user (completely non-technical) to add an arbitrary path to the url ...
1
vote
0answers
149 views

Multiple post categories - single permalink

I created a post which is assigned to multiple categories. Eg: I have a post "My Post", and I put it in "foo" and "bar" categories. Now my article will have two permalinks, "/foo/my-post" and ...
1
vote
0answers
143 views

Changing a custom post type “has_archive” after registered

Ok, I've seen some similar posts on how to change a custom post type's attributes after it has been registered (in my case, I'm trying to modify a custom post type created by a plugin without ...
1
vote
0answers
53 views

set permalink for CPT

I have a CPT and two custom taxonomy I registered. I also registered the taxonomy for the CPT. This is my register code: $args = array( 'labels' => $labels, 'public' => true, ...
1
vote
0answers
748 views

Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure

this is my situation: I have a Custom Post Type named struttura (like accommodation): function custom_post_struttura() { $labels = array( 'name' => _x( 'Strutture', ...
1
vote
0answers
145 views

Rewriting single post url; add_rewrite_rule problem?

I have to customize single post permalink (the structure of the permalink) if posts have a certain value in a certain custom fields. I use the filter post_link to change permalink when needed, and ...
1
vote
0answers
163 views

How to rewrite a URL to another rewritten URL without changing the address?

Just got to the end of a site build and the client is now saying the original site URL's need to stay the same and do not want to do 301 redirects due to loss of link juice. The structure of the site ...
1
vote
0answers
131 views

Lost of query parameter when using permalink

I have many issues with the use of rewriting, but i'll just point out one in this post to be specific. In my theme i use custom post type, with custom taxonomy function custom_post_realisation() { ...
1
vote
0answers
68 views

Custom permalinks rules don't match and lost of query var in the process

For my theme i created custom post types (realisation, video). All is working now without the rewriting, but i have trouble when i apply rewriting. my urls are like this : 1) ...
1
vote
0answers
193 views

Filtering get_permalink in Jetpack / ShareDaddy

I recently changed my permalink structure from /YYYY/MM/%post_name%/ to /%post_name%/, and lost my tweet counts and likes (provided by Jetpack) in the process. To fix this, I want Jetpack to use the ...
1
vote
0answers
459 views

Wordpress add_permastruct unwanted matches

I'm working on a project which involves filtering some customs posts on the front-end. I managed to create the permalinks including a custom field, but it seems that the rewrite rule matches some ...
1
vote
0answers
88 views

An other permalink problem - 404 Error

I know there are already a lots of post about this question, but not a single one helped me to solve this issue. I moved my page to an other server and afterwards I was facing the problem that the ...
1
vote
0answers
104 views

Incorrect 404 for pages when using permalink, a static front page, and posts page

I am having an issue with my permalink setup, which I think has to do with my setup, rewrite rules, and more. Under Settings->Reading, we have a static Front Page set as well as a Posts page (Home ...
1
vote
0answers
284 views

Custom Post Type - Duplicate Page Slugs

I have 2 custom post type registered in my functions file, sectors and projects. There are pages with the same name and hence URL in both post type. My problem is that WordPress wont allow the same ...
1
vote
0answers
32 views

Custom $_GET vars in wordpress entry with permalink

Hello I have something like this in the url: http://myblog.com/category/subcategory/postname/?var=true Using it on functions.php: function add_query_vars($vars) { $vars[] = "var"; return ...
1
vote
0answers
58 views

Advanced author permalinks

I'm trying to build permalink structure for author archives that would allow me to display different custom post types posts in 'subpages/subarchives' of author archive. So the idea is to change ...
1
vote
0answers
57 views

404 error using Meta for Permalink rewrite

I'm trying to rewrite my permalinks using meta data from my post. The permalink rewrite works fine but I'm getting the 404 error when I try to view the post. Could someone offer a clue as to why this ...
1
vote
0answers
103 views

WordPress Not Using Template Files After Permalink Update

I have a really weird issue that just occurred on a client site. I updated the permalink structure from /%category%/%postname%/ to /%postname%/ and suddenly my pages don't respect templates and are ...
1
vote
0answers
98 views

Older entries link within category page

I am building a custom wp theme and I have a category called 'blog'. On here I have all of my posts displaying from the category 'blog' and a link at the bottom that says older entries. When i click ...
1
vote
0answers
65 views

Wordpress permalink prefix

I have a small ecommerce site in Wordpress and I am having some difficulties in getting the right permalink structure. Basically, for basic pages it should look like : domainname.com/page_title. ...
1
vote
0answers
159 views

How to create a custom url for a category

I took over a site that displays the category in the URL three different ways. For some categories it shows "?category_name=blah". (Not ideal, but I can live with it) For newly created categories ...
1
vote
0answers
106 views

One blog inside another

I have a question about having two blogs at the same host simultaneously. Here is my scenario: The first blog is hosted in the root directory http://mathosproject.com/, and the second is hosted in a ...
1
vote
0answers
110 views

permalinks with get variables

I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows add_filter( 'query_vars','driver_vars' ); function driver_vars( $vars ) { ...
1
vote
0answers
159 views

wordpress multisite permalink structure: mostly subdomains but not all

I've got a Wordpress multi-site install with three (related) sites, and it works great. Previously, each site had its own totally unique domain name which I was managing with the WordPress MU Domain ...
1
vote
0answers
106 views

Disable date based archives for all categories except one

I want to remove all date base archive url permalinks (url_rewrites) from my site, excluding for only 1 category. How can i do that. For example: www.example.com/category_1/2012/ -> 404 error ...
1
vote
0answers
31 views

Permalinks only for posts

I would like to use wordpress permalinks but only for posts. Is there any way to do that? I don't care about seo, my website is about niche subject so it already has first position in google. Also ...