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
36 views
Overwrite URL on blog posts
I would like to overwrite my URL on single blog posts.
At the moment my posts are displaying as www.mydomain.co.uk/post-title, however I would like them to be as
www.mydomain.co.uk/blog/post-title ...
2
votes
2answers
33 views
custom post type default permalink
Is it possible to use the permalink structure defined in the Wordpress settings panel for custom post types? And if so, how do I do that?
I currently have:
function add_posts_two() {
$labels = ...
0
votes
0answers
52 views
How to add a custom permalink to posts that have one specific tag or category?
sorry if the title doesn't explain well what I want... I'll write an example. I have set one Wordpress site with this permalink settings:
/%postname%/
That's what I need for mostly of the posts, but ...
1
vote
1answer
69 views
Add a css class to a taxonomy permalink
I need to add a css class to every <a> element retrieved by the_terms() (or similar function) in order to open the taxonomy permalink in a fancybox modal window.
I've been searching this whole ...
0
votes
1answer
55 views
Permalinks of New Pages and their Parents
I am running into a new issue where when I attempt to create a new page, the permalink is not being auto generated.
For instance
On the 'Add New Page' page, I select 'Our Club' as the parent (which ...
0
votes
1answer
32 views
Use .htaccess to redirect homepage to its permalink
How can I get WordPress to preserve my permalink that I have set for the homepage?
I would like the homepage's URL to be www.example.com/homepage-title, not www.example.com. Its permalink is already ...
-1
votes
1answer
56 views
How to add a post without assigning to a category?
Can any one please explain how to add a post in WordPress without assigning it to any category.
Actually I want to display some news or some quick information. So, it does not come to any category ...
0
votes
1answer
34 views
Leverage permalinks with AJAX
I'm trying to implement some AJAX to my theme, but there are a few things I cannot get my head (or Google) around.
I have a custom post type named "Faculty" and a page displaying the featured image ...
0
votes
1answer
48 views
Custom post type - permalink
Is it possible to change the permalink of a custom posttype?
I have a custom post type called "events", I have made a page called archive-event.php and this is reached by /event.php
is it possible ...
0
votes
1answer
44 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
55 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
89 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
42 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
126 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
290 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
112 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
125 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
48 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
151 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
157 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
55 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
41 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
168 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
213 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
54 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
107 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
104 views
.htaccess & permalink causing 404 errors on old pretty links
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
103 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
109 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
58 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
117 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
31 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
43 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
142 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
44 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
57 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
57 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
62 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
446 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
267 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
51 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
370 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
44 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
23 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
31 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
193 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
48 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
217 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
39 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
115 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 ...


