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

Problem with parent page slug only in WordPress admin

I am using the permalink structure: /%category%/%postname%/ in order to show my blog posts under their category in my url. I have also installed WordPress SEO by yoast (if that helps) but I noticed ...
1
vote
1answer
140 views

Illegal characters in URLs

I have some old permalinks (posts, pages, tags) that contain now-illegal characters in them - and these aren't working anymore. In previous versions of WP it was allowed to use the non-latin ...
2
votes
3answers
1k views

How to make variables in URL look like the permalink structure?

I've been looking for the answer to this everywhere but with no success and that's why I'm asking here. I don't even know if the question is the right one. In any case, I'll try to explain. I have ...
4
votes
3answers
650 views

Hierachical Custom post types permalinks not working

Been looking for someone with this same problem for hours now so I decided to post my own thread. I have a hierachical custom post type called contact-information. Using this I have parentpages ...
5
votes
1answer
10k views

Rewriting a custom-post-type permalink with taxonomy term?

I'm trying to rewrite my url for a custom_post_type named wr_events with one of its custom_taxonomy terms from event_type add_action('init', 'wr_events'); function wr_events() { ...
0
votes
3answers
467 views

Can Permalink structure of %postname%/%post_id% improve performance

Since the post_id is unique and no full text search is needed. So is the structure %postname%/%post_id% really improve performance?
1
vote
1answer
238 views

How to get permalink using get_blog_post function in a multisite?

I'm using code like this $post = get_blog_post( $blog_id, $data ); echo __('Post on') . ' "<a href="'.$post->guid.'">' . $post->post_title . '</a>"'; But the href link looks ...
0
votes
1answer
535 views

What would cause a 500 Server Error with permalinks turned OFF?

I'm using the "default" setting for permalinks, at least I just switched back to that, and I'm still getting a 500 response code when trying to get to any post page like mysite.com/?p=4536 I can see ...
0
votes
1answer
223 views

Get permalink for a post from inside Wordpress and route to a related site

I built a mobile version of a wordpress site and added some PHP code in the wordpress index.php file to detect mobile users and HTTP-redirects them to m.website.com (which is not a wordpress ...
0
votes
1answer
214 views

Comment author url link is wrong? How to change from authors/ to author/

I’m maintaining a rather simple blog where a small number of people are registered as administrators to write posts. When making a link to the authors URL in a posts meta data, I use the function ...
0
votes
3answers
581 views

Use Single Blog Post as Site Front Page Without Redirect

I am attempting to do something similar to the accepted answer on this question Is it possible to use a single custom post as the site front page My problem is that this implementation causes a ...
0
votes
1answer
92 views

Taxonomy based permalinks

With my website I work with my own taxonomy. And I want that the taxonomy is intergrated with the permalink. So if an news page has a taxonomy, the permalink change. Like this: ...
2
votes
3answers
658 views

flexible rewrite 'ramble' URLs with Wordpress

I want to access my post with id 17 like this: http://localhost/archives/17/moot-bla-foo-ramble In other words, the id shall decide, everything thereafter may (or may not) be the slug or anything ...
2
votes
2answers
147 views

Getting links to work the same on development and production

I am working on a website where I am specifying links to pages within my site in other pages. I am using the same permalink post name structure i.e. http://example.com/sample-post on both development ...
0
votes
2answers
216 views

Permalink for Custom Post Types

I am trying to get a custom permalink style for my custom post types... my current permalink for my post is /%postname%/ but for my custom post types, I am trying to get the custom taxonomy in the ...
2
votes
1answer
66 views

After updating a page, all pages on the site used the index.php template

I am having a strange problem with a site I am currently building. I will try to give as much detail as possible in the hopes that somebody is able to figure out what is causing this :) Overview of ...
1
vote
2answers
172 views

Change permalinks on move from one site to another

I'm in the finishing stages of moving a site from Wordpress.com to a privately hosted .org installation. I've purchased the site-redirect upgrade and this is working fine, however on the new ...
0
votes
1answer
146 views

How to use permalink query to go to specific tabs in posts

I'm not really sure how to phrase the questions, but hope it's not too confusing. Basically I've create a plugin which inject custom tabs into the posts content when displaying. For now, just assume ...
0
votes
2answers
363 views

Custom Permalink Structure for Pages & Posts

I'd like to create a permalink structure that works in the following way: Pages - http://myurl.com/pagename Posts - http://myurl.com/news/postname/ How would I do so? Thank you
0
votes
1answer
170 views

Update page breaks permalinks

I am having a strange side effect since going to 3.3.1. When updating pages (or creating new ones) all of my permalinks break - clicking view page on the updated page in question will result in 404 ...
1
vote
2answers
404 views

Clean URL permalink for custom post type

I have a custom content type of photo_group which is a collection of photos. I want to be able to go to mysite.com/photos and have that page dump out all of my photo groups. How can I do this ...
0
votes
1answer
358 views

wp_insert_post generated mixed permalinks

I'm writing a plugin which uses wp_insert_post() to insert posts programatically and my permalink setting is /%category%/%postname%/ Of all the post inserted, wp_posts.guid shows 2 types of output. ...
0
votes
1answer
192 views

Wordpress custom permalinks, pages are now 404

I've set my permalinks to a custom structure: /%menutype%/%postname%/ This works all right for my custom taxonomy (menutype) and anything that's an archive. Now however, simple pages won't work, ...
0
votes
1answer
77 views

Wordpress custom posts and permalinks

I have a custom post type called "menu" with the following categories hotboxes salads soups wraps Code: register_taxonomy( 'menutype', array("menu"), array( "hierarchical" ...
1
vote
1answer
489 views

Non latin post slug truncate

I created a custom post type and set its permalink structure to 'category/postname'. I found that sometimes, when i create a post in a non latin characters, the post slug is getting cut. I googled ...
0
votes
1answer
637 views

Custom permalinks - post type - hierarchical taxonomy's

I did folowed the steps / solution from Jeff it helped me alot with he's settings, got it for about 90% working properly. But getting stuck on the post / postname. It loads now the ...
3
votes
3answers
860 views

How to control which category will be picked for the slug of a post?

I'm using the permalink structure "/%category%/%postname%/". What bothers me is that I have posts that belong to two categories. And of course, unfortunately, Wordpress always picks the wrong one for ...
1
vote
2answers
563 views

Custom Post Type: How to display all of same taxonomy?

Isn't there a permalink structure that will essentially list out all categories of a certain post type? function create_faqs_post_type() { register_post_type( 'faqs', array( ...
0
votes
2answers
2k views

Rewrite-Rules not working on a vhost, everything goes to index.php

after setting up the wordpress htaccess rules in my vhost, i was unable to enter the wp-admin area. I was always redirected to the frontpage of my wordpress instance. The rewriting itself worked on ...
1
vote
1answer
337 views

Is the '/category/post-name-date/' permalink structure okay?

Wordpress Codex says: Make sure to end your structure with either %post_id% or %postname% (e.g. /%year%/%monthnum%/%day%/%postname%/) so that each permalink points to an individual post. But ...
1
vote
1answer
784 views

Remove Custom Taxonomy Slug from Permalink

I have a registered custom taxonomy called articles to my posts. So if I have a term called reviews, the link to my custom taxonomy reviews archive would be www.mysite.com/articles/reviews/ . I would ...
0
votes
1answer
111 views

Plugin generated taxonomies' permalinks with custom placeholders

I have a problem with permalinks for custom taxonomies generated with Types http://wordpress.org/extend/plugins/types/, a plugin for creating taxonomies, custom posts and custom fields. The problem ...
0
votes
1answer
49 views

How to link post titles on page A to its posts on page B?

I set and reversed the order of a list of post titles on my front page with: <?php global $post; $args = array( 'category' => 6 ); $myposts = get_posts( $args ); $reverseposts = array_reverse( ...
1
vote
2answers
1k views

Custom Permalink with Dynamic Taxonomy for Custom Post Type - Works, but breaks other permalinks

My custom permalink with dynamic taxonomy is working for my custom post type. However, it breaks all my other permalinks. They display a 404 error in the content area (header and sidebar still ...
2
votes
1answer
4k views

Permalinks for custom post-types within custom taxonomies not found

I have tried to apply the advice offered by TheDeadMedic in this post to achieve the following URL structure: example.com/activities = a WP page example.com/activities/type-term = a custom archive ...
0
votes
1answer
262 views

Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)

I update my permalink structure to /post/%post_id%/%postname%, but if someone uses a URL like /post/1234 instead of the full URL of /post/1234/bingo-rulz, WordPress shows the post without giving a 301 ...
1
vote
1answer
819 views

Permalink doesn't get displayed in Twitter button (Local WordPress problem?)

I'm trying to add a custom "Tweet this" button to my WordPress posts. I'm sticking to the official Twitter guidelines. Here is what I'm actually trying to pull of; I don't want the button, I want a ...
1
vote
1answer
1k views

Strange Anchor Tag Behavior (in-page links work, external pages do not) [closed]

I've got a strange issue in that anchor links on the current page work fine, but that the exact same link doesn't work if clicked from another page. If you go here, and click on any one of the ...
0
votes
1answer
380 views

Permalink Structure not updating .htaccess

I am trying to update the permalink structure using the back-end and Settings -> Permalinks. The .htaccess file is not updating. I have given .htaccess full access with chmod -R 777 .htaccess and ...
0
votes
1answer
107 views

when I create a page with a /blog permalink the css gets messed up

When I create a page with a default template and parent set to no parent, with the permalinks name being sitename/blog the css on that page gets messed up(including the admin bar is all messed up), if ...
0
votes
1answer
305 views

Generate multiple tag query URLs

As we know WordPress supports multiple tag queries (',' and '+'). The only problem with this add_query_arg() doesn't handle these methods if a query param is already exists in the URL. From the ...
1
vote
4answers
2k views

Changes to permalink structure results in 404 error for all pages other than home

When changing the permalink structure on my site, I get a 404 error for every page except the home page. I've see other questions that mention resetting the permalink structure to get it work, but ...
0
votes
3answers
1k views

Problems with 404, .htaccess, permalinks and Wordpress custom posts locally on Snow Leopard

I have a custom "about" post: function about_register() { $labels = array( 'name' => _x('About Page', 'post type general name'), 'singular_name' => _x('About ...
1
vote
2answers
2k views

How do I turn off 301 redirecting posts (not canonical)?

I noticed a strange behavior in WordPress where it automatically 301 redirects certain URL structures for posts. For example, I have a post entry for: mysite.com/999/about-us Then, you would think ...
1
vote
3answers
840 views

Wordpress home page showing 404 error

I've had a look for anyone experiencing the same issue but to no avail. I am currently working on a Wordpress site that previously did not have permalinks, so have added these (i.e. to change the ...
6
votes
3answers
1k views

Strange permalink issue: can't rename /company-2/ to /company/

I created a page titled company. But the permalink turned it into /company-2/, trying to change it to just /company/ doesn't work. The website just has 8 pages and none is called company (don't know ...
2
votes
1answer
4k views

Why is “/page/2/” not working?

Finally got pagination to work with the below code, but now the pagination links to /videos/page/2/, which doesn't exist. How do I get page 2 to work? <?php $temp = $wp_query; $wp_query= null; ...
1
vote
1answer
2k views

Function to get permalink of custom post type archives?

Is there a function that will return the permalink to a custom post types archives that is available to use in WordPress? Something like: get_cpt_permalink("events") which will return ...
0
votes
1answer
529 views

Dynamically change Custom Post Type Template OR Change Permalink?

I have built a plugin that uses a custom post type and a single-.php file for a template. My issue is the custom post type template needs to take on the name of the post type and I need to change ...
1
vote
1answer
391 views

Permalink changes gives me 404 [closed]

Up til now, I've used /%postname%/. Now I have changed this to /%category%/%postname%/. I know WP does not recommended to use category / psotname, but it makes a lot more sense for users. Opening ...