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
0answers
21 views

Numbers in permalinks instead of post name?

Does anyone have a clue why WordPress uses numbers as a permalink although I have changed my permalink structure to foo.com/%postname%/? eg. //foo.com/cpt/68329/ instead of //foo.com/cpt/this-is-a-...
0
votes
1answer
28 views

Media items hogging pretty permalinks

I have a WordPress installation setup but I'm having trouble with items uploaded to the media library taking up pretty permalinks. The only way to fix it that I've figured out so far is to delete the ...
0
votes
0answers
32 views

Custom Permalink for custom post type

I need a permalink of the type domain/something/%post_type%/%post_name.I have a come up with the following code.Here reviews is the custom post type.But it is resulting in a 404. add_filter('...
0
votes
0answers
107 views

Same slug for custom post type archive and custom taxonomy archive?

"Recipes" is a custom post type and "breakfast" is a term of the custom taxonomy "recipe-category". I want to achieve this: www.mysite.com/recipes/my-tasty-recipe = a single post (recipe) www....
1
vote
0answers
59 views

How to display an other custom post type in a different custom post type's archive?

Background: I need to display all posts of a custom post type called "recipes", that have a specific taxonomy "fish", right under the permalink "www.mysite.com/recipes/fish". What I have done: I ...
0
votes
0answers
41 views

post_type_link and add_rewrite_rule

I created 3 custom-post-types: 'Category', 'Main-Thing' and 'Part'. Via Plugin I connect them, while 'Main-Thing' has a 'Category' and a 'Part' belongs to a 'Main-Thing'. I do not use any taxamonies ...
0
votes
0answers
28 views

Rewrite single template permalink?

I have a single template file called single-schools.php. A school "templated" post is reached via the url http://example.com/schools/post. But the site's main language is Swedish, and therefore I want ...
2
votes
2answers
358 views

Change slug on post creation

I currently use Post name for the permalink structure. I want to add text from a field at the end of the permalink. Is there any hook for the permalink creation when a Post is published? In my case, ...
0
votes
1answer
59 views

Rewrite URL Parameter And Force 'Pretty' Permalink

I’m trying to pass a variable via a URL parameter and rewrite + force 'redirect' it. In other words, I have: /dir1/dir2/?my_var=123 and I want: /dir1/dir2/123/ Through the following code in ...
1
vote
0answers
24 views

Process all virtual sub pages on parent page

My parent page: http://example.com/id Virtual pages are: http://example.com/id/1563 http://example.com/id/john/5896 http://example.com/id/jack-miami/3054 I use shortcode in parent page that gets ...
0
votes
2answers
53 views

How to stop WordPress from removing & from URL

So I have a URL which has a tracking link applied to the end. For some reason WordPress is removing the "&" which is causing the tracking to fail. You can see the URL exmaple here: http://www....
4
votes
2answers
200 views

permalink independent on the post's name stored in the database

I'm trying to make a custom permalink structure for my posts. www.example.com / post / %post_id% / %posttitle% / In this permalink, the post's ID comes first, then the post's title after it. ...
-3
votes
1answer
189 views

Ultimate Member: How to change the permalink base for user profile page

I am using Ultimate Member plugin, currently the user profile base link is http://www.example.com/profile/user-name I want to change it to http://www.example.com/user/user-name Any idea how to ...
1
vote
2answers
30 views

How to have extra permalink for posts

My permalinks are like mydomain.com/post and have to be like that, but because I use non-English characters (which need to be in the URL and make it really long and weird) for posting in social ...
0
votes
1answer
230 views

Change permalink structure for custom post type

I have 2 custom post types: software and hardware. For SEO reasons I would like to have the permalinks of single software and hardware pages like: https://domain.com/custom-post-name/ But as ...
0
votes
2answers
59 views

Why will Pretty URLs not Work?

I have many security plugins setup. Could someone tell me what changes I need to make to my .htaccess file (while keeping as much of my current rule set as possible) to make pretty URLs work? # BEGIN ...
1
vote
2answers
70 views

Remove base slug in CPT & CT, use CT in permalink

I've come quite far, but can't manage to get this to work. I'd like to remove the base slug from my Custom Post Type review and my Custom Taxonomy brand. The final result should be a URL like this: ...
0
votes
0answers
29 views

Changing permalink structure on multisite

I want to change the permalink structure on a couple of the sites I host on my wordpress multisite install from Day and Name and Post name. In order to ensure that previous links are redirected I ...
1
vote
0answers
26 views

How to show custom taxonomy in the permalink?

I used the Portfolio Post Type Plugin to create custom tax and post type. I would like to show the custom taxonomy on the portfolio projects. portfolio/customtaxonomy/project while now is ...
1
vote
0answers
41 views

Correct permalinks and 404-error

I have a paid plugin that creates a custom type categories and posts in this categories. I want to get URLs like site_name/category_name/post_name. This plugin forms links like this: List item ...
0
votes
1answer
19 views

I have to specifiy port otherwise the website doesnt work

For some reason I have to specify fort :80 in the name of the website. Otherwise, nothing works. However, this port is then included in the permalinks and in the sitemap etc. Is there a way to get rid ...
0
votes
0answers
14 views

Unexpected template for different cat name & slug

I just shifted the website from staging to live There is category name = blog slug = blog And a page name=blog slug=blog(given by mistake) using template Blog which show posts from category ...
1
vote
0answers
82 views

Trying to use AngularJS with WordPress without any API

I understand one can do this using the JSON RESTful API from WP but I don't want to go that route since it only works with sites on Wordpress.com and not on localhost (at least that's what I was told ...
4
votes
1answer
205 views

Add a URL prefix to permalinks of one category of posts only

I have the permalink structure http://domain.com/%postname%/, which is what I want to keep for most of my posts, however there is one category of posts that I would like to move from http://domain.com/...
1
vote
0answers
15 views

What would cause a theme to add extra characters to blog post links?

I've been working for the past couple days to figure out why a theme is adding " title=" to the end of a given blog post's URL, resulting in a 404 error. I've authored test posts, same result. I'...
2
votes
2answers
224 views

How to create a permalink structure for posts in a specific category

I am building a single author blog that will include multiple categories. One main category is "Movie Reviews." The author will leave a short review every time they watch a movie - even if they've ...
0
votes
1answer
17 views

How to change dynamic link to relevant post

I currently have a theme that was created by another developer and I just need to change a few small things to get it finished. I'm a little stuck on this one point: A section of the home page pulls ...
0
votes
1answer
57 views

Change wordpress url permalink structure to show authors posts

Is there a function that change the whole wordpress permalinks structure?, I need the following pattern: domain.com/author/custom-post-type/post I've tried a few but nothing seems to work.
0
votes
0answers
18 views

Can't configuration Permalinks

I installed wordpress on Virtual Box, through environment vagrant. I search for resolution for this problem in here but all the article I found I can't resolve my situation. When I change the option "...
1
vote
1answer
60 views

Permalink Doesnt Work - URL Not Found

My friend installed WordPress in his computer (which is, the OS is MAC), then he create post and customized some things(install plugins). Then, I copy and paste his work in my localhost (which is, I ...
0
votes
1answer
51 views

post_name is not stored until post is published… where should I store my slug until it goes live then?

important try as normal contributor user, not as admin see here I actually have it reproduced. Seems like a bug to me but whatever. I want users to choose their slug. Well, as you cannot store ...
0
votes
1answer
59 views

Getting an ID from a URL, why can WP do this itself, but none of of the functions provided get it right?

I have a set of absolute URLs that have been used to refer to my site (they come from redirects in an old .htaccess file in this case). All of these URLs do resolve to some page or post on the site. ...
0
votes
1answer
54 views

Auto-generated pretty permalink not using title since 4.4 update

I have pretty permalinks enabled. Now when I save a draft and/or publish a post, half the time it just uses the post ID as the permalink instead of the title. This started happening after the 4.4 ...
0
votes
1answer
419 views

Custom rewrite rule for hierarchical custom post type

Working on a client site I've encounter my worst enemy... WP URL rewrite :(. I actually can't figure it out and after many days trying and searching, I can't make it work. What I'm trying to get is ...
1
vote
1answer
20 views

category permalinks

i am quite confused about the permalink stuff. So here is whats up... I have a page called tours as well as custom post type called mc_tours. At first i just changed page permalink to mydomain/...
0
votes
0answers
11 views

Disable the ability to edit permalinks for posts [duplicate]

I'm using WordPress 4.4.1. How can I completely disable the ability to edit permalinks for posts in the admin interface? I am using a custom permalink structure of /blog/%year%/%month%/%postname% and ...
0
votes
0answers
17 views

Error logging out of my WordPress Dashboard(Error 404)

I have my website running on localhost. When i click the logout link it says, The requested URL /final/act-login/ was not found on this server. I think it happened because i changed my permalink ...
0
votes
0answers
30 views

How can I obtain uppercase caracters instead of lowercase for the permalinks?

How can I obtain uppercase characters instead of lowercase for the permalinks? For example I want http://example.com/CAAPA20160109. I made a hook on the function sanitize_title: add_filter('...
0
votes
0answers
57 views

My Wordpress url has ?c=6d1368cfbaef at the end

I am new to WP. I am currently building a WP woocommerce website using the theme Envato Bookstore. Active plugins installed: Header and Footer LayerSlider WP PDF Product Catalog 2 (BETA7) for ...
1
vote
1answer
25 views

How get permalink for the current category or tag?

There was a problem in which it was necessary to get permalink of the category/tag viewed. I have not found standard functions, everything other authors offered was only for categories. I resoved the ...
1
vote
2answers
125 views

Permalinks: Page Not Found

When I open the newly created page in WordPress I get page not found but when I reset the permalinks to none http://localhost/?page_id=6 opens normally . Even with this permalink it works : /index....
0
votes
0answers
35 views

Hierarchical permalink for taxonomy archives

Hi I have a custom post type "book" and a taxonomy "authors". Currently taxonomy archive permalink works as: localhost/book/child-author-term and localhost/book/parent-author-term No problem if ...
1
vote
0answers
12 views

Getting 404 when Access post which name start with Digit

I am facing some strange issue with post pages/ Getting Error for URL : www.example.com/5-reasons-to-use-wordpress Working fine it I change post name like [5 to five] : www.example.com/five-...
0
votes
0answers
87 views

NGINX 301 redirect to permalink with Post ID

I have old permalink structure like: /%postname% But now I want to change it to: /%postname%-%post_id% I'm easily to do this via permalink settings, but how I can setup proper 301 redirect in ...
0
votes
2answers
29 views

Create page as a file in my theme?

Is it possible to create a single page by just adding a php file inside my theme and add header and footer to it? Yes, I know, this page will not be able to administrate through WP Admin. I have ...
0
votes
1answer
28 views

How to have permalink structure based on taxonomy terms

I have a custom post type i.e services & custom taxonomy services_type I have custom permalink structure as /%category%/%postname% term1,term2,term3 are different terms under services_type ...
0
votes
0answers
38 views

Permalink structure between 2 custom post types and a taxonomy

Ok here is the scenario. I have a custom post type called "Communities", a custom post type called "Community Posts" and a taxonomy under "Community Posts" called "Communities". The idea here is that ...
1
vote
1answer
336 views

Parent & Child Taxonomy slugs in custom post permalink

I've registered a custom post type "book" and a taxonomy "authors" as below: add_action( 'init', 'post_book_init' ); function post_book_init() { $labels = array( 'name' =&...
0
votes
1answer
61 views

How to map a URL to a specific template?

I have a URL like http://example.com/arbitrary/path that I would like to map to a specific template file. At the moment I am achieving this by enabling permalinks and creating the pages "arbitrary" ...
0
votes
0answers
137 views

Page redirect to 404 when set Permalink = “Post Name”

In My wordpress site When I set Permalink structure as Post Name , It redirects all posts to 404. With Default permalink , It works fine. Server Details : Windows Server - IIS Web.Config Code : &...