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)

3
votes
1answer
518 views

301 Redirects for Changed Permalink Structure & Category Base

I'm redeveloping a site on a fresh WP install. The old site had the following permalink structure: domain.com/CATEGORY/POSTNAME/ The new site has the following permalink structure: ...
1
vote
1answer
64 views

permalink %year% of pre-written posts to be published next year, in the mysterious future (*)

I am pre-writing some posts that will be published next year. My permalink structure is /%year%/%postname%/ After setting the post title, the permalink says it will be ...
0
votes
1answer
306 views

How can I see a list of all pages my WordPress site has generated?

I would like to be able to to see some sort of list of all the individual pages my WordPress site has generated that would inevitably be visible to a user or a search engine. For example, I know tags ...
1
vote
2answers
2k views

Can't change permalink url after hitting 'ok' and 'update'

I am trying to change some of the titles of my posts and their respective permalinks. After I edit the title and permalink and click 'ok', the permalink appears to have changed temporarily. However, ...
0
votes
2answers
511 views

Custom post type permalink structure

I've browsed tons of Q/A on stackexchange, google, wordpress forums... but haven't found yet a definitive answer to what looks like to be a common issue since the introduction of custom post types. ...
0
votes
1answer
55 views

custom data in url

Inside a WordPress site I load a external xml file parse it and show some links. The link looks like this: domain.com/prof/vac/item?guid=1234&title=foo This works, but now i would like the url to ...
-1
votes
2answers
140 views

URL issues with WordPress

I am having some URl issues with WordPress Basically i have different categories and for some reason whenever I have posts with exact same title...even though in "different" categories...I still have ...
0
votes
1answer
410 views

Problem with special character WordPress

I have a WordPress and everything seems perfectly fine but I have this page that has title 77% and it shows error 404 page. How can I fix this? I am kind of sure it is because of the % in the 77%. ...
4
votes
3answers
9k views

Multi-language permalink in qtranslate

I am using qtranslate plugin for my WordPress site to make it a multi-language site. Now I have got a requirement like For English the url should look like www.sitename.com/contact-en For French the ...
0
votes
1answer
414 views

how to create a sub section in posts

i need to create multiple section in my post. for eg: i have a wordpress post called football with the perma: http://mysite.com/football football contains sub section like ...
3
votes
1answer
12k views

How to rewrite URI of custom post type?

The site that I am working on uses the following "pretty" permalink structure: http://example.com/blog/my-special-post But for a custom post type my client would like to avoid having a "pretty" ...
0
votes
1answer
167 views

How do I use CPT and permalinks with a mobile theme?

We have a live site that is using one theme. Then I've got Wordpress Mobile Pack installed to enable a mobile theme which has different functionality and look. The problem I'm running into is that the ...
2
votes
2answers
698 views

Custom post type hierarchical permalinks not behaving as expected for parent/child pages

When you have Pages with children, the permalink structure works something like this: example.com/parent-page/child-page/ All well and good. Trying to go to this URL: example.com/child-page/ ...
2
votes
2answers
4k views

Removing taxonomy base using WP rewrite

I´m trying to create the following URL structure: example.com/attractions <-- post type archive example.com/attractions/taxonomy_term <-- taxonomy archive ...
0
votes
2answers
499 views

How to use different domains for different blogs hosted in the same host in subdomains with .htaccess

Background i have a website running on wordpress and all its files are located in public_html of my host. Within it i created a sub domain "phantomomaga" and redirected an other domain to that sub ...
0
votes
1answer
49 views

Permalinks: site.com/post-tite vs site.com/post-id/post-title for SEO and Speed

What are the differences, in terms of overall "work" required by the PHP processor to retrieve a page using these two permalinks settings: /%post_id%/%postname%/ vs /%postname%/ The second ...
1
vote
1answer
284 views

Custom permalink structure

I have been digging the code for days and no solution. :( I have a Custom Post Type and two different Taxonomies. It is possible to achieve the following permalink structure (with add_rewrite_rule, ...
3
votes
3answers
3k views

Get page permalink without wpurl

I currently have an ID of a page that I want to use its permalink as the front of a permastruct of a CPT I'm setting up. Now I can use get_permalink() but that returns the full URL: ...
1
vote
0answers
60 views

Problem Keeping Permalink Structure [closed]

I have just set up my WP blog on heroku and have one minor problem. I have set the permalink structure in Settings to be postname (/%postname%/). Whenever I come back to the blog after a while I get ...
1
vote
1answer
957 views

Custom post type Permalinks with hierarchical Taxonomies

I Would use Custom Post Type and hierarchical Taxonomies with same Slug. Fortunately I found a good solution based on post_type_link filter here from TheDeadMedic. ...
1
vote
1answer
38 views

widgetlogic and permalinks

I'm trying to use widgetlogic to conditionally display menus on certain pages. Each menu uses a tag like is_page(array("Page Name", "Page Name 2" ...)), and works perfectly until I try to change ...
0
votes
2answers
2k views

get_permalink() always returns empty

I suddenly have a bug in my plugin, and I don't know what on earth could be causing it. This code is failing because get_permalink() is returning empty at all times: $select = "SELECT * FROM ...
0
votes
1answer
229 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
323 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
119 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
387 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
969 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
368 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 ...
6
votes
1answer
5k 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
2k 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
345 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
142 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
133 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
93 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 ...