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
0answers
399 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 ...
1
vote
0answers
36 views

Custom $_GET vars in wordpress entry with permalink

Hello I have something like this in the url: http://myblog.com/category/subcategory/postname/?var=true Using it on functions.php: function add_query_vars($vars) { $vars[] = "var"; return ...
1
vote
0answers
65 views

Advanced author permalinks

I'm trying to build permalink structure for author archives that would allow me to display different custom post types posts in 'subpages/subarchives' of author archive. So the idea is to change ...
1
vote
0answers
60 views

404 error using Meta for Permalink rewrite

I'm trying to rewrite my permalinks using meta data from my post. The permalink rewrite works fine but I'm getting the 404 error when I try to view the post. Could someone offer a clue as to why this ...
1
vote
0answers
112 views

WordPress Not Using Template Files After Permalink Update

I have a really weird issue that just occurred on a client site. I updated the permalink structure from /%category%/%postname%/ to /%postname%/ and suddenly my pages don't respect templates and are ...
1
vote
0answers
101 views

Older entries link within category page

I am building a custom wp theme and I have a category called 'blog'. On here I have all of my posts displaying from the category 'blog' and a link at the bottom that says older entries. When i click ...
1
vote
0answers
72 views

Wordpress permalink prefix

I have a small ecommerce site in Wordpress and I am having some difficulties in getting the right permalink structure. Basically, for basic pages it should look like : domainname.com/page_title. ...
1
vote
0answers
198 views

How to create a custom url for a category

I took over a site that displays the category in the URL three different ways. For some categories it shows "?category_name=blah". (Not ideal, but I can live with it) For newly created categories ...
1
vote
0answers
115 views

One blog inside another

I have a question about having two blogs at the same host simultaneously. Here is my scenario: The first blog is hosted in the root directory http://mathosproject.com/, and the second is hosted in a ...
1
vote
0answers
131 views

permalinks with get variables

I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows add_filter( 'query_vars','driver_vars' ); function driver_vars( $vars ) { ...
1
vote
0answers
180 views

wordpress multisite permalink structure: mostly subdomains but not all

I've got a Wordpress multi-site install with three (related) sites, and it works great. Previously, each site had its own totally unique domain name which I was managing with the WordPress MU Domain ...
1
vote
0answers
151 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 ...
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
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 ...
1
vote
0answers
433 views

How to display only the parent category in the permalink

How it is possible to display only the parent category of the post. It contains two sub categories and I want to eliminate it. Example: myblog.com/parent_category/post_name This is only what I want. ...
1
vote
0answers
90 views

Slugs Disappeared Leaving 404s - Quick way to repopulate?

I've got roughly 3000 pages in WordPress w/ permalinks on. I recently cleaned up the database which appears to have deleted a fair amount of slugs for many of the pages. Obviously, with no slug, ...
1
vote
0answers
12 views

File access different with permalinks on and off

I have a page with a link to a file in a password protected folder. When I have permalinks turned off, clicking on the link starts the file download. When I have permalinks turned on, clicking on ...
1
vote
0answers
39 views

Path to Pages Resolves to Archive instead of Actual Content

When I upgraded to 3.4.1, the root level pages (ones that I had before, and any page I have afterwards) do not resolve to the actual page. No matter the name (so i don't think there is a slug issue), ...
1
vote
0answers
1k views

How to change “attachment_id” in attachment permarlink?

I changed attachment permalink by add_filter('attachment_link','my_media_url'); from http://domain.com/?attachment_id=123 to: http://domain.com/?media=123 The change is successful. But, with the ...
0
votes
0answers
10 views

Using Tag name in link to post

I have 2 Tags one is named 'The Guardian' and the other is named 'New York Times' assigned to some posts. Right now my link to those posts on my home and category page says 'Read Full Article' and ...
0
votes
0answers
20 views

posts not show after changing permalink

I changed My Permalink in setting area in the dashboard menu After changing the permalink, the setting worked and changed the links, but posts content are not showing up and the links go to not found ...
0
votes
0answers
7 views

Link Post Titles to External URLS

I have a site full of 1000s of newsfeeds. When user clicks on the title, it takes the user to the article page, then the user must click 'read full article' to go to the external url. Is it possible ...
0
votes
0answers
17 views

Adding %subcategory% to permalink structure: either subcategory or single-post outputs 404

I've had this problem before but never actually found a solution. Let's say i have a portfolio category, a drawings subcategory and a my-new-drawing single post, which belongs to portfolio/drawings/. ...
0
votes
0answers
10 views

redirect post_id urls to full post url

I am having a site where I am using permalink like site.com/%post_id%/%postname%/. If a person visit site.com/%post_id%/ it does not redirect to full post url.
0
votes
0answers
12 views

Custom Permalink with Custom user meta mapped to posts published by user

I want to map a custom user Meta to the permalink in the form of http://localhost/%user_meta%/posts. The user_metais a custom user meta whose id=brand. The URL http://localhost/%brand%/posts should ...
0
votes
0answers
10 views

/page/2/ not showing

I am having a weird issue where when clicking on the pagination links the page just refreshes. The links are pointing to the proper pages(/page/2/) but when clicked, they do not show in the url. This ...
0
votes
0answers
15 views

Added incorrect rewrite rule now getting an error

I have made a mistake using add_rewrite_rule() function and now my site is throwing a 500 "internal server error" normally I would just edit/fix the issue in my .htaccess but since this is not how ...
0
votes
0answers
30 views

Remove one part from the Permalink automatically

I have a bit of a messed up situation. The client wanted to have static landing pages like website.com/state/city but also create custom post types like restaurant. So I setup regular pages with the ...
0
votes
0answers
22 views

Wordpress Permalink Custom Post type

For the Permalink on wordpress setting I have /%category%/%postname%/ This will show Post in different category like /blog/post_title_1/ or /event/post_title_1/ but now I have some Custom Post ...
0
votes
0answers
23 views

Pagination returning 404 on Page 2 (/page/2) and up

The pagination on my website is not working. I can see the following rule in place Rule (.?.+?)/page/?([0-9]{1,})/?$ Rewrite index.php?pagename=$matches[1]&paged=$matches[2] But for some ...
0
votes
0answers
13 views

Add Archive suffix on permalink structure

My permalink structure is /%category%/%postname%/ Where the posts can have one category and one subcategory, having its permalink: /category/subcategory/postname The homepage of all the ...
0
votes
0answers
20 views

Weird slug in archives permalink

All my wordpress installs (and some others, as I see) have the archive based index in the following format http://example.com/date/2015/06/02. But most current installs out there display it as just ...
0
votes
0answers
16 views

Custom post type getting duplicate permalink

I'm trying to make a new custom post type as "Page" with non-based in URL like... function theme_setup(){ register_post_type('Hello',array( 'labels' => array( 'name' => ...
0
votes
0answers
12 views

How to keep the url unchanged for latest post of the same topic?

I want to create a site of software application directory. So, basically each post is a software detail page. For example Chrome will have a post on my site with url ...
0
votes
0answers
23 views

Change wordpress blog post permalink structure

My blog post URL consits of Website Name % Year % Month % Post Name. If i update any post, it does take the new Date as the post URL. Is there a way so that i can change the Permalink structure ...
0
votes
0answers
46 views

Some permalinks are not working and show 404

I'm using WP 4.2.2 on NginX, with a multisite (subdomain) installation, and I have a strange problem. My site has about 18 posts and all post permalinks worked quite fine until this morning, when two ...
0
votes
0answers
13 views

using two different urls for same post

I want to use two different permalinks for same post for some reasons the permalink structure i need are http://www.example.com/category-name/post-name http://www.example.com/post-name please help ...
0
votes
0answers
27 views

Missing post title from permalink

All my sites' post don't have post name/title in their url. I imported thousands of posts into my site in "draft" status. To publish them I used SQL command in phpmyadmin to change status to publish. ...
0
votes
0answers
31 views

Adding custom field to permalink structure

I have a wordpress site that uses a custom post type 'external-projects'. Within that custom post type there is a custom field 'director'. What I am trying to do is rewrite the permalinks to include ...
0
votes
0answers
54 views

Custom Post Type (child) and Permalinks Rewrite Rules

I know this question has been asked a lot of times. However I couldn't managed to solve the issue I have for a few days now so if you could help me it would mean a lot to me. I have created custom ...
0
votes
0answers
22 views

Wordpres 4.2.1 Permalink issue russian

i'm helping a friend to solve a problem on a website. That website is multilanguage (italian - english - russian), with default permalink all website works correctly, with pretty permalinks ...
0
votes
0answers
45 views

CPT's with landing page instead of archive - Url Rewrite?

I am building a directory website which has various Custom post Types like Tours, Food, etc. The client would like to see landing Pages for each of the categories which can be edited manually (think ...
0
votes
0answers
32 views

Permalink with passed query string parameters not working

Within our site, using a custom theme we have a specific page that contains a query string to acquire an "abstract" using a talkid and programcode. The issue we are experiencing is that Google Search ...
0
votes
0answers
29 views

Change permalink , keeping old structure with date

Currently on our website we have the /date/postname permalink structure with quite a number of posts. For SEO purposes we want to change it to /postname permalink structure but we want to keep the ...
0
votes
0answers
29 views

Possible to use /%monthname%/ in my permalink structure without using a plugin?

I need to use the following permalink structure so that when I launch the website, the urls will be the same as they were before (moving from a non-wordpress site): ...
0
votes
0answers
31 views

whats is the perfect configuration to .htaccess for permalinks?

I have wordpress site with the normal url, when i try change this to permalinks, wordpress says 404 not found in the other pages that not is the home. after of search in the codex, i found that the ...
0
votes
0answers
25 views

how to redirect old blog post urls when permalinks are changed

When you have a permalink structure set to www.example.com/post-name And you want it to change to www.example.com/blog/post-name Is there any way to have the old format redirect to the new (ie. ...
0
votes
0answers
52 views

Custom post type with parent page? Possible?

I'm having trouble getting my url structure the way I want. I have a page with two sections: private company Let's take private as an example. In this area, I wan't to have a url structure like ...
0
votes
0answers
44 views

custom permalinks do not work: page not found

I am developing my website in local with wamp server and wordpress i am using a w7 OS and running wamp server with apache and my sql. I have a problem with permalinks. So far, i developed the pages ...
0
votes
0answers
33 views

Get full control over custom post type url

The situation I have a custom post type, lets call it 'CP', which has two parent categories named 'companies' and 'category'. Posts of type CP can only have one company and multiple categories. So, ...