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
13 views

Any way to redirect from old domain to new?

Say we had a WP site at aaa.com, but we changed the name and domain to bbb.com. We set up a 'redirect' from aaa.com to bbb.com (on Dreamhost) but it does NOT redirect 'pretty' links like ...
0
votes
1answer
14 views

Post & Category Archives URL structure

I've looked through many similar questions, but haven't yet been able to find a solution to my particular problem. It seems fairly straight-forward, but I can't seem to find the correct combination of ...
3
votes
1answer
30 views

Filtering comment permalinks when a condition is met

I can't figure out how to filter the comment permalink on certain WP page that I use like this: if(condition is met) { (filter the comment url) } ...so that all the comment permalinks inside the ...
0
votes
0answers
10 views

How to Redirect /post-name.html to /categoy-name/post-name.html unbreak seo?

I wanna to redirect old permalinks post type to new permalinks automatically unbreak seo. My old permalinks: domain.com/post-name.html New permalinks: domain.com/category-name/post-name.html by in ...
0
votes
2answers
22 views

How to put articles under a /blog directory?

I have a homepage, work (as parent pages) and several pages (as child), but when it comes to articles, I can't choose the relation between them and the page Blog. Resuming, I can choose the hierarchy ...
0
votes
0answers
17 views

domain.com?p=POSTID permalinks not working with custom post types

I use the default Wordpress permalinks as shortlinks on my site, and just noticed that they are not working for custom post type links. Instead they give a 404 error. These work for for the 'post' ...
1
vote
1answer
16 views

remove sub-category of Custom Post Type from permalink structure

I've got my permalinks for a Custom Post Type set to /%custom_taxonomy%/%postname%/ using the Custom Post Type Permalink Plugin to set the custom rules for this CPT. What this gives me is ...
0
votes
0answers
22 views

Custom post type's permalink leads to a page not found [on hold]

I've been working on a custom post type locally and had no problem accessing the page itself, but trying to do it on some domain name always leads me to the same "Page not found" result. I tried ...
0
votes
1answer
29 views

How to solve 404 permalink errors on nginx server

I can't solve this issue. I tried everything I found over the web. I first tried configuring my nginx.conf following the example on codex with no success. https://codex.wordpress.org/Nginx I found ...
0
votes
1answer
25 views

HTTPS permalinks resulting in 404

Migrated the site from http to https.The homepage is working fine the but other page(archive,single,page) templates are resulting in 404. Here are the steps while migrating.Could anyone please point ...
0
votes
0answers
7 views

Same Permalinks for Custom Post Types and Category Taxonomy

I am trying to figure out how it is possible to use the default WordPress Category taxonomy across my entire WordPress site, including three custom post types that I have defined. I would like to ...
0
votes
0answers
12 views

how to get Pretty permalinks($wp_rewrite) till `INIT` action?

i want to call get_permalink() in early actions(i.e. plugins_loaded or setup_theme), but i get incorrect permalinks for custom post types: http://example.com/post-name instead of ...
0
votes
0answers
30 views

WordPress permalink for custom post type with taxonomy and post title

I have custom post type death and have a taxonomy death-area for each post. I want to set permalink as http://base/death/[death-area-name]/[post-title] But instead I am getting ...
0
votes
0answers
41 views

Inject a user specific ID into first URL segment

I've got a site that deals with affiliates and needs to inject an affiliate ID directly into the URL string. So for instance if an affiliate's ID is 12345, I would like to inject 12345 into the first ...
0
votes
1answer
35 views

Some links broken after updating Wordpress version

first post on here so go easy :) got a problem with a wordpress site (custom theme) http://expressduplication.co.uk which was built a few years ago by a company we are no longer able to get in touch ...
0
votes
1answer
46 views

Change permalinks for specific pages

How can I change permalinks for selected pages? For example, static page will be like this example.com other sub pages will be example.com/postname/ Right now I can't achieve what I want with ...
-6
votes
0answers
36 views

Polylang and permalinks in my WordPress site

I install Polylang plugin for multilingual WordPress website and for better SEO I want to make different permalinks. This is the link for my site: http://www.elefantti.iq.pl/ What I want to do is ...
0
votes
0answers
32 views

Accessible Subcategory URL's pages without using .php hack

I'm attempting to setup a custom URL structure within posts that makes all parents and sub child's accessible, but all attempts have failed with various errors. My category structure looks something ...
0
votes
0answers
21 views

Year archive permalink structure redirecting to home

I'm having issues with the permalink structure of my yearly archives. http://testsite.com/2016/04/ works, but http://testsite.com/2016/ redirects to http://testsite.com My blog base page is: ...
4
votes
2answers
57 views

WordPress 4.4+ breaks Walker Extension

I upgraded WordPress to 4.5.1 from 4.2.2 and it has broken the functionality I have extending the Walker class. The Walker extension: class ReturnWalker extends Walker{ public $db_fields = array( ...
0
votes
0answers
21 views

Wordpress and “pretty permalink”

I've installed wordpress and set permalink structure to /%category%/%post_id%_%postname% I've also used 'No Category Base' plugin I can list all posts in category 'my-cat' on archive page ...
0
votes
0answers
30 views

Custom Permalink Structure: /%custom-taxonomy%/%post-name%/

I would walk to the moon and back to get to the following answer. I've searched the internet for hours but couldn't find how to fix the following. I've created a custom post type and a custom ...
0
votes
0answers
16 views

Child 'page' of 'private' looses /parent/ in permalink after child update

For example, I have the site structure, where I want to publish child pages to be indexed by Google before their parent page is ready. I can't do this because I can't choose the parent page for ...
0
votes
1answer
35 views

What causes /pages/ to appear in URI, and how to remove it?

I have a WordPress site I am working on, in which /pages/ appears in the URI for all Pages. For example, www.site.com/pages/contact-us/ I am stumped as to why this is occurring, it doesn't occur on ...
0
votes
1answer
25 views

Changing Permalinks. Old links don't work

Currently I'm using this permalink structure: mywebsite.com/%postname%.html I want to change it to: mywebsite.com/%category%/%postname%/ When I do this, new links works fine, but the problem is, ...
0
votes
0answers
22 views

Issue linking to custom post type posts

I am having issues linking to a custom post type post. There is a shortcode that loads a list of posts for "applications" on the site I am working on. I am not sure what code to use to have it call ...
1
vote
0answers
25 views

Use author author display name in permalink structure for pages and posts

I need to add the author name as a subdirectory prefix for all user's posts and pages. For example: example.com/johndoe/ //The author page for John Doe example.com/johndoe/category/test-post/ //Test ...
0
votes
0answers
39 views

Fixing the WP Post Object for Custom Route

I'm currently in the process of building a custom plugin for a client that involves displaying front end user profiles for any "subscribers". These profiles will be populated with various user meta as ...
0
votes
0answers
7 views

Change permalink to attachment gallery post and redirect parent post

I have a problem with the photos attached to another article Example: **Photo1** attached in MyPost1 **Photo2** attached in MyPost2 **Photo3** attached in MyPost2 **Photo4** attached in MyPost3 ...
0
votes
0answers
33 views

Trouble with Permalinks - Mod_Rewrite on, htaccess accessable

I'm having issues with custom permalinks, I've gone through weeks of trouble shooting to no avail. Today I've confirmed that: htaccess is being read, tested with just writing "test" at the top of ...
0
votes
0answers
22 views

Permalink custom post type and custom taxonomy

I have problems with making permalinks. I have multiple custom post types. Lets say cpt1 cpt2 cpt3 I have one custom taxonomy with few categories. Lets say : cat1 cat2 cat3 All custom post ...
4
votes
0answers
32 views

Custom post type by ID in root folder

i have a custom post type project the url that worked out of the box was: www.myapp.com/project/POST-ID and www.myapp.com/project/POST-SLUG now my client needs the url be available in the ...
1
vote
0answers
35 views

Custom Post Type relationship with hierarchical parent and child permalinks

Trying to get my permalink and url structures to behave nicely. I have a Custom Post Type called Diseases. This post type is hierarchical with parent and child relationships. I have another CPT ...
0
votes
1answer
36 views

Unable to get /%postname%/ permalinks working, 404 on all links

I have only pages, no posts as links. It's just a mock site at the moment. I used a particular theme, set it to "Post name" permalink, and the links worked fine. But then I changed to another theme ...
0
votes
0answers
10 views

How to change the permalink in slider

I'm wondering how can I change permalink in slider? I'm using uniform template, so whenever i try to change permalink, it will automaticly add "-2", since the same post/page already exist. <div ...
1
vote
2answers
96 views

Featured image fallback link to permalink

I use this to display the featured image for each post. If the post does not have a featured image, a generic image will be displayed: <?php if ( has_post_thumbnail() ) { echo '<a href="' . ...
0
votes
0answers
11 views

How to occupy Wordpress slug [duplicate]

I'm wondering how to occupy a certain slug to prevent it from being used by my users. I want to make a custom redirect to redirect the users to my login page. So the url could be ...
0
votes
0answers
18 views

Change archive permalink with variable [duplicate]

I have a custom post type, where I've added the category. This is the post type registration: register_post_type( 'solution', array( 'labels' => array( 'name' => __( 'Oplossingen' ), ...
1
vote
1answer
17 views

Wordpress add_rewrite_rule() cannot visit lower url levels

I have a post type called "shop" and added query variables and a rewrite rule. // Adds query vars for shop post type function gtp_add_shop_query_vars( $vars ) { $vars[] = 'shop-category'; ...
2
votes
2answers
51 views

How to change 'with_front" key from an existing custom post type?

I have a CPT called 'experts', that has been created in a theme I bought, and I can't find out where nor where to change it. I need to change a parameter to 'with_front' => false Because my general ...
0
votes
1answer
29 views

WordPress automatically adding extra -1 or slug postfix while updating a sub category item

I have been encountered a problem that is - When i am adding a sub category it fine and showing as expected but when i try to update that category again then slug automatically changed to another. ...
0
votes
1answer
23 views

Make custom post available under main domain directly?

i have a custom post type called project. The shortlinks are all www.myapp.com/project/project-slug i want to change that to www.myapp.com/project-slug someone knows what I have to change in, i ...
0
votes
0answers
12 views

Permalink on Ubuntu Problem

I've been working on this for days now, and none of the existing solutions can solve mine. Yes, mod_rewrite is installed. /var/www/html/wordpress$ sudo a2enmod rewrite Module rewrite already enabled ...
1
vote
1answer
54 views

Permalinks and image sizes [closed]

How many times do you see questions that can be resolved by flushing permalinks? Honestly. I think 20%. I don't have a clue, but it seems that way. How about "image sizes"? It's a development ...
0
votes
1answer
13 views

Post Custom & Taxonomy 404 error

Basically the single Permanent link are giving me 404 errors. might be wrong? Code is below: function post_types(){ register_post_type('carta',array( 'labels' => array( ...
0
votes
0answers
250 views

Pretty Permalinks don't work since 4.5 upgrade

Prior to two days ago, the site was working perfectly fine. Now after the upgrade to 4.5, all sub-pages (Pages, Tags, Categories etc) are returning 404 errors with the same theme as my site. If I set ...
0
votes
1answer
23 views

Custom taxonomy returns 404

I'm getting a 404 page when I visit my custom taxonomy page. Custom taxonomy is called 'manufacturer'. I also have a cpt called 'product'. EDIT 1: It has something to do with the cpt rewrite. If I ...
0
votes
0answers
21 views

add_rewrite_rules

I'm moving an old blog from Typepad to WordPress and trying to maintain permalinks. I'm hoping to drop the /category/ base from category urls and add /index.html to monthly archives. I have these two ...
0
votes
1answer
26 views

Force/Limit the post/page slug to accept only url friendly characters

Is there a way to overwrite WP slug validation function to only accept basic characters ([A-Z0-9-]) as I want to avoid the long encoded permlink. Thanks.
0
votes
1answer
30 views

How can I get .html URL suffixes in permalinks?

I have never seen that the page ending up in wordpress with ".html ending", but some how i also feels that this page/blog is build upon wordpress - ...