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.
0
votes
1answer
46 views
Retrieve default permalink while using seo friendly URLs in WordPress
I have a client site that uses seo friendly URL's (/postname/)
Up until yesterday they were using the default permalink structure of ?p=1234
They've had it set like that for years and have had their ...
1
vote
0answers
62 views
Incorrect 404 for pages when using permalink, a static front page, and posts page
I am having an issue with my permalink setup, which I think has to do with my setup, rewrite rules, and more.
Under Settings->Reading, we have a static Front Page set as well as a Posts page (Home ...
0
votes
1answer
104 views
Don't change Custom Post Type slug to unique value
I have a situation where it is needed that if I create two CPT pages wich both have the same name and the same slug.
For example, if I add two CPT pages, wich both called "Post Name":
The first slug ...
0
votes
1answer
44 views
Only default permalink is working
I'm getting trouble with another permalink setting then the default permalink setting.
I want to use the post name of a page/article but when I activate "the post name", all of my pages, except the ...
0
votes
3answers
141 views
Custom rewrite rules for /pastissues/%category%-%postname%.html
I have been researching this for over a week now. I've tried a few tutorials on custom rewrite rules and custom post types, but I'm still not sure which direction I should go in for making this ...
2
votes
3answers
462 views
Get the current page URL (including pagination)
Is there a WP function to automatically get the correct URL of the current page?
Meaning if I just opened a single post, the function returns the same as get_permalink(), but if I'm on a paginated ...
6
votes
1answer
113 views
Removing unnecessary numbers appended to postname in permalinks
I have, with help from Milo managed to tweak the permalinks for my custom post type so that they include the year and month of the event. e.g.
mysite.com/events/2013/january/fishing-trip
...
0
votes
1answer
162 views
placing the media uploads in a subdirectory
Hi I want all my uploads to be uploaded to a subdomain on my site instead of 'wp-content/uploads'
I created a subdomain cdn.mysite.com and i want all the uploads to go there instead.
I want my ...
2
votes
0answers
49 views
Page Attachment Permalink Structure based on Menu Order?
I've been on a quest for the past couple of days reading up on Rewrite in WordPress but still can't seem to figure out how to accomplish this.
When using pretty links in WordPress, media attached to ...
2
votes
1answer
152 views
New categories are now going to 404s
I have a WPMU site with hundreds of blogs on it. We are on 3.4.2 and this is the first time I'm seeing this issue within a few of my sites.
Basically, what happens is that I'll create a new category ...
3
votes
2answers
167 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' ...
0
votes
1answer
58 views
Custom permalink to make a page respond properly
I've built a complete MVC framework that integrates perfectly well into Wordpress. This framework also provides a simple to intermediate implementation of a ReST interface (the real one with ...
2
votes
1answer
44 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 ...
1
vote
2answers
183 views
Custom Permalink Plugin and Current Page/Ancestor in Menus
I'm looking for a custom permalink plugin that is able to interact with menu classes.
For instance, I have a menu that includes the parent website.com/shop as one of its list items. If a page, say ...
2
votes
1answer
296 views
Redirect old permalinks to new permalinks
I changed the permalink structure from /%category%/%postname%/ to /%year%/%monthnum%/%postname%//
How can I redirect all old posts to the new ones (eg: via htaccess)?
1
vote
1answer
58 views
Permalink structure by Post Meta value
I have the following issue:
Two Custom Post Types, lets call them cpt1 and cpt2.
In cpt2, I have a custom meta box in which you can select a post from cpt1, its post ID is stored in a meta value ...
2
votes
1answer
112 views
add new permalink structure from dynamic page
I created page "play" url: http://localhost/myweb/play and inside of page "play" I include PHP code to make the new search from outside Wordpress.
And all worked, if I search from my page "play" the ...
0
votes
0answers
108 views
.htaccess & permalink causing 404 errors on old pretty links [closed]
Ok, so I know similar issues have been posted before but I have yet to find a solution.
I was foolishly messing around with plugins and my .htaccess last night and got myself into this pickle. ...
1
vote
0answers
108 views
Custom Post Type - Duplicate Page Slugs
I have 2 custom post type registered in my functions file, sectors and projects. There are pages with the same name and hence URL in both post type. My problem is that WordPress wont allow the same ...
0
votes
1answer
114 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 ...
2
votes
1answer
61 views
Some posts returning 404 instead of displaying post
I'm having a problem with my Wordpress install. All of a sudden some of my posts return 404 errors when I try to go to their permalink. My post names are all numbers and this started happening when my ...
0
votes
1answer
175 views
Styles are not loading when changing permalink to %postname%?
Fist I was using default option of permalink and everything was fine (speed is ok, my own created theme is working fine) but now I change default structure to post name structure of permalink now I am ...
0
votes
2answers
33 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
44 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
160 views
Wordpress on Ubuntu 12.10: permalinks problem
I am running a backup of my website on Ubuntu 12.10 (apache+mysql). I can see properly admin and home page, but permalinks are not working (so urls like this are failing: localhost/page/.../).
What ...
0
votes
1answer
48 views
Appending a variable to RSS link url
I have a rss feed for my demo blog here.
http://clickquickcash.com/feed/?user=john
It passes the 'user' variable 'john' into the feed posts.
I need to add the 'user' variable to the link.
Note - I ...
2
votes
0answers
67 views
How to specify URLS for custom posts & taxonomies
I've read a few posts about this, but can't find a clear answer :(
I have a custom post type called {ondemand}
Within the custom post, I have three taxonomies {speakers} and {categories} and ...
3
votes
2answers
70 views
How to custom change author base without $this->front?
I have a sample code:
function change_author_permalinks() {
global $wp_rewrite;
$wp_rewrite->author_base = 'u';
$wp_rewrite->author_structure = "/" . $wp_rewrite->author_base . ...
0
votes
1answer
67 views
Performance and styles not working fine after changing permalink structure
Fist I was using default option of permalink and everything was fine (speed is ok, my own created theme is working fine) but now I change default structure to post name structure of permalink now I am ...
0
votes
2answers
627 views
How to remove the index.php in the url?
I have installed wordpress in a subdirectory (blog). In the root directory I have installed Magento. Now the file directory is as following:
app
downloader
includes
media
....
blog/wp-admin
My ...
0
votes
1answer
366 views
Can a custom post type have a Parent Page?
I've seen a lot of posts out there in the Webiverse about assigning a page as a parent of a custom post type. After four hours I can't find a solution and need some help. I've create an "About" page ...
0
votes
1answer
57 views
Routing 'fake' sub sub posts
I currently have these custom permalink rules:
/%category%/%postname%/
I'd like /%category%/%postname%/%sometext% to display the same as /%category%/%postname%/ - from there, I will either use PHP ...
0
votes
2answers
410 views
How to Create Template File for Parent Page of Custom Post Type
After creating a custom post type I made a custom template file for the post (single-customposttypename.php). So the URL structure would be: example.com/page/postname, and postname would be the post ...
0
votes
2answers
47 views
How to get the permanent link in a plugin?
I'm writing a plugin to add some extra contents that contain the permanent link to the (single) post.
function abcd_add_contents($content) {
$extra_content = the_permalink();
if ...
0
votes
1answer
24 views
How can you preserve URLs when moving posts to a custom post type?
I am working on a site where they want to break up the content into custom post types (right now everything is broken up by post categories) but they want to be able to save their URLs to preserve ...
0
votes
0answers
32 views
Performance and styles problem after changing permalink structure [duplicate]
Possible Duplicate:
Performance and styles not working fine after changing permalink structure
Fist I was using default option of permalink and everything was fine (speed is ok, my own ...
-1
votes
2answers
249 views
.htaccess Permalink Redirect subfolder/* to root/* [closed]
I need this URL:
http://mysite.com/products/amazingproduct1/
To redirect to this URL:
http://mysite.com/amazingproduct1/
This is a global issue for all new /products posted, and I think it can be ...
0
votes
1answer
49 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
251 views
WP 3.5 - How to remove permalink from images
In previous versions of WP, we were able to remove permalink from images while we were inserting images into post. But, now there is no obvious option to do so. How can it be achieved? Thanks.
0
votes
1answer
43 views
How to show the homepage on a different url, like site.com/blog instead of site.com?
I have Wordpress installed in my root directory, so if you go to site.com you see the list of recent posts.
What I want to do is to have the homepage show a static page instead showing recent news ...
0
votes
1answer
138 views
Default permalink structure causing Notice: Undefined property: WP_Query::$post
I use the wp for membership site. I use pages for the user log in, manage post, edit profile and etc.
When I apply the default permalink structure, I found that the debug mode show this notice on ...
0
votes
1answer
189 views
Pagination breaks on child-categories, works fine on parent-category
I have two parent categories, and pagination is working fine on them - the paged url's show as:
/parent-category-1/page/2/ ... etc
/parent-page/parent-category-2/page/2/ ... etc
However, when I go ...
0
votes
2answers
109 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
134 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
31 views
My wordpress site must be being affected by outside sources [duplicate]
Possible Duplicate:
Error 310 too many redirects after switching domains
Some of my pages are resulting in 310 errors. We recently switched domains from kgstiles.com to ...
1
vote
1answer
118 views
Convert hyphen to underscore in permalinks
I would like to use underscore in my permalinks instead of hyphen.
Current permalink:
www.example.com/2013/01/hello-this-is-a-test-post/
Desired permalink
...
0
votes
1answer
65 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
0answers
14 views
Add “.html” Suffix to Category URL Structure [duplicate]
Possible Duplicate:
Add .html (dot HTML) extension to custom post types
I have a site wich the post url structure is "%category%/%postname%.html"
I would like to follow the strutcture and ...
0
votes
0answers
11 views
Rename /page/2/ to /seite/2/ [duplicate]
Possible Duplicate:
Change the “page” slug in pagination
This was already asked here:
rename 'page' URL fragment in pretty permalinks
But the solution produces a 404.
I would ...
8
votes
5answers
651 views
Getting hierarchical custom post type permalinks to work just like pages
I've dug through every question here on custom post type permalinks, but most seem to be either problems with custom taxonomy rewrites, or the obvious missing of flush_rewrite_rules(). But in my case, ...


