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
22 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
60 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
38 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
27 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
38 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
40 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
12 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
36 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
0answers
48 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
40 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
12 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
107 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
20 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
62 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
33 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
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
310 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
31 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
39 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 - http://www.nytimes.com/2014/04/12/opinion/sunday/...
0
votes
0answers
34 views

Need Functions.php Permlink WP Job Manager Code

I'm building a site that uses WP Job Manager. I'd like URLs to appear as /category/region/name/ - For this I've added this code (taken from WP Job Manager site) and added it to the theme's functions....
0
votes
1answer
19 views

how to use two permalinks for one custom post type based on categories

I am trying to get 2 different permalink for one custom post type, based on the solution given there. It is working for articles, but I can't get it work for my "film" custom post type. Here is my ...
0
votes
0answers
30 views

Custom Taxonomy/Terms Url Structure

I am creating some taxonomies dynamically from using an ACF Options page, this seems to be working but the URL structure is off. I was expecting, something like... mysite.com/myPostType/Taxonomy/Term ...
0
votes
1answer
66 views

WP Job Manager Custom Permalink Returns 404 Errors

I'm building a site that uses WP Job Manager. I was interested in setting it up so that URLs show as: /category/region/name/ I found this link that explains how to do just that from their site and ...
4
votes
1answer
45 views

Replace Wordpress %postname% suffix with %postid%?

I run a news site and there's a Wordpress permalink issue that I have been wondering. Now, Wordpress will add an incremental numeric suffix to duplicate %postname% regardless of the directory ...
0
votes
1answer
37 views

Custom post types not filtering by taxonomy

I have a custom post type of rent that has a taxonomy of location. When I go to mydomain.com/rent it displays all the rent items as expected but if I go to mydomain.com/rent/taxonomy-name/location-...
-1
votes
1answer
21 views

ugly URLs appear as 404 in GWT

I use latest wordpress. So, from WP side i make posts as always, i have set permalink structure: sitename.com/post name htaccess has the rewrite rule set. In google webmaster tools account the post ...
0
votes
1answer
33 views

Custom post URLs

My normal posts publish into domain/notes/, so for custom posts I can set with_front appropriately so as to not prepend CPT with notes. But is there a way I can then 'push them down a level', so they ...
1
vote
2answers
61 views

Permalink structure CPT with custom taxonomy fails

I'm getting quite frustrated setting up the correct URL structure for a CPT with a custom taxonomy. I have a CPT called 'courses' with a custom taxonomy called 'course type'. The url structure ...
3
votes
1answer
45 views

Why does WP not use relative links when linking pages?

Why is it that Wordpress 4.4.2 does not use relative links (get_bloginfo, or such things) when I use the "internal editor mechanism" to link to existing pages and posts in a site. My local WAMP ...
0
votes
1answer
67 views

Wordpress custom post type rewrite rule matches all pages returning 404

I've created a custom post type with a rewrite to use the grandparent relationship as the URL like so: function cpt_child(){ $args = array( //code 'rewrite' => array( 'slug' => '%...
0
votes
1answer
51 views

Will adding 40,000 301 redirects slow down a site?

Will 40,000 301 redirects slow down a site? The 301 redirects will be from within the same site. -- Additional info -- We're using a plugin for this (Redirection WP) and the author mentioned this ...
0
votes
1answer
34 views

Make Permalinks have a custom format?

For Example: www.abc.com/ConstantCustomString-PostTitle-ConstantCustomString/ How could i go about doing this and is this even possible ? I tried Searching this online but no question answer ...
0
votes
1answer
38 views

How to get permalink in foreach loop

What to do in situation when I don't have an ordinary if-while loop, how do I get permalink? $page_children = get_page_children( 8, $all_wp_pages ); foreach( $page_children as $page ) : echo $...
0
votes
1answer
44 views

Wordpress modify Settings > Permalinks (options-permalink.php) Add CPT Permalink Options

How do I modify the Settings > Permalinks (options-permalink.php) admin page to add more custom permalink parameters? I'd like to add additional permalink parameters to the "Optional" section for ...
0
votes
0answers
67 views

Dynamically Change Base Permalink Prefix For Custom Taxonomies (Categories)

I'd like to change/modify the permalink structure for the standard and custom post-types and taxonomies, such that the base being prefixed to the permalink dynamically changes for each post-type and ...
1
vote
1answer
61 views

Change permalink for a single post entry

I've defined a custom post type, projects, and I've set the permalink for those post types to /projects/my-project/. However, for one of the projects, I need to give it a special URL, so instead of /...
0
votes
1answer
42 views

Custom Post Type Taxonomy - Permalinks generating, but posts not found

I have a custom post type documenting Treatments available from a clinic. This sits on the Cosmetics part of the website (site.com/cosmetics/). Filters have managed to translate \%type\ for ...