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

Custom post type clean shortlink

In a multisite installation I want to change the shortlink for custom post types from this http://example.com/site/?p=5 to this http://example.com/site/5 I saw that if I set the permalinks settings ...
6
votes
1answer
135 views

Meta_Query as a way how to setup CPT permalinks - is it a good thing?

I'm creating quite complex website for a literary magazine. For its custom post types Issue and Event, I wanted different permalink structure than for posts (which is basic http://example.com/%...
0
votes
1answer
45 views

Can't use pagination with custom taxonomy

I have a problem with custom taxonomies & post types URLs. My post type slug is videos, it has an archive and it works fine: https://uwebdesign.ru/videos/. The pagination on the bottom of the ...
0
votes
0answers
20 views

How to include both parent category and child category in permalinks?

I use the permalink structure /%category%/%postname%/. I have assigned one parent category and one child category to all my posts, but my permalinks only include the parent category. I want the child ...
1
vote
1answer
19 views

Passing a parameter to a permalink

I'm trying to create permalinks for a page that currently has parameters passed to it. The site was set up by somebody else and I'm not familiar with Wordpress I have various pages which have URLs of ...
0
votes
0answers
30 views

The Permalink doesn't work after the foreach ended

I am facing a problem. In my homepage, i have two columns for Latest Updates and Latest Promotion. But, i have some share buttons as well. But, the permalink doesn't work for my share buttons. The ...
0
votes
0answers
30 views

My site won't recognize a null string in a url

I've just re-built a wp site. The client's prior site included the following tracking script, which I brought over: <script type="text/javascript"> var vv_account_id = 'xxxxxx'; var ...
1
vote
0answers
38 views

WordPress thinks my custom route is a 404

I created a plugin that sets up a custom route and then loads a template file for that url. Everything works fine, except that WordPress seems to think it's a 404 even though it's correctly rendering ...
0
votes
0answers
33 views

Problem in defining custom permalink for custom post type

I have created a custom post type i.e. Movie of The Year by the following code. class Twenty_Fifteen_Post_Type_With_Rewrite { private $post_type; private $query_var; private $...
0
votes
1answer
22 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 ...
4
votes
2answers
44 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
16 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
23 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
20 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 site.com/...
0
votes
1answer
54 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
26 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
10 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
16 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 http://example....
0
votes
0answers
41 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 http://base/death/...
0
votes
0answers
48 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
41 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
47 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 ...
0
votes
0answers
33 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
23 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: http://...
5
votes
2answers
62 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
22 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 //www....
0
votes
0answers
43 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
31 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
41 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
27 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
23 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 ...
2
votes
0answers
28 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
42 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
18 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
44 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
24 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 ...
5
votes
1answer
60 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
55 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
40 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
15 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
115 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 subdomain.mysite....
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
22 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'; $...
3
votes
3answers
67 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
36 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
24 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
56 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 ...