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)

4
votes
7answers
11k views

How to use relative links on my pages?

In my web pages I want to use relative links instead of absolute links. However, pages do not allow php code inside them, so i cannot do to from a url in a relative manner. How does one get ...
0
votes
1answer
1k views

How to get the post id from a permalink?

How can I get the post id from a permalink like "http://localhost/wordpress/animals/cat" in functions.php, I have tried url_to_postid() and get_page_by_path() but none seem to work.
0
votes
1answer
931 views

Pretty paged permalinks in custom post type loop

I must be annoying your with all these permalink questions :) The code I'm using for the loop is: // hijack stupid WP globals to get pagination working... global $wp_query; $temp = $wp_query; ...
2
votes
1answer
1k views

Get a permalink structure of /%posttype%/%category%/%postname%

I have a custom post type named Reportage, added in functions.php: add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'reportage', array( ...
1
vote
1answer
756 views

Custom post type permalinks giving 404s

I'm having trouble setting up permalinks for a custom post type. Below is the code from my init function: register_post_type('topic', array( ... 'hierarchical' => true, 'query_var' ...
11
votes
8answers
7k views

Remove taxonomy slug from a custom hierarchical taxonomy permalink

I created a 'forum' taxonomy, using these rules: register_taxonomy( 'forum', array('topic'), array( 'public' => true, 'name' => _a('Forums'), 'singular_name' => ...
0
votes
2answers
770 views

Permalink opens attachment instead of page

I recently moved a blog from one host to another and now have a problem with a permalink - rather than opening up a page, it now opens an attachment. The blog is using WP 3.0.4, running on PHP 5 and ...
1
vote
1answer
931 views

Permalinks not working using wordPress Networking with custom post types

Hay All, I've setup a WordPress network and have a couple of websites. Within these 'sub-websites' have a created a new custom post type called 'courses'. When i create a new 'course' a sample ...
1
vote
1answer
501 views

htaccess or redirect to cloak portion of a link?

I have an ad rotate plugin installed to display a few ads on my site but the plugin is coded so that it uses the full directory in the ad count link. I would like to know if there's something easy to ...
1
vote
3answers
795 views

Why does WordPress 3.0.4 keep deleting the contents of the .htaccess file?

I just installed WordPress 3.0.4 on a GoDaddy hosted server. And I've been having a problem with my .htaccess file. For some reason, WordPress automatically erases all the mod_rewrite configuration ...
0
votes
2answers
4k views

Strange behavior with a redirect loop - involves WPML multi-language plugin

I have a (client) site located at http://internationalgateway.us/. We are using the WPML Multilingual CMS plugin. When choosing another language from the homepage (in this case French, since that's ...
0
votes
1answer
49 views

How to set a page as homepage in stead of the newspages?

I need some help. I want the same as on this site: http://www.123ipad.nl/ (this is my website) When you go to the home url you come to a page in stead of the newspage. The newspages are in the submap ...
0
votes
2answers
3k views

How to change permalinks to show categoryname/post-name?

I've placed the string below into my custom permalinks input but it does not appear to have any effect... /%category%/%postname%/ I'm trying to insure that my post links are in the form of ...
0
votes
1answer
261 views

If I remove Category base from my URLs, how difficult will rollback be?

The last time I asked a question that required an opinion response, I was awarded the dubious tumbleweed badge. I'm fearful of adding to my collection, but here goes :) I'm considering writing an ...
6
votes
2answers
2k views

How to prevent apostrophes and quotes from appearing in permalinks?

I'm using custom permalinks "/%category%/%postname%/". Whenever a post title contains quotes or apostrophes they appear in the URL. Can someone tell me how prevent them from appearing in the slug? ...
0
votes
4answers
480 views

curl problem or permalinks

I just configured my VPS, I am using Centos, everything works fine, but if I am setting my permalinks to Custom Structure, then accept the homepage none of the posts come, it shows me 404 page, I ...
7
votes
1answer
11k views

Passing and retrieving query vars in wordpress

I have two authors pages, one displays about 5 posts. Then I'm trying to setup another page that will be all of their posts. I have created a template called moreauthorposts.php and I'm trying to ...
0
votes
1answer
415 views

Problem in getting user comments permalinks

i am trying to display comments by specific users at a custom area. i am successful to do that, but the problem is the permalink structure . this code gets the url as permalinks disabled, if i enable ...
1
vote
1answer
976 views

wordpress wp_list_categories

i'm using wp_list_categories like so: <?php //list terms in a given taxonomy using wp_list_categories (also useful as a widget if using a PHP Code plugin) $taxonomy = ...
1
vote
2answers
601 views

Turn off %postname% auto-incrementing?

I use the permalink structure /%post_id%/%postname% because I have user submitted content. The problem is that %postname% still auto-increments itself and looks funny, even though the post id makes it ...
1
vote
1answer
435 views

Adding page links to content that automatically convert to pretty permalinks?

Is it possible to insert links in Wordpress's wysiwyg editor that will convert to pretty permalinks when enabled? i.e. the links would be this without pretty permalinks: /?p=13 But with permalinks ...
0
votes
1answer
1k views

WPML - how to get the permalinks to display also the default language

Currently WPML adds /fr/ to permalinks to identify a url as French. The default language of the site is English, however WPML does not add /en/ by default for the default lannguage (English) ...
0
votes
2answers
2k views

Changing the category permalink structure

Hopefully another simple one, I have some nested categories, like this: - category-a - category-b -category-c The permalink for category-c is as follows: ...
0
votes
2answers
1k views

Remove permalink for custom post type

I have multiple custom post types and custom taxonomies, "staff", "games", which have the permalinks: domain.com/staff/%staff-name% domain.com/games/%game-name% However, I'm only using these custom ...
0
votes
1answer
913 views

What are the permalinks options for “Category” base and removing it?

Under "Settings > Permalinks", we can set up the default category base name to use for our category landing pages. For example, site.com/categories/my-first-category/. Is there a setting I can add to ...
0
votes
1answer
191 views

Post with no tag permalink problem

Firstly my problem was the %tag% in the permalink, but I resolved it with this patch: %tag% in permalink not working So my custom structure now looks like this: /%category%/%tag%/%postname%/ And ...
0
votes
1answer
254 views

Permalink of a page that has already been deleted

I had a page.. and I by mistake added another one, so the permalink got appended by "-2" at the end. I had to delete one of the pages, so I happened to delete the one without the -2 attached. Now I'm ...
2
votes
2answers
5k views

Custom permalink structure for custom post type

I´m using the following code to create a new post type: /* Create custom post type: "Tilbud" */ register_post_type('tilbud', array( 'label' => __('Tilbud'), 'public' => true, 'show_ui' => ...
0
votes
1answer
311 views

RSS feed link on archives page not working

I am trying to add a RSS link on my website archive-pages, which means, Suppose I am on page http://mbas.in/location/mba-in-usa/ then on this page, I will be having a RSS LINK named link, when I click ...
2
votes
2answers
2k views

%tag% in permalink not working

I use custom permalink structure: /%tag%/%postname%/ and it is not working. I get url - http://mydomain.com/%tag%/post/. So there is no tag name, just %tag%. If i place %category% instead ot %tag%, ...
4
votes
6answers
946 views

Can Wordpress realistically handle a site with 500 'pages'?

I'm building it from scratch and probably a 100 or so of those pages will be ecommerce. I would like to create meaningful, normal looking permalinks for aesthetics and SEO. I would really love to ...
1
vote
2answers
212 views

Is there a wordpress function that I can use to retrieve the current page that is loaded?

Suppose that I create a page in the admin section (under 'Pages') and I have permalinks turned on and this pages slug is 'my-new-page', then is there a WordPress function that will work outside the ...
-1
votes
1answer
322 views

htaccess strip url

I have my permalink set to %postname%/%location%/%course% I want this permalink %location%/%course%/%postname% but due to this I get 404 on every page but not on posts, I decided to put this permalink ...
1
vote
1answer
2k views

Changing permalink changes stylesheet path?

I have changed my permalink structure to /%category%/%postname%/.The links are working, but the problem is that my style.css is not working in some of the posts which are inside the category.
1
vote
1answer
341 views

Append varible to url or set session

I just wrote a little plugin that detects if the user is on a mobile browser and if so detects them away from the WordPress site to a mobile (simple) version of part of the site. As I got to ...
4
votes
2answers
310 views

My permalinks are broken! Can I use mod_rewrite to ignore a physical file?

A website I work on recently posted a file at the root of their website named "2011.html." Now, any 2011 blog posts with the permalink structure of year/month/day/post-name do not work, and instead ...
0
votes
3answers
353 views

Use Regular Expression to get tag from permalink url during wp_rewrite in generate_rewrite_rules

I'm messing with wp_rewrite and have spent the past few hours trying to figure regular expressions out again (i seem to have forgotten.) This is probably extremely easy for someone. Basically I'd ...
2
votes
2answers
1k views

permalink changed, now getting 404 for every pages

i have my website with permalink, till now everything was fine, but few days before i changed my permalink, now everything is going wrong, now each and every page i am getting 404, even my about-us ...
2
votes
4answers
2k views

Remove Custom Taxonomy Base

I am using custom taxonomies with WordPress 3.0.4 I am wondering if anyone knows how to remove the taxonomy base from the URL? I have seen plugins that do it for categories and tags, but not for ...
1
vote
1answer
3k views

Custom post type, permalinks & pagination, going wrong

i have a site (http://fashionlog.com.br) with a custom post type 'fotolog' as you can see on the right side. The posts and pagination of the blog (central column) work fine. But when it comes to the ...
0
votes
3answers
477 views

How can I create a permalink with two categories, with the order based on the parent category?

Basically, I'd like to create a category permalink like example.com/books/adventure without having to make adventure a child-category because it will apply to other categories as well. So the end ...
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 ...
1
vote
1answer
1k views

Best and Cleanest way to remove /category/ from category permalinks? [duplicate]

Possible Duplicate: Remove parent category from permalink? Basically only have the child category? We've seen plugins to do this, and a lot of people with different code modifications. We ...
2
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.).
1
vote
1answer
1k views

How can I reverse engineer a Permalink to Find the Page?

I am new to WordPress, and I need to make some quick changes. How can I find the Page that is referenced by a permalink: e.g. for www.example.com/mypermalink how can I locate the actual WP Page so I ...
2
votes
2answers
1k views

custom taxonomies on permalink

is it possible to bring custom taxonomies to permalink? currently my permalink is looking something like this /%postname%/%category% but i also want to add custom taxonomies to ...
0
votes
1answer
815 views

Remove slug from Custom Category Permalink + dual-category permalinks

I'll try to make this as clear as possible. I'm am trying to figure out a few things to clean up the permalinks on a large website project. We're using custom post types and ~200+ custom categories ...
0
votes
2answers
2k views

Query custom taxonomy by term id?

I made a custom post type and a custom taxonomy, but I have a problem. When I access the url http://www.ithemes.co.kr/?shopcat=galaxy-s, it works well. But when I access the url ...
0
votes
2answers
281 views

Tag pages do not show

problem: When I request a "tag" page e.g. /tag/whatever no tag page shows up only the frontpage. This also seems to be the case with categories what did i do I have moved this blog from single ...
1
vote
4answers
4k views

Category links suddenly started giving 404 errors

My Wordpress blog suddenly seems to have started giving me 404 errors when accessing category pages. For example, http://blog.rtwilson.com/category/tok-related/. Interestingly, this doesn't happen for ...