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)

1
vote
1answer
135 views

add_rewrite_rule behaving strangely

I'm customizing another plugin by changing the rewrite rule, from: add_rewrite_rule('^api/auth/([0-9]+)?/?','index.php?__api=1&uid=$matches[1]','top'); to: ...
2
votes
1answer
89 views

How to get wordpress link to fully evaluate when coming from facebook

The short version: Any link from Facebook to a page stops evaluating at the "hardcoded page" in the wordpress press install, ignoring the remaining parts of the URL. It doesn't allow the shortcode ...
5
votes
1answer
2k views

Rewrite Rule for Multilingual Website, Like qTranslate?

I would like to write my own little plugin for language switching. For that, the very first thing would be to get the rewrite rules running. I have been looking around the web for 2 hours, but I ...
2
votes
2answers
402 views

Random post permalink

I want to make a random permalink for each new post. For example when an author creates a new post, he gets this kind of permalink automatically: http://mysite.com/x5Kvy6 (like bit.ly). But I want to ...
1
vote
2answers
354 views

Why doesn't a custom post type permalink ever hit index.php

So, I've got an entirely custom theme which has a number of custom post-types. I've also got a custom taxonomy which I can visit on the front end with URLs such as: ...
1
vote
1answer
386 views

Rewrite rule for a query string

I have a taxonomy search form and the link output is http://localhost/wp/?cityid=16 But i want it to be rewrited as http://localhost/wp/cityid/16 .htaccess # BEGIN WordPress <IfModule ...
1
vote
1answer
370 views

query_vars in plugin not working?

I have a problem writing a plugin for wordpress. First, I register a new query_var and add a new rewrite rule: function nng_users_query_vars( $vars ) { array_push( $vars, 'nng_users' ); ...
0
votes
2answers
54 views

Permalink for regular posts “/blog/”

I'm trying to figure out how to accomplish the following: http://www.mydomain/blog/my-blog-post/ I'm using the /%postname%/ for my permalink structure, but this eliminates the "/blog/" from all ...
0
votes
1answer
162 views

Custom post type permalink structure to include the taxonomy

I have a blog and I want to make a modification to my custom post type to include the taxonomy term in the permalink. For example I have a custom post type named "my_services" and I have a custom post ...
0
votes
1answer
491 views

How to display subcategory articles in the category view?

I have the wordpress category widget installed on my website that lists all categories/subcategories on my site and their hierachy: Watch Accessories (1) - Straps (1) Watch Glossary (5) Watch Guides ...
1
vote
0answers
88 views

Slugs Disappeared Leaving 404s - Quick way to repopulate?

I've got roughly 3000 pages in WordPress w/ permalinks on. I recently cleaned up the database which appears to have deleted a fair amount of slugs for many of the pages. Obviously, with no slug, ...
1
vote
0answers
11 views

File access different with permalinks on and off

I have a page with a link to a file in a password protected folder. When I have permalinks turned off, clicking on the link starts the file download. When I have permalinks turned on, clicking on ...
2
votes
2answers
1k views

custom taxonomy archive permalink shows 404 error

In my plugin I have a custom post type with a slug of 'ready-to-wear' and I have a custom taxonomy called 'seasons' associated with it. The odd thing is that this url with query works: ...
4
votes
1answer
298 views

Dynamic taxonomy in permalink made all other posts NOT FOUND?

I added my taxonomies in the permalink instead of the Custom Post Type's slug, and it works fine. I'd even say everything was working fine but changing the WP installation to Multisite broke all other ...
1
vote
0answers
38 views

Path to Pages Resolves to Archive instead of Actual Content

When I upgraded to 3.4.1, the root level pages (ones that I had before, and any page I have afterwards) do not resolve to the actual page. No matter the name (so i don't think there is a slug issue), ...
7
votes
3answers
5k views

Add .html (dot HTML) extension to custom post types

Is there any way to add the .html extension to custom post types without plugin ? For posts I can use /%postname.html on the permalink settings For pages I can use: add_action('init', ...
1
vote
0answers
102 views

(Solved) category link not working [closed]

I created a theme using wamp. It works fine and all, but when I uploaded it to the server, I am having problems with categories. It always generate this url: http://deremoe.com/reviews/ this is what ...
4
votes
2answers
5k views

where is permalink info stored in database?

I see that I can edit permalink information in wp-admin page > settings > permalinks. However, where is that information actually stored in the database?
3
votes
3answers
3k views

Including category-base in a post permalink results in 404

I have static front-page and separate page /news/ as the Posts page. I would like to have the single-post URLs like this: www.example.com/news/categoryname/subcategory/postname/ and for the ...
2
votes
1answer
2k views

Move WordPress site from one domain to another

I've read through the codexs and I'm trying to find out the best way to change or move my MySQL and subdirectory files to a new domain without extraneous effort. For instance, I built a stage site ...
2
votes
4answers
741 views

Permalinks to Custom does not work (out of box)

I have tried to change mode of .htaccess in wordpress folder to 644. Yet, I get Not Found The requested URL /wordpress/features/ was not found on this server. I keep reading about rearranging my ...
0
votes
2answers
187 views

Permalinks not working on new site

I'm setting up a new site on 3.4.1 and the Permalinks will not work. I have deactivated all plugins and switched to TwentyEleven and they still fail. I can see through outputting $wp_rewrite that ...
0
votes
1answer
68 views

wordpress home is gone

i'm new to wordpress AND to php and web coding in general. i've done my wordpress theme in local, and now i like it. then i moved to a host, created the user and the database in the host server, ...
2
votes
0answers
117 views

Change Permalink Structure for Custom Taxonomy [duplicate]

I have a custom taxonomy called colors, which contains the terms Red, Blue, Yellow etc. Each post has a term of the taxonomy colors linked to it. The default permalink structure for posts is ...
6
votes
1answer
771 views

How to remove dates from existing permalinks?

After doing some research about dates on blogs, it seems like it is a good idea to remove them from the existing posts. Consider: Self-hosted (on Bluehost) Over 1,000 existing posts All posts are ...
2
votes
2answers
796 views

WordPress 3.4 Permalinks Redirection Problem

A few years ago this was the permalink structure I had for my blog: /%year%/%category%/%postname%.html I changed these permalinks last year to this: /%category%/%postname%/%post_id%/ A ...
0
votes
1answer
985 views

Changes to .htaccess not updating the file (old rules still take effect)

I was running a Wordpress site using pretty permalinks, and everything was dandy - the .htaccess file was behaving, and url rewriting was working. This weekend, I decided to convert the site into a ...
1
vote
1answer
90 views

permalinks issue and archives

I have an issue with a site running on WP 3.3 where when we make the permalink anything by "/%post_id%/%postname%/", the archive pages break and become 404s. After some research, I came to understand ...
0
votes
1answer
3k views

The requested URL was not found on this server [closed]

I'm running wordpress locally on 127.0.0.1 on mac osx lion. All links work fine. Problem is when I add pages, and set permalinks to the page, and then associate the page with one of my template ...
1
vote
0answers
1k views

How to change “attachment_id” in attachment permarlink?

I changed attachment permalink by add_filter('attachment_link','my_media_url'); from http://domain.com/?attachment_id=123 to: http://domain.com/?media=123 The change is successful. But, with the ...
1
vote
2answers
690 views

Get closest page ID from URL

Lets say on my WordPress website I navigate to: www.example.com/media-centre/news/17/an-example-news-post In this case I am looking at a post in a CPT called News. What I want to do is get the ...
0
votes
1answer
63 views

Custom role can't create permalink

My user post a new custom type "artprim_item" and it doesn't work unless I remove permalinks. The item is created, but the permalink links to "item not found". More importantly, if I open the item ...
2
votes
3answers
759 views

Custom Taxonomy in Permalink of Post

It is possible to use this as a permalink for a post: /%category%/%postname%/ But lets say I've created a taxonomy called "artist". I'd like to use this for my posts: /%artist%/%postname%/ I ...
1
vote
1answer
123 views

Permalink options page corrupts web.config file

Whenever I got to http://example.com/wordpress/wp-admin/options-permalink.php my config file at http://example.com/wordpress/web.config instantly gets corrupt and I have to delete the config file. ...
4
votes
1answer
97 views

Page permalink conflict with Date

I need to access a page which is name 2011. The trouble is that WP thinks that I am trying to read the 2011 posts of my blog. The only way I can make it work for the moment, is to change the ...
2
votes
2answers
2k views

Remove parent slug for child pages

I'm looking for a plugin/custom function that removes the parent slug of a child's page permalink. Something that automatically changes the permalink for child pages. Example: ...
0
votes
1answer
488 views

Custom post types permalinks not working

Am I declaring my custom post types incorrectly? My permalinks are only working intermittently on my site. I believe I have my server set up correctly; I have a few Drupal installs up along with my ...
0
votes
1answer
40 views

Change posts URL [duplicate]

Possible Duplicate: Permalink: postname EXCEPT for blog I have relented converted my website to wordpress and I have used index.php as homepage and blog.php(template for blog posts), but ...
0
votes
2answers
115 views

Permalink: postname EXCEPT for blog

In order to refrain from possible duplicate URLs or conflicting URLs, I really want to use "postname" for a clean URL structure, EXCEPT for the blog ... for the blog and it's posts, I always want ...
-1
votes
1answer
199 views

Redirect Loops Problems

I don't know what happened actually. Yesterday, it was just working fine. I recalled what I did to put me in this difficult situation this morning. Yesterday, I was just editing posts with ...
2
votes
1answer
273 views

Custom post types and permalinks

I have a custom post type called Content, that has a capability type of 'page' and is set to 'hierarchical' => true. I have two pages with the same name "Children", but they have different parents. ...
1
vote
1answer
423 views

How do I prefix blog post urls as mysite.com/blog/%postname%/ but allow authors to still be located at mysite.com/authors/%nicename%?

I've tried a bunch of things but cannot find a solution that works. I want my site to have the structure: mysite.com/ = homepage mysite.com/blogs/ = blog archive mysite.com/blogs/year/ = blog ...
0
votes
2answers
675 views

Page Navigation is not working with permalink structure

I am displaying a list of employees using my custom plugin. My permalink structure is %category%%postname%/ My page navigation was like http://www.example.com/emp/?page=2, and was working fine until ...
2
votes
1answer
289 views

How to prefix post permalinks with /blog/ - without affecting custom post types?

I have several custom post types, which are properly structured as /%post_type%/%postname%/, however I wish to have the same effect for regular blog entries: /blog/%postname%/ If I prepend the ...
0
votes
2answers
232 views

Category URL Management

When you keep the category base ( that is you don't remove it by a plug in) WordPress does allow you to browse to your 2 level deep category in two different ways as the example below would ...
2
votes
1answer
2k views

Permalink rewrite with custom post type and custom taxonomy

I think thats a quick one: I've got: Custom post type: Food Custom taxonomy (Registered to Food): Fruits Terms in Fruits: Apple, Orange, Cherry If I type in example.com/food?fruits=Apple,Cherry, ...
0
votes
1answer
80 views

wordpress permalinks tweeks

I am getting following permalink structure after creating any post... http://domain.com/wp/postname As per Permalink Settings.... Post name: http://domain.com/wp/sample-post/ This permalink is ...
0
votes
1answer
822 views

Rewrite rules for using the same base slug for multiple content types

I'm not sure if this is possible or not, but here is what I'm trying to achieve. I'm using WooCommerce, and I have it setup to prepend a base slug and the product category to my product permalinks. ...
0
votes
1answer
172 views

Problems with rewrite rule

I realy cant to figure this out. What i want to do, is this URI http://www.hotels-lithuania.net/index.php?page=76&type=hotels&id=1 transform to http://www.hotels-lithuania.net/item/hotels/1. ...
0
votes
2answers
802 views

How to Custom Edit Post Title & Permalink Slug?

I'm trying to build some functionality where if you're logged into an admin account you'll see a small 'edit' link next to each post title. clicking will use jquery to create 2 form inputs - 1 with ...