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)

0
votes
1answer
144 views

Auto Changing Text Case

So I'm using all static pages and I specify that in my WP settings. When I specify what the 'Front Page' should be it turns my link in to Title Case instead of all Capital Letters like I would prefer. ...
2
votes
2answers
5k views

How to change permalink structure for custom post type and it's taxonomies?

This is a repost of an earlier question I had, but I like to go into more details now to be able to fully solve this. So again, with (normal) posts changing the permalink is as easy as going to ...
1
vote
1answer
81 views

How can you change the permalink for pages?

When I set my permalink to '/%category%/%postname%.html' this will work for all the posts, but the pages still don't have a .html at the end. Is there a way I can fix that?
4
votes
1answer
623 views

Why does `get_permalink()` produces an add. DB request without $post->filter?

I'm currently working on a custom loop/query where I need to add the permalink of a post to the array of posts I'm retrieving from the DB. Sadly get_permalink() produces one additional DB request ...
1
vote
1answer
2k views

Custom Taxonomy URL

I have been reading all of the similar answers on here for hours but can't find anything basic enough for my needs. I have a non-hierarchical custom post type "inventory". I have one custom taxonomy ...
0
votes
1answer
179 views

url rewrite .htaccess extension to permalink

I have a custom page and template, that I'm passing a query-string to. It has a wordpress permalink like so /mypage/ I want to be able to add another rule so that the permalink receives a slug ...
0
votes
1answer
98 views

function to set permalink to /%postname%/ on theme activation

I'm wondering if there is any function to set permalink to /%postname%/ on theme activation ? Thanks
0
votes
2answers
178 views

How do I change my permalink structure to a custom structure on an established blog?

I've got a blog that's about 15 months old with around 160 posts. Right now my permalink structure looks like this (example): ...
1
vote
3answers
282 views

Manipulate Permalink

I'm using WPML to translate a website. The only major issue I have with WPML is that you cannot have a page in different languages with the same slug. Therefore www.example.com/contact/ and ...
0
votes
1answer
287 views

Categories Listing and Highlighting current category item

My query is on Wordpress and related to categories. I have a set of categories for my posts: All, Cat-a, Cat-b and Cat-c. a. When I click on the link to my posts page, I want to show an archive for ...
3
votes
2answers
585 views

Rewrite custom post type rss feed links

I am looking for a way to rewrite my custom post type feed located at http://localhost:8888/feed/?post_type=post to http://localhost:8888/feed/portfolio this post suggests using ...
-1
votes
1answer
80 views

Permalinks Won't Work

Permanents won't work for some reason. I click on the radio button for option 3, and click save, but it reverts back to option 1. What's going on? (It shouldn't be a FTP problem - it has localhost ...
0
votes
3answers
1k views

Wordpress permalink, stop redirection

I'm having some hard-time with with WordPress permalinks. WordPress 3.1 seems to force url redirection, ex: This is the correct post url: http://www.mysite.com/test/1/mypost.html If I go to any of ...
2
votes
2answers
912 views

Removing /blog/ from multisites cause infinite redirection

I have a wp installed with multisite enabled and working with subdirectories. I noticed that in the main blog (the one that exists by default on the root), the posts links had a "/blog" in the url ...
1
vote
2answers
207 views

How can I hide the Permalink/Shortlink for certain user logged in Users of a certain level?

I would like to keep logged in Users who can write and edit their own posts from seeing the Permalink/Shortcode for the post (located under the Title field). I've been able to cut out other features ...
0
votes
1answer
199 views

Page Name and Permalinks

I am using WordPress 3.2.1 and just added a page to my site called "Centre Management", which in turn created a permalink: http://localhost:8888/mysite/centre-management/ for that page I just ...
0
votes
2answers
1k views

Remove “attachment/” from the URL of attachment pages

Currently, the media for a page on /hello-world/ is shown on /hello-world/attachment/image-name/. Is it possible to remove attachment from this URL, and make it /hello-world/image-name/?
1
vote
2answers
115 views

How to find the post_id of a post on a wordpress blog that uses pretty URLs?

The only trick here: It is not my blog, I know how to do it using php in my blog. I want to find the id of a post on another wordpress blog through the internet. Does this information 'leak' ...
0
votes
1answer
400 views

How to use taxonomy term as permalink folder

I've searched around and haven't found a way to do this yet. I'm trying to create a custom post type that will display a permalink structure that uses the term of a taxonomy as the folder name. ...
0
votes
1answer
82 views

how wordpress generates permalinks as /%category%/%post%/

I am not here to discuss the efficiency of using categories as the base for permalinks. I would like to know in what file and what line is the code to how Wordpress picks out a category for the ...
0
votes
2answers
196 views

Multiple permalinks

My blog uses the /?p=378 permalink structure for some years. This isn't very helpful with Google Analytics, and I would like to change it to the YEAR/MONTH/DAY/post-title structure. Is there a way to ...
0
votes
1answer
340 views

Custom Permalink Structure for terms/taxonomies of custom post type

So I have a custom post type with 3 taxonomies attached to it. I want users to be able to filter custom posts based on their taxonomy choice. So I have 3 taxonomies, charity, type, location and I want ...
0
votes
2answers
185 views

Permalinks and page store

I posted this on stackoverflow and they said i can try here - I have wordpress installed on my website. On that site, under a subfolder i have oscommerce system installed as online commerce store. ...
0
votes
2answers
3k views

get_query_var() and permalinks

I have a permalink structure that looks like this, %category%/%postname% I have a category.php template coded up and and trying to pull of the post of a certain category, so for example my URL may ...
1
vote
2answers
903 views

How do I customize my WordPress shortlink structure in link-template.php without a plugin?

Right now my shortlink structure looks something like this: example.com/?p=451 I would prefer it to look more like this: example.com/abc123 Any ideas how I can alter the code to do just this?
0
votes
2answers
292 views

Permalink issues with Ubuntu Server - Infinite loop & Wrong pages

I'm having a big problem with Permalinks on our Wordpress installation. It's currently running Ubuntu 10.4 and when i add a page to the site, there are odd things happening: We get infinite loop and ...
0
votes
1answer
92 views

Why doesn't my page know it's a page (won't return true for is_page())?

I have a page with the slug blog. Mysite.com/blog correctly renders from the template file page-blog.php. However, it does not execute footer code from my theme that's conditioned on is_page('blog'), ...
0
votes
2answers
402 views

Page URL not working due to physical directory

I have a page named http://www.mysite.com/whitepapers/ and it worked fine. I have now added a physical "whitepapers" directory and has since broken my permalink for the page. I realize that it has ...
0
votes
1answer
73 views

Wordpress: Permalinks link to old names

I'm trying to activate permalinks on my Wordpress installation. When I activate them my menu links point to page names that have changed sometime ago which result in a 404. I don't really understand ...
0
votes
1answer
281 views

rename 'page' URL fragment in pretty permalinks

i would like my WP URLs to be fully in my language so instead of: site.com/page/2/ i would like to have: site.com/pagina/2/ (in spanish) how can i accomplish this? i tried to do simple str_replace ...
1
vote
3answers
504 views

Custom post type permalinks

I have a custom post type called "number" and I would like to achieve URL's for it's "posts" to be the following http://website.com/post-name instead of http://website.com/number/post-name. I tried ...
1
vote
2answers
403 views

Is using %postname% for permalinks really that bad for performance?

I've seen in various places, including the Wordpress admin and on this page, that using string based identifiers is "strongly not recommended for performance reasons". I understand that looking up a ...
0
votes
1answer
131 views

Date archive permalinks for custom taxonomy

Is it possible to have date based permalinks for a custom taxonomy? ie http://www.blah.com/taxonomy/taxonomy-term/2011/08/08 TIA! d.
3
votes
5answers
5k views

URL Rewrite + Page + Custom Post Type = Unusual Redirect

Yet another URL rewrite issue :) The Problem I have a URL rewrite rule that should work, but against all logic it redirects without passing the query var. The Juicy Details The site has a page ...
2
votes
1answer
373 views

Can't get rewrite rules working

Basically I want to rewrite: /edit/test-post to an existing page with a parameter: /edit?e=test-post From the examples in the Codex I created: add_filter( ...
2
votes
2answers
433 views

Getting archive pages in WP's AJAX internal link finder?

I often need to link to custom taxonomy term archive pages and would love to be able to do so through the AJAX internal link navigator added to the visual editor in 3.1. Is there any way to get this ...
1
vote
1answer
599 views

Custom Permalinks don't work on local LAMP installation

I'm on Ubuntu and using LAMP for local dev. I've several WordPress installations for different project and tried to set custom permalinks on all of them, but only default permalink setting ( ...
0
votes
1answer
329 views

Should I use relative or absolute urls when pointing to internal pages

This is a simple question, that's probably been asked before. For internal links between pages, is it better to use a relative link or full permalink? Thank you.
1
vote
1answer
1k views

Specifying multiple categories in URL (permalink)?

For example: http://www.example.com/dell/studio/studio-1558 where dell and studio are categories A few months back I heard from someone that it is not possible. I need to know why? Which part of code ...
2
votes
4answers
342 views

Nicest way to 301 Redirect traffic when changing permalink settings

If I change my permalink structure, is there is a nice way to handle when people/bots go to the old structure? I presume I can add use .htaccess and write a rule to redirect based on a 301 but is it ...
1
vote
2answers
135 views

If the only permalink setting is %postname% what happens in the case of old duplicates?

I am tempted to change my blog to be site.com/postname. I know that for new posts Wordpress is smart enough to add a unique number to them, but what about old posts that would get updated? I can run ...
1
vote
2answers
486 views

Using permalinks, category slugs, and tag slugs

I'm trying to set up some permalinks for my site. Right now all the posts are under sitename.com/blog/, which is fine. But the category pages and tag pages show as 'sitename.com/blog/category/catname' ...
1
vote
1answer
757 views

How to change Post ID during import

I'm importing posts from a Joomla v1.5 site using http://wordpress.org/extend/plugins/joomla-15-importer/ (The goal is to clone the site in WordPress then switch off Joomla) On both sites the ...
0
votes
2answers
397 views

/%post_name%/ or /%postname%/ in Permalinks?

In Settings-->Permalinks is there any difference between: checking Custom Structure and using: /%post_name%/ or /%postname%/ Are they both correct? Will they both work? Thank you. -Laxmidi
2
votes
2answers
2k views

How to change the category in URL for posts in multiple categories?

How can I change the category slug that appears in the URL of a post that's in multiple categories? I'd like to change the default WordPress behaviour of using the category with the lowest id. I ...
0
votes
2answers
464 views

Create pretty permalink for a post knowing the permalink structure

How can I generate a pretty permalink correctly for a post knowing the permalink structure? My posts where processed with the FeedWordPress plugin with the "Link" setting set to "Permalinks point to: ...
2
votes
2answers
3k views

Custom Post Type Permalink / Rewrite not working immediately

Hitting a brick wall with the following: I have: 1 custom post type called cpt_community 1 custom taxonomy called tax_community If I set 'rewrite' => true in my CPT registration, then ...
5
votes
1answer
673 views

Rewrite rule for Custom post type Monthly and Yearly archive

I have a custom post type "contest_recipe". I can view contest recipe posts by year and by date with the following urls: http://example.com/2011/?post_type=contest_recipe - shows all 2011 contest ...
3
votes
1answer
2k views

How would I create a different permalink structure for pages and posts?

Right now I have pages like "about", "resources", etc and the urls are /about and /resources with a custom permalink structure as /%postname%. For "news" section it's the posts and it's at /news and ...
0
votes
1answer
207 views

Standalone form does not post to the url when form fields are populated (otherwise it does)

So this is weird.... I have a form I've created myself (not a plugin, this is what I mean by standalone), and for some strange reason it does not post to the form's action when the form fields have ...