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

display URL or permalink instead of page title in dashboard

Is there a way to display the page url or permalink instead of the page title on example.com/wp-admin/edit.php?post_type=page I am doing some A/B testing and some pages have the same title, but a ...
1
vote
0answers
152 views

Disable date based archives for all categories except one

I want to remove all date base archive url permalinks (url_rewrites) from my site, excluding for only 1 category. How can i do that. For example: www.example.com/category_1/2012/ -> 404 error ...
0
votes
1answer
202 views

Subpages Permalinks Issues

my site looks like: Page-1 (page.php) ... Subpage-1 (custom-collection.php; Custom Post Type) ...... Filtering Output-Post (custom-collection-single.php) When I open the filtering output-post by ...
1
vote
1answer
390 views

Does WordPress consider a post name unique if that same post name is in multiple Post Types?

I have a situation that I thought WordPress handled, but I seem to have a misunderstanding about how it works. Posts of the same name, under different custom post types, are auto incrementing. I ...
0
votes
1answer
74 views

Create a permalink for a post's attachments

I'm trying to create a custom permalink structure. I'd like to have a custom page which displays each post's image attachments, using the following structure: www.mysite.com/hello-world/images If ...
3
votes
1answer
315 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 ...
1
vote
2answers
820 views

Hierarchy of Subcategories on Permalink (bug?)

I found out something weird today. The current permalink is set to /%category%/%postname%/ but this happens (example): I have a parent category Food and 4 subcategories Burger, Pancake, Waffles, and ...
-1
votes
1answer
314 views

Parent pages not found with pretty permalinks

I'm building a site and for some reason all the parent pages are 404ing, only sub-level pages are displaying with pretty permalinks. If I use default permalinks, everything works fine. I've tried ...
0
votes
1answer
82 views

region selection

I'm developing a website, where the visitor has to choose it's region Europe / Asia, according to this choice the menu should be different, (most pages are the same). When I would develop this in ...
3
votes
2answers
364 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 ...
0
votes
1answer
808 views

get permalink of page children in loop

I have some landing pages that show the page title, feature image and excerpt of their children. The image is linked to the child page, but I need the page title linked to the same place - and I can't ...
2
votes
1answer
99 views

How to get full content including template HTML

I'm looking to get the page content between the header and footer (as Wordpress already does) that includes the template HTML (as this is going to be an AJAX request). Is there a function that will ...
0
votes
1answer
161 views

Permalinks not working (404) for the 'item' post type

I have searched various forums and blogs, however I could not find the isuse so far, neither a way to fix it. item does not seem to be a wordpress-reserved word. My custom post type registers just ...
1
vote
0answers
36 views

Permalinks only for posts

I would like to use wordpress permalinks but only for posts. Is there any way to do that? I don't care about seo, my website is about niche subject so it already has first position in google. Also ...
1
vote
2answers
499 views

How to get the permalink of a page when loading my plugin

I'm implementing a web widget and for this reason i'd like my script to respond to the request as soon as possible, to avoid loading unneccessary thing. I've found out that calling get_permalink( ...
2
votes
1answer
235 views

Removing leading zeros from custom permalink structure

My WordPress website currently uses this custom permalink structure: %author%/%year%/%monthnum%/%day%/%postname% In this case, %monthnum% instantiates numbered dates with a leading zero -- e.g., "09" ...
0
votes
2answers
212 views

Redirecting From An Old Permalink Structure

We recently launched a new site that has a different permalink stucture than its prior one. Old site URL was like this: http://centerline.net/blog/detail/?p=3989 New like this: ...
2
votes
1answer
314 views

Change link to other post to shortlink in the editor

Curently if we use the insert link dialog to insert a link to another post, WordPress always use the permalink of that post. The problem is when we change permalink structure, that link will be ...
6
votes
1answer
1k views

Permalink with sub-sub-category and post name

Working on a new theme project and I created a custom post type called products with its own custom taxonomy. I want the URL structure to be: ...
0
votes
1answer
657 views

add_query_vars and canonical links

I have two pages, one called cities and the other called states. They use the add_query_vars function to grab the city and or state from a database. The pages load fine. For example when someone goes ...
-1
votes
1answer
30 views

Permalinks, how to show them in post

So I created page www.example.com/NEWS/ and I want all the posts from that category to show up there. It does that, but when I add a post (NEWS), the link is : www.example.com/newpost/ I want ...
1
vote
1answer
637 views

Change post permalink to external URL from custom field

I want to let my users submit links to my website something like reddit and digg. I added a meta_key 'syndication_permalink' which contains link to this post. How could I change the post permalink to ...
0
votes
1answer
74 views

old permalinks not found

Looking through Google Webmaster Tools, I have a lot of 404s for posts with permalink structure of /%year%/%month%/%day%/%postname%/ I have since changed permalinks to /%category%/%postname%.html I ...
0
votes
3answers
2k views

echo post-permalink without http and www

I have this line … <div class="permalink"><?php the_permalink(); ?></div> and the result on my page looks like this … http://mysite.com/whatever/post-or-so I guess it could ...
1
vote
1answer
2k views

Custom permalink for search and pagination

@Chip Bennet helped me out in a previous question and posted his entire pagination function. This function works perfectly fine for me but I'd like to have custom permalinks in german. /** * ...
2
votes
0answers
298 views

Post in Multiple Categories to stay in current category (permalink, next previous post link)

I guess this has been mentioned before, but after 2 days of browsing i haven't find a complete solution. Maybe someone has come across this problem before? I'm building a designer portfolio where ...
3
votes
2answers
5k views

paginate_links() don't properly work in search.php?

I'm using this in my search.php template … <div class="pagination"> <?php echo get_pagination_links(); ?> </div> And this is the function … function get_pagination_links() { ...
0
votes
1answer
455 views

custom naming of search permalink /search/

I found this snippet online … function search_url_rewrite_rule() { if ( is_search() && !empty($_GET['s'])) { wp_redirect(home_url("/search/") . urlencode(get_query_var('s'))); ...
0
votes
2answers
169 views

Broken Link in WP Site?

I've built a test site for a client using a theme purchased from Template Monster. I can't seem to find out why the link is broken on this page. and the Template Monster support has extremely poor. ...
0
votes
1answer
767 views

rewriting search-permalink with htaccess - search results are are “opened” automatically?

when typing "a" into my search field (/?s=a) I my search.php template is loaded and all results that match that letter are shown. If I add this to my .htacess … RewriteCond %{REQUEST_URI} ^/$ ...
1
vote
1answer
166 views

Semantic URL Custom Post Type and Taxonomies permalinks

I have created a custom post type with custom taxonomies. Now I need help with the permalinks. Now is like that: custom post type archive: example.com/custom-post-type/ taxonomy archive: ...
0
votes
1answer
151 views

Permalinks not working on MU network with domain mapping

I'm using a theme with custom taxonomies. I want to use corresponding archives. If I try the template out on one network it works, and on another the permalink will take me to 404. The only difference ...
2
votes
1answer
743 views

How to achieve this permalink -> category-name/custom-post-type-name/post-name

I am trying to use categories to provide the structure for my site. I will create sections on my site called England, Wales, Scotland and Ireland . These will be categories. My posts will use custom ...
5
votes
2answers
5k views

Get Permalink without domain (i.e. get relative permalink)

This is the code I am using: <?php echo str_replace( home_url(), '', get_permalink($post->ID) ); ?> What it does is output the permalink as a relative URL i.e. only the slug. For instance, ...
0
votes
1answer
542 views

Change the author posts link using custom user metadata

I am trying to use a custom value to be used in the author posts URL instead of the user_nicename which defaults to user_login in the pretty permalink structure. So far I managed to do that but now ...
0
votes
1answer
469 views

Help me fix these crazy attachment page URLs (rewrite?)

On one of my sites if a post's permalink is as follows: http://example.com/side-view-of-sheikh-zayed-grand-mosque-in-abu-dhabi-united-arab-emirates/ the attachment page for the thumbnail image ...
0
votes
1answer
388 views

Wordpress permalink from the database?

I am trying to access selected post information from my WordPress database to display on a second website which is not a WordPress site nor is it php, it is in fact an asp.net website that i want to ...
0
votes
1answer
65 views

Permalinks Works for Custompost type but not with pages Why?

I have Three Custom post Types and one Custom Taxonomy and some pages. The Custom taxonomy is register with one of the post type. The problem is When the default Permalink is enable it works for all ...
0
votes
1answer
63 views

Files placed in directory with wordpress 404

I changed my WordPress permalinks settings from the default to displaying the name of the post. When I did this, all the files that I had been storing in the directory with WordPress ...
1
vote
2answers
322 views

Default category link for a custom category is a broken link

I'm developing a Multisute plugin that is supposed to setup sites using a specific template, including setting up several static pages and menu items, as well as a "Blog" category for blog posts. The ...
0
votes
1answer
742 views

Custom url for portfolio post type and for posts [duplicate]

Possible Duplicate: How to have a custom URL structure for a custom post type? I create custom post type called "portfolio". Now I try to figure out url, for portfolio, and for standard ...
1
vote
0answers
83 views

WP_Query Attachment adds additional attachment count and need to link attachment to post url

I just wonder why WP_Query adding one more additional attachment with the defined number or posts. Also need to link attachment (thumbnail) to the post url. Here is my code <?php $query = new ...
0
votes
1answer
616 views

Custom post type permalink sends to 404.php

Hi I have created a custom post type and custom taxonomy.The custom post type page is named page-portfolio.php.I have create a loop in it in witch I am trying to link to each posts single page.For ...
0
votes
3answers
2k views

Wp PageNavi only works with default permalinks on a custom post type?

I have tried many solutions to no avail and really need some help. I have a Custom Post Type named "Portfolio" that is setup to display it's contents on a page called Portfolio.php. Wp PageNavi is ...
1
vote
2answers
144 views

rewrite rule to redirect to the most recent date permalink

I've got an archive that's displayed using a URL on the form www.mysite.ex/mycpt and I need to make a rewrite rule for that URL which redirects to a permalink with the latest date archive, which is on ...
0
votes
2answers
2k views

How to handle paging/pagination with a custom permalink?

I hope I can explain this properly: I'm working on a project involving multiple post types and custom permalinks. I have a post type for TV/movie series/franchise and a separate post type for ...
1
vote
3answers
4k views

How can I Rewrite a 'page' URL based on query string parameters?

I have the following page which contains a single post and a number of comments: http://mysite.com/tips When a user posts a comment, I add meta-data to it so I can filter comments by using these ...
2
votes
2answers
749 views

Mass Permalink Changer

I recently converted a site from Moveable Type to WordPress and noticed that the permalinks for each post are short, cut off and have underscores in them. What I am looking to do is if there is a ...
1
vote
1answer
377 views

Moving local wordpress page to a real server subdomain broke my permalinks?

I developed a site locally with /%postname%/ permalink structure. I did some sample posts locally and wanted to move this entire local setup to a temporary subdomain like http://review.clientsite.com. ...
3
votes
1answer
1k 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 ...