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
1answer
29 views

Server Move: All pages leading home

The Problem. No matter which URL I enter, all pages display the site's static front page. Known site URLs load the home page (but keep the URL entered) and should-be 404 paths like /I-know-you-do-not-...
0
votes
1answer
16 views

Wordpress Links Not Working After Migration

Just finished moving my local Wordpress install to a live server. Imported my DB, and uploaded my core files to the new server. I also changed the siteurl and home fields in the wp_options table ...
-1
votes
1answer
30 views

Single product link in woocomerce

I want to change my product link from produkt/produkt-name to produkt/category/subcategory/product_id/product-name/?myvariableParsedByJson Please give me any tips how to do it?
0
votes
0answers
12 views

Substitution of a Wordpress installation preserving the old one under a subfolder

I have a WordPress website (Website01 under exampledomain.com) and I want to build another one under the same domain but a different folder (Website02 under exampledomain.com/subfolder). That's not a ...
0
votes
1answer
23 views

Add URL to selected post in meta box

How can I change this code $posts = get_posts(array('post_type'=> 'lesson', 'post_status'=> 'publish', 'suppress_filters' => false, 'posts_per_page'=>-1)); //here you add the ...
1
vote
1answer
56 views

Pagination Issue - /page/2 404

I have a custom post type with it's own archive page. I'm running a custom loop, displaying 1 result. I'm trying to paginate these results, but I'm having some strange issues that I can't seem to ...
0
votes
1answer
48 views

add_rewrite_rule with bottom priority doesn't handle the Wordpress pages

I have a php file named test.php that outputs the page querystring parameter. I want to use add_rewrite_rule to serve my php file, while the WordPress pages which exist already or will be created ...
0
votes
0answers
24 views

Remove custom structure slug from custom post type

I have a custom permalink structure like: /blog/%category%/%postname%/ I use the blog, to have all my blog articles prefixes with that slug. The issue is, that some of my plugins with custom post ...
0
votes
0answers
33 views

Remove digits from slugs in post or category permalinks

Assume we have two products with same name from two different vendors. For example, it's "Juice" from "vendor1" and "vendor2". "vendor1" and "vendor2" are created as categories, and if I create two ...
1
vote
1answer
28 views

Removing category base form links messes up the parent-child behavior

I am using the 'standard' trick for category removal in wordpress. In my permalinks I set the permalinks structure to /%category%/%postname%/ And my category base to . Which worked fine, until ...
0
votes
1answer
18 views

The permalink for the page doesn't work and page's defined link throws “Object not found!”

I created new page in a fresh WordPress install. Version of WordPress is fairly new - 4.4.2. I set the permalink for the new page to be http://localhost/gp/page-two/‎.
0
votes
1answer
23 views

How to make custom page link to root automatically?

I've put / in my Home custom page link, and locally my server is localhost:3000 and it works fine, but on my server the url is www.mysite.com/theproject, but / there does not lead to www.mysite.com/...
0
votes
0answers
29 views

How to change permalinks after finishing my wordpress website?

I have developed a Wordpress website with plain permalinks. Now i want to change it to Post name permalinks. Actually, i have changed it using Settings -> Permalinks, but the problem is that all pages ...
0
votes
0answers
20 views

Display tags belongs to a category even if if it belongs to multiple categories

Here is my case: I have 2 main categories I would like to display posts in separately: 1) Garden 2) Recipes One page for Garden with posts belong to "Garden" and one page for Recipes with posts ...
0
votes
1answer
12 views

Access or edit custom generated permalinks with WP_Rewrite

I want to create custom permalinks for my plugin using WP_Rewrite. I found the codex the have great examples and this stack topic also explained a lot to me. Currently I've got the following code ...
0
votes
1answer
31 views

LetsEncrypt WordPress on the Raspberry Pi - Nice url's give 404 with https, http works

I setup WordPress on my Raspberry Pi and used LetsEncrypt to secure it. The HTTPS links will work with Post ID permalinks. They return a 404 when I change the permalinks to anything else. Here is my ...
0
votes
0answers
90 views

Nginx 404 error with permalinks

I've been trying to figure this out for days via google, but none of the solutions have worked. I'm running Nginx on a DigitalOcean droplet, newest version of Wordpress, and I'm getting 404s when I ...
0
votes
0answers
68 views

Post type permalink as subdomain rewrite rule

I'm trying to use custom post type slug on permalink before site URL (as sub domain) so the permalink most look like: http://post-type-slug.example.com I use a modified class from Subdomains plugin ...
0
votes
1answer
29 views

nice permalink for frontend edit page

I would like to know if anyone has ever tried to create a permalink like this for editing a post in the frontend: http://example.com/books/750/edit Where books is my custom post type, 750 the custom ...
0
votes
0answers
36 views

Custom Permalink Rewrite for Blog Posts and Archives

I've seen stacks around a lot with mixed results. Basically the goal is to have a URL structure for all default Posts ('post' post type) to be: /blog/postname But also, archives (category/tag for '...
0
votes
1answer
24 views

Redirect User From Registration Page To CPT (profile page) with custom url

I am looking for a little advice regarding wp_redirect after successful registration, the plan is a new user registers and is then re-directed on success to a custom post type page 'Agent' wp ...
0
votes
1answer
41 views

Add custom query vars to pretty permalinks

I am creating a wordpress plugin where i have some custom query strings appended with the urls to achieve the desired functionality.I require pretty permalinks like post name in the wordress settings. ...
0
votes
0answers
28 views

Single-{custom}.php doesn't exist not matter what I do

This question has been asked and re-asked, I know because I've found every one of them here already. I don't know why I can't find the hint that I've messed differently than others so after hours of ...
0
votes
0answers
33 views

Modify custom taxonomy permalink to allow 2 additional parameters?

I have a custom post and taxonomy set up. The only section I have in my website are taxonomy archives. The archive page lists the posts from the current taxonomy term. Each post is viewed in a modal, ...
0
votes
0answers
36 views

Create slug for Custom Post Type Under two Parent Page with WPML

I would like this structure, WPML plugin with subdirectories, event default one. Desire structure: /en/2016-xxxx-xxx/ -> Page with Custom Template /en/2016-xxxx-xxx/term1/ -> Page with Custom ...
0
votes
1answer
28 views

Permalink problem ( Blog posts vs custom post types)

I have add /blog/%postname% permalink option for blog posts. Sample blog post : domain.com/blog/post-name/ I have custom post type called product. Now it permalink display as follow. domain.com/...
0
votes
0answers
19 views

Cannot modify permalink of page

I want to modify the permalink of a page. Let's say I have http://example.com/a-very-very-long-old-title I want to change it by http://example.com/new-title So I get to the page, modify the ...
1
vote
1answer
74 views

How to make draft posts or posts in review accessible via full url / slug?

I am running a website with WordPress 4.2 and have changed the way draft posts or posts in review status are displayed to non logged in users (these posts are, too, visible to anyone who visits the ...
0
votes
0answers
40 views

Can I override the permalink/slug on creation

I have a plugin that imports data from an external API, creates a 'Product' Custom Post type ( or updates an existing one ) and then adds all the meta data. Every time we update the product from the ...
0
votes
0answers
37 views

Issue with custom search form and permalinks generating 404

I am having a problem generating results using my custom search form in Wordpress. My searchform.php template looks like this. <form role="search" method="get" action="<?php echo home_url( '/' )...
0
votes
0answers
11 views

Setting post permalink outside /blog/

I am trying to integrate my blog in a better way with my ecommerce application. I am trying to switch from something like: Product category page: /power-tools/drills/ Blog post: /blog/best-drills-...
0
votes
1answer
148 views

On IIS, stop Wordpress from resaving my web.config file when I enter the Permalinks config page

I have a Wordpress website installed in IIS and it is working fine. On a subfolder I have and ASP.NET application which also works allright. Wordpress URL rewriting causes a series of problems on the ...
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
30 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
64 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
53 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
35 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
27 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
310 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
52 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
46 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
194 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
160 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
149 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
55 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
66 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: ...