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
2answers
436 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
281 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
278 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
271 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
228 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
2k 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
506 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
164 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
151 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
70 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
349 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
328 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
485 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
146 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
320 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
304 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
551 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
364 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
112 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
739 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
207 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
132 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
166 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
113 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
225 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
206 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 ...
0
votes
2answers
531 views

Remove Parents From Permalink of Hierarchical Taxonomy

I have a custom hierarchical taxonomy called "places" set up with categories like so: Services > Financial Services > Financial Advisors. The permalink for this category listing page is currently ...
0
votes
1answer
218 views

Bizarre Permalinks Issue: 404 Errors Everywhere

First and foremost, this is definitely a duplicate of the age old question of "my Wordpress permalinks are generating 404 errors", but in a way it's different because no solutions I've tried have ...
0
votes
1answer
161 views

Need equivalent of single_term_slug

I am building a taxonomy archive page and I am trying to create a linked instance of the current term outside the loop. So, let's say my taxonomy and current term are: Taxonomy: Animals Term: ...
0
votes
1answer
30 views

Assigning proper permalink to blog that is part of a website

My blog is a part of a custom website (all done in wordpress). I would like the blog page to be on mywebsite/blog I've set wordpress so that the root points to a static page and that the posts are ...
0
votes
1answer
295 views

Insert PHP code in Text

I have this code for insert a permalink but doesn't work, return exactly code: $text = '<form><td>Permalink to: <?php the_title();?></td><textarea cols="85" rows="2" ...
0
votes
2answers
113 views

Wordpress upgrade from 2.7 to 3.3 Permalink problem

I have upgraded my wordpress from 2.7 to 3.3. Now if I try to change my Permalink /%category%/%postname%/ my home page is loading. However, all my pages are getting 404 page. I dont know how to ...
0
votes
3answers
1k views

Remove the Edit button in posts for permalinks on certain user roles? WP 3.3

I am using Wordpress 3.3.2 with the following plugin: - http://wordpress.org/extend/plugins/advanced-access-manager/ The plugin works perfectly but the author said there is currently no way to ...
0
votes
3answers
376 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?
0
votes
1answer
441 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
3answers
559 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
84 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: ...
0
votes
1answer
162 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 ...
0
votes
1answer
316 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
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" ...
0
votes
1answer
595 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 ...
0
votes
1answer
48 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( ...