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
1k views

Custom post types - Use post_id in permalink structure when using has_archive => true

I recently asked this question Custom post types - Use post_id in permalink structure and solved it but as I have enabled 'has_archive' => true the solution given no longer works. Let me explain: ...
3
votes
2answers
808 views

How to get the clean permalink in a draft?

When I use the_permalink or get_the_permalink in a draft or scheduled post, the URL provided is not the "final" permalink—it is the unpretty ?p=xxxxx version. How can I get the final, "clean" ...
3
votes
1answer
3k views

“.#[random-char-string]” being inserted at end of URLs

I've seen this on a couple of sites now and I'm having trouble finding information about (probably because it's awkward to describe): All internal URLs like this for example: ...
3
votes
2answers
1k views

Must slugs be unique?

Is it true that slugs must always be unique, regardless of the rest of the url, or if it's used by different post-types or taxonomies? For example, is it possible to have both of these urls? ...
3
votes
3answers
471 views

Custom permalinks

We have a custom type music. /music/ /music/post-name/ Also, we have a tag-like taxonomy genres. Its urls are: /music-genres/genre-name/ I'm trying to make urls like: /music/ /music/post-name/ ...
3
votes
1answer
1k views

Is there a way to use regular categories with custom post types?

Is there a way to use regular categories with custom post types? It seems like there is better functionality and options with regular categories (such as permalink options, etc.).
3
votes
1answer
203 views

Templates for Custom Post Types and Custom Taxonomies

I am working on a custom theme for a network of sites that are deployed under a WordPress MultiSite installation. Within these theme I create 4 custom post types that have two taxonomies added to all ...
3
votes
1answer
864 views

Adding meta values to permalink

I have publications and I want to simply add year and month to the permalink. Currently the year and month of publication is added to the post as a meta value. I've set up publications as a custom ...
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 ...
3
votes
2answers
542 views

Can /%year%/%monthnum%/%day%/ structure tags be added to custom post type permalinks?

Just wondering if anyone had tried using any of the structure tags available to post permalinks with custom post types... I'm moving my "listings" posts on a site I manage from a category hack under ...
3
votes
2answers
1k views

Change author permalink

The original urls for users look like /author/login/ Is it possible to replace login by user's id? In my dream urls should become to /users/34/ (34 is user id). Thanks.
3
votes
1answer
4k views

Remove parent category from permalink? Basically only have the child category?

I think there used to be an out-dated plugin to do this. Is there any way to do this easily with just a little code? We prefer not to rely on a plugin since that makes us dependent on the developer ...
3
votes
2answers
304 views

CPT archive 404ing when using a custom taxonomy name as a variable

So, I'm using a custom post type archive and generating a JavaScript-based filtering interface for sorting through results. Here's an example: http://www.inverity.org/sermons/ Now, what I'd like to ...
3
votes
2answers
187 views

Understanding Permalinks on Custom Post Types

I hate to try to reinvent the wheel here, but none of the suggested post seem to work in answering my question. I am building a system for our 30 Under 30 honorees, which is basically setup as a ...
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 ...
3
votes
1answer
344 views

Wordpress homepage loads but all permalinks are 404 when using nginx & PHP-FPM

I have been trying to resolve an odd problem with my nginx config, which seems to have stopped working shortly after applying a Debian backports upgrade. The landing page of my blog ...
3
votes
2answers
704 views

Custom post type 404s with rewriting even after resetting permalinks

I created a custom post type, of which the (simplified) arguments are: register_post_type( 'Event', 'public' => true, 'rewrite' => array( 'slug' => 'eventy'), 'has_archive' ...
3
votes
2answers
2k 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 ...
3
votes
1answer
911 views

How can I set up a category “overview” page?

I know I can use the Template Hierarchy to set up custom theme pages for terms inside a category, like these: mysite.com/category/tech/ // category-tech.php mysite.com/category/blog/ ...
3
votes
1answer
238 views

Remove unwanted part of permalink custom structure from CPT url?

My site currently has regular posts (in a section called "Trend Watch"), as well as a Custom Taxonomy (called "Region"). My permalink settings have this Custom Structure: ...
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 ...
3
votes
2answers
783 views

Why does Wordpress Pagination Remove the Spaces from my GET Variable?

I'm passing a GET variable at the end of my URL's as my search parameter. When I do a regular search, everything works fine: www.mysite.com/?find=my+search However, when I click over to the second ...
3
votes
3answers
1k views

Broken wordpress permalinks on pages only

Not sure when it happened but the custom permalinks for pages on my client's Wordpress site have broken. I can fix it by reverting back to the default permalinks and then using the custom permalinks, ...
3
votes
2answers
681 views

Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?

(Moderator's note: Title was "Convert into nice URL a shared custom taxonomy URL with a query string value") I have a custom taxonomy template: taxonomy-country.php used by two (2) Custom Post Types: ...
3
votes
1answer
129 views

Prepend meta_value to permalink of post

I have 2 custom post types movies (non-hierarchical) and series(hierarchical). Each post from seriestype has a meta field _movie which contains a movie ID. I want to specify a custom permalink ...
3
votes
2answers
600 views

Removing hierarchical pages in the permalink

I have several pages set up in a hierarchy on my site. Currently the site's pages and URLs look like this. Page name | Current URL | Preferred URL ...
3
votes
1answer
98 views

Change permalinks for posts but not for custom post types

Currently my permalink structure for posts is domain.com/post-title I'm using a static front page and a "blog" page for posts. I'd like to to change the permalink structure for posts, tags and ...
3
votes
2answers
474 views

Make post slug have priority over category slug

I have a wordpress site where the category base is stripped from the url. Now, when a category has a certain slug that's similar to a post slug, the category is shown. I would like to show the post ...
3
votes
1answer
246 views

rewrite get parameter with custom post type

I am trying now for a couple days to solve the following Problem: I have a custom post type called gallery. I need the URL http://example.com/gallery/FOOBAR to be parsed like ...
3
votes
2answers
309 views

Adding another word in front of post url

I have a wordpress website with bunch of posts. My problem is that I need to change the URLs from website.com/post-name to website.com/specialword/post-name The "specialword" is what I need to ...
3
votes
1answer
260 views

Social Media Links on homepage - within posts/post loop

On my WordPress site I've got a social sharing bar that I created myself. Here's a picture of the social sharing bar: http://d.pr/i/ucSG - I have the social sharing links included within 'index.php' ...
3
votes
1answer
570 views

Modify custom post type rewrite rules in a separate function

I want to modify the rewrite rules for a custom post type, tribe_events, which is registered as a post type within "The Events Calendar" core plugin files (the-events-calendar.class line 24): ...
3
votes
1answer
406 views

Limiting the number of words or characters in the slug/permalink

Limiting the number of words or characters in Wordpress slug/permalink. I would like to limit the number to the first 5 words (or 20 characters) even if the post title is longer. example: Title: ...
3
votes
1answer
450 views

Dynamic page slug for Custom Taxonomies?

I have a custom page "fine-art", which lists the different types of fine art that we produce based on the custom-taxonomy "fine_art_category". Some of the custom taxonomies are wood, metal, Fine Art ...
3
votes
1answer
497 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: ...
3
votes
1answer
2k views

Rewrite permalinks for custom posttype and custom taxonomy

How to rewrite permalinks for a custom posttype and custom taxonomy? I have a custom taxonomy: region, and a custom posttype: business. Now, how to rewrite the permalink, so that for a category, ...
3
votes
1answer
933 views

Non-Latin Characters in permalinks

I was opened this idea 7 months ago: http://wordpress.org/extend/ideas/topic/non-latin-characters-need-love Still i couldnt find a solution for it. Simply what i want? Want to use "şŞ İı Ğğ Üü Öö ...
3
votes
1answer
532 views

Menu Link Redirect Based on Username or User ID

I am building a client portal where my clients can log in and see all their pending projects, completed projects and create new projects. Though I'm stuck at the start. The dropdown menu is called ...
3
votes
2answers
569 views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
3
votes
1answer
1k views

Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error

Here we have a snippet from a functions.php file... add_action('init', 'create_recipes'); function create_recipes() { $recipes_args = array( ...some properies..., 'hierarchical' ...
3
votes
1answer
385 views

Permalinks all messed up, I am helpless [closed]

Today I tried to make the Permalinks of my Wordpress site more SEO friendly. I got it working for all links, except the ones linking to a custom post type page. I Googled the problem and found out ...
3
votes
0answers
63 views

Add /demo/ slug with rewrite rule [duplicate]

Possible Duplicate: Add extra parameters after permalink? I need to add a slug to every post. Current permalinks http://www.my-domain.com/2012/01/01/my-post-title/ or ...
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 ...
3
votes
1answer
265 views

Help with a TV series Rewrite structure

Not sure if this is possible, but bear with me. I think I am halfway there. First a little background: I'm using the build in hierarchy in WordPress to form relationships between post types. I ...
3
votes
1answer
1k views

Creating custom permalink structure for languages

I've written a simple multi-language system, whereby clicking on a flag icon sets a one year cookie containing a two letter language code (e.g. nl, de, etc). I hook into the wp action to read the ...
2
votes
4answers
2k views

Is there a user-facing interface to edit an attachment's permalink?

If you use the [gallery] tag at all you know that permalinks for image attachments end up like blog.com/2011/03/18/post-permalink/attachment-permalink. The URL extension from the post permalink ...
2
votes
1answer
3k views

Custom post type permalink endpoint

I have a custom post type called "destinations" and I have set the EP mask for the post type to default EP_PERMALINK. I have added a couple of endpoints as follows : add_filter( 'query_vars', ...
2
votes
2answers
2k views

Does WordPress Change the .htaccess File When Updating?

I've just implemented a new WP website, replacing an older hardcoded HTML site. I will be adding 301 redirects in the .htaccess file to point the old URIs to the new WP Permalinks. My questions is, ...
2
votes
4answers
648 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 ...
2
votes
2answers
8k views

Using $_GET variables in the URL?

I need to generate a simple error message on a page by passing a variable through the URL. The URL is structured as follows: http://site.com/parent-category/category/?error=pause I'm sure it's the ...