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
228 views

Multisite: should /blog go to a 404 page?

I have a WP multisite installation. All the posts for the default blog are in the subdirectory /blog. All those URLs are fine, all the category and archive links work well. However, visiting the ...
4
votes
5answers
7k views

How do I get the permalink of a custom post type?

I can get the permalink of a specific post tag or category, but what if I want to get the permalink of a custom post type? I can't find anything in the Codex or anywhere else about how to do this.
1
vote
1answer
318 views

custom permalink's rewrite rule for page id

I am using WP 3.2.1. I try to do permalink like: /en/1/some-string. Structure is: %lang%/%pageID%/%some random string% So I add a rewrite rule: function nw_lang_addRewrite($aRules) { ...
3
votes
1answer
2k views

Pretty URL with add_query_var

I'm trying to add a 'sub post' to each post on my site, eg site.com/product-one/changelog site.com/product-two/changelog site.com/product-three/changelog This is the code I'm using atm, which I ...
6
votes
4answers
3k views

How do I append multiple taxonomies to the URL?

Multiple taxonomies in URL How does one append multiple taxonomies to the URL having the following: Post Type: products Taxonomy: product_type Taxonomy: product_brand Adding new ...
0
votes
1answer
118 views

How to shorten the Permalink after WP>WP blog import?

We've imported a blog from one domain to another and the permalink thats been created for category archives is: domain.com/category/graphic-design-blog/tips-for-artist/ where ...
1
vote
3answers
2k views

Category archive by year with permalink support /category/YYYY

I am currently looking at creating a new type of site archive within WordPress that allows users to filter by category AND by year rather than the default category OR year. I am hoping to build a ...
2
votes
1answer
384 views

How to change author base without front

I am currently using this code: function change_author_permalinks() { global $wp_rewrite; $wp_rewrite->author_base = 'connect/member'; } add_action('init','change_author_permalinks'); ...
3
votes
1answer
104 views

Can't add a Page with Name 2011

I've no idea why i can't add a Page with Name 2011. Wordpress changes the URL Slug to 2011-01. There is no Post with this Name in my Database. I tried zu flush my rewrite rules but nothing seems to ...
0
votes
2answers
952 views

Shortcodes not working

I have WordPress 3.2.1 and I have created a personal shortcode, everything works fine until I change the Permalink Settings from Default to Custom Structure. The shortcodes stop to work permanently, ...
0
votes
1answer
1k views

Post will not load via ajax

I have inherited a WP 3.2.1 site which uses prettyPhoto to load content via ajax. This was working before I enabled permalinks on the site. The Custom Post Type UI plugin is installed. I can browse to ...
0
votes
1answer
362 views

Ugly permalinks stopped redirecting to pretty URLs

I have a WordPress 3.2.1 site hosted on a DreamHost shared Debian/Apache server. Since I set up the site two years ago, it's been set to the /%year%/%monthnum%/%postname%/ permalink structure. It was ...
2
votes
2answers
31 views

Migrating Wordpress blog to New Webhosts, something is adding a # and gibberish

I just migrated a WordPress blog from one host provider to another. Did a clean install on the new server, and everything seems to be working fine except all the permalinks for some reason add a ...
5
votes
1answer
4k views

How to set permalink structure via functions.php

I'm setting up a Wordpress Network and wanted all new sites to have the same permalink structure (i.e. "/%year%/%monthnum%/%postname%/"). I'm wondering if this is possible to do via hooks or hacks in ...
4
votes
1answer
1k views

Custom Post Type Archives by Date with Custom Permalink

I'm a bit stuck with getting the custom permalink for custom post type (CPT) archive to work. I've registered my 'press_release' CPT as following: add_action('init', 'press_release_post_type_init'); ...
0
votes
1answer
339 views

Change author permalink using htaccess?

The original urls for users look like /author/user-name/ Is it possible to replace login by user's id? (something like: /author/34/ (34 is user id)). I found the solution given here, to not work for ...
0
votes
2answers
166 views

Change permalinks for posts but not custom post type?

I want my permalink for my standard posts to be www.mywebsite.com/photoblog/name-of-post So I've written the custom structure as: /photoblog/%postname%/ However, my custom post type 'projects' ...
0
votes
1answer
1k views

Rewrite on custom post type permalink not working?

My theme has a custom post type called 'portfolio'. I want the url to display 'projects' instead. I've change the rewrite on the register_post_type function to 'projects' but it doesn't change the ...
1
vote
1answer
1k views

Easy way to change custom post type name for permalinks?

I've pretty much finished building a site based around a theme that uses a custom post type called portfolio. Now, having just switched my permalinks to a custom structure, posts of that type display ...
0
votes
1answer
140 views

How to Use metada Value in Url and is it possible? [duplicate]

Possible Duplicate: How to use Post Custom Metadata in Post Titles and Post Permalinks hii i want to know that how can i use my metadata value for post url which i add with my every post in ...
6
votes
1answer
132 views

Rewriting every url

I have a question regarding permalinks and rewriting url's. I am writing a translation plugin and I would like to add the language shortcode in my url (Something like ...
0
votes
1answer
132 views

How to get Wordpress to NOT alter the permalink structure when adding a static page?

This is driving me nuts and I'm hoping someone knows of a way around it. Say I have a permalink structure of /%postname%/ and I have URLs like www.domain.com/blog/post-name/. So I go about linking ...
0
votes
1answer
4k views

Sub-category and category in permalink structure

Is there any way (plugin or function), to include the sub-category and the category automatically in the permalink structure? I want an URL structure like this: category/subcategory/posttitle/
0
votes
1answer
48 views

How to link to custom “archive like” page with custom permalink rules “dynamically”

I am working on a plugin where I am trying to create a "archive like" page with permalinks. Here is what I have so far: I've created a query var "experience" I've created custom SQL selects using - ...
0
votes
1answer
86 views

How to define %category% for custom taxonomies?

So when you put %category% in the permalink structure that tag will be replaced with the path from the root category to the furthest subcategory, where, when placed in multiple categories, it will ...
1
vote
2answers
465 views

Custom Post Types, Custom Taxonomies and Permalinks ?

So let's say i register a custom taxonomy called: Clients With a few terms such as: Microsoft, IBM, Apple Under a CPT (custom post type) called projects: Permalinks ...
1
vote
1answer
92 views

Permalinks - Different structures for different categories?

Currently I use /%category%/%postname%/ as my permalink structure. However, I would like to have a different structure for different categories. This is because I have a "News" blog that I would like ...
2
votes
1answer
2k views

Custom post type's get_permalink returns wrong url

Currently my permalink setting is /paper/%postname%/. I am developing a plugin, so the following is done during the activation. I am programatically adding a new custom-post-type called 'meta', like ...
0
votes
1answer
381 views

Categories show 404 error on multisite installation

I have a wp multisite installation with multiple blogs that are totally separated websites. I use a plugin for domain mapping. Right now I am configuring everything and I wanted to remove the /blog ...
0
votes
1answer
200 views

Can not call .php files after switching to %postname%

This $('#content').load("submenu.php"); works just fine with default permalinks When I switch to %postname% it does not work any more But, I can still go though to mysite.com/submenu.php and it ...
0
votes
2answers
3k views

permalink for category pages and posts

Can you please help me? For getting post url I use: <?php the_permalink() ?> But for pages and for categories? If I use <?php the_permalink() ?> on categories it displays post url.
0
votes
2answers
666 views

rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked

thanks to Roman for pointing me in the right direction my plugin is almost ready. The only problem i am now facing is that i cannot get the rewrite_rules applying on activation they only work after i ...
0
votes
2answers
5k views

Permalinks on post is working, on pages 404 error

I am having troublle with setting my permalink in wordpress site. I changed the permalink from default to custome : %postname%. In this case my posts are working perfectly, but the pages are not. ...
0
votes
1answer
58 views

Need help with major category and permalink re-organization

I would like to re-organize my categories and the permalink structure. I want to rename and merge categories, make previous categories sub-categories and change the permalink structure from ...
0
votes
1answer
179 views

How can you store your option at the permalink settings page?

I followed the Settings API page and used the example to get the following code: http://pastebin.com/CUA7nLCR When I change $settingsPage to general, reading, writing, etc. this all works flawlessly ...
-1
votes
1answer
105 views

Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]

Can you upload it somewhere or send to my email?
0
votes
1answer
147 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
634 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
285 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
291 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
596 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
916 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 ...