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

Wordpress permalink change causes all incoming links to give 404 errors

My site URL is http://funandfoodcafe.com I changed my Permalink structure to Postname today, and I am using WP 3.5. All the links on the site redirect to the new structure correctly, but all incoming ...
0
votes
2answers
55 views

Long permalinks get split with multidots and get broken

I have pages which are nested in 3 levels, i.e: www.example.com/cinema-in-our-country/our-festivals/first-festival-with-very-long-name As you can see the permalink gets quite long. If I go to the ...
0
votes
1answer
52 views

Permalink Trouble with custom post types

When using custom post types I reach a dilemma where I have to use flush_rewrite_rules(); when using a permalink structure, otherwise it goes to a 404. After using it It works on one CPT but if you ...
0
votes
1answer
72 views

Making posts permalinks consistent numbers

I'm developing a new website, but I can't quite figure out a solution to my permalinks problem. My main website is http://w3spine.com, I'm sending posts to my second WP installation at ...
0
votes
2answers
160 views

Strip hashtag off permalink with php

I use the_permalink() to pass the current page to the facebook like button. But when one goes directly to a comment link with a hashtag, such as example.com/post#comment1, it's considered a separate ...
0
votes
1answer
338 views

Change permalink structure for pagination only

I am using following functions to display pagination on archive pages of my site. <?php previous_posts_link('< Previous', $loop->max_num_pages); ?> <?php next_posts_link('More >', ...
0
votes
1answer
125 views

How to get post object on blog template

I have a big issue on catching attributes from global $post_object in a page template file. I have a Template Name: Blog Page which is template-blog.php On that page I use the current page permalink ...
0
votes
1answer
208 views

Add unique ID number to end of permalink

I'm building a membership based website that will use custom post types to store data. I came across a problem which is if two users happen to create a post using the same exact name, WordPress would ...
0
votes
1answer
574 views

Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?

Is wordpress capable of having hierarchical taxonomy and hierarchical custom post types in one permalink ? I would like to do the following: tax-1/tax-2/cpt-1/cpt-1-post/cpt-2/cpt-2-post/ in other ...
0
votes
1answer
34 views

Is the part “category” fixed to an URL to an archive or post?

I'm asked to set up a WordPress-based site, which is not intended to run as blog mainly but anyway we want to use the common article area sometimes. Now my client resents that the URL to an article or ...
0
votes
1answer
85 views

404 error on all pages but custom post types are working OK

I am getting 404 errors on all pages however I have multiple custom post types et up and these are working correctly. I have tried all the usual fixes like htaccess file, flushing the rewrite links ...
0
votes
1answer
593 views

404 permalink errors on Pages only

I am having a strange issue with permalinks while using the /%postname%/ structure. I can access my custom post types using the pretty permalink localhost/cpu/<post-type>/<post-title>/ ...
0
votes
1answer
168 views

Page header menu links change

I am trying to find out where the header menu links on my WP is located so that i can change the URL of the page. the link is: http://blahblah.com/?page_id=11 and i need to change it to: ...
0
votes
2answers
408 views

Make get_permalink() work outside the Loop using filters

I am developing a plugin which displays a wordpress post in a lightbox outside the loop. I noticed that some plugin which modify the contents of the post (like Facebook Like button plugin) use the ...
0
votes
1answer
110 views

Multiple Tags Issue in Permalinks

I have configured %tag% for permalinks in wordpress Here is How to use first tag in permalinks. But while posting multiple tags in a post i am facing a kind of problem.Suppose i have wrote three tags ...
0
votes
1answer
164 views

Pagination does not work on Custom Post Type archive while trying to get load more function working

Im trying to get a load more function to work with a custom post type on an archive page. I use this plugin and customized it a bit so it works with a custom post type. ...
0
votes
2answers
454 views

Include Post Format in permalink

I'm running the latest version of WordPress with pretty permalinks enabled. I'm looking for a way to include the Post Format type (eg: link, status, quote) in the post's permalink. When the post has ...
0
votes
2answers
282 views

prefix to post permalinks without affecting category permas

I'm trying to make my links like this: site.com/article-sample-post as "article" is a fixed prefix and "sample-post" is the post slug.. but that prefix affect the category link structure making it ...
0
votes
1answer
283 views

Problems with permalinks (.htaccess not working)

I would like to use permalinks but they are not working. Whenever I use permanlinks like /%postname*/ are something else that differs from the default ... I get an 404-error. Calling php_info I can ...
0
votes
1answer
285 views

How to get the month argument from permalink in wordpress?

I am working on a custom Wordpress template for the archive. I have the archive set up by category but now I want to organize by category and month but I can't figure out how to access the month ...
0
votes
1answer
240 views

encoded search terms with %20

<form class="search-form" action="<?php echo home_url( '/suche/' ); ?>" method="get"> <input type="text" name="s" class="s" value="<?php the_search_query(); ?>" /> this ...
0
votes
4answers
3k views

Permalink Issues by Installing WordPress in Subdirectory / Subfolder

I installed WP in subfolder /cms and it runs live without subfolder. When I use /%postname%/ as permalink I get 404 error on my site. My Server supported mod_rewrite. My Code wp-config.php ...
0
votes
1answer
534 views

using wp_redirect to redirect to a permalink

I'm using wp_redirect to change the URL of my 404 page: function show_404($message = 'page not found'){ wp_redirect(home_url() . '/error/404?m=' . urlencode($message)); exit(); } I have ...
0
votes
1answer
171 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 ...
0
votes
1answer
153 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 ...
0
votes
1answer
71 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
1k 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 ...
0
votes
1answer
362 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
341 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
507 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
2answers
1k 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 ...
0
votes
1answer
153 views

Custom category URL not displaying posts

I have a custom post type with custom categories using the following: add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'products', array( ...
0
votes
2answers
332 views

permalink error when modifying sanitize_title_with_dashes function

By default, wordpress remove accents and weird characters to generate post_name in wp_posts table. This post_name is used when we change the permalink structure to /%postname%/ or some similar ...
0
votes
1answer
309 views

Safe to throw 404 error in request filter?

I am working on a plug-in for my personal site and I would like it have a certain permalink structure (/projects/project-type/sub-type/project). To achieve this, I am using the request filter. Inside ...
0
votes
1answer
562 views

Multiple permalinks for a single post with multiple taxonomies

I created 1 custom post type (projects) with 2 taxonomies (clients / fields) to filter the results (like categories). At the end, it should be like this where project_name is the same custom post ...
0
votes
1answer
99 views

Changing permalink structure breaks link to .php file which generates files dynamically

I'm creating a (calendar) plugin where one feature is the ability to download an event as a .ics-file. To do that I have a file called ics.php in which I generate an .ics-file based on the id of the ...
0
votes
1answer
385 views

array_pop() expects array, boolean given for $event_type_term ->slug

I have the following function I wrote … add_filter('post_type_link', 'events_permalink_structure', 10, 4); function events_permalink_structure($post_link, $post, $leavename, $sample) { if ( ...
0
votes
1answer
113 views

Unable to rename permalink

I have a custom content type, 'Events'. I'm unable to rename the slug of one event from '2010-2' to '2010'. There are 6 or 7 other entries of the same content type and they're all fine. Here's what ...
0
votes
1answer
146 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
777 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 ...
0
votes
1answer
2k 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 ...
0
votes
2answers
106 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 ...
0
votes
2answers
209 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 ...
0
votes
1answer
136 views

Is there a way to show attachment IDs on the attachment info screen?

I want to use attachment IDs for shortcodes, but if the image is published with a permalink, it's harder to find the ID. I've found some functions online that can turn the attachment url into its ID, ...
0
votes
2answers
72 views

Keep permalinks in Wordpress

Is there any way to set my permalinks to keep their exact link. If I have a post like this one http://blog.rigo.ro/?p=11, then I would like that every time I edit the post to keep this link. I have ...
0
votes
1answer
169 views

the_permalink() not working

I have WordPress installed in a subfolder called news, but links to comments, posts, categories, etc all link to domain.com/?p=99 instead of domain.com/news/?p=99. The only link that points to the ...
0
votes
1answer
115 views

Pretty permalinks and Facebook comments

I have pretty permalinks enabled like this: http://domain.com/category/post_name I also use facebook comments widget for the comments, Currently the href attribute is set to the pretty permalink by ...
0
votes
1answer
226 views

post preview/thumbnails not displaying correctly- linking to “home” instead of post?

Live site In the lower portion of the landing page, I'd like there to be three blog post previews- just the headline and thumbnail for the three most recent posts. I'm using the following code: ...
0
votes
1answer
81 views

Custom Post Type permalink doesn't match post permalink

I created a Custom Post Type for Games, but when I add it, the permalink is showing as http://site.com?my_games=test-game where my_games is the custom post type name and test-game is the post name. ...
0
votes
1answer
207 views

Wordpress permanent links not working (the weird way)

I have just moved my dev wordpress to its new home, and something very weird happened: Some, just some, of the links are not working (for example, the domain.com/contact page is not working while ...