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
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 ...
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
358 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
26 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
34 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
47 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
36 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
20 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
33 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
74 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
50 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
38 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
22 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
62 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
47 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
80 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
53 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
45 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
45 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
83 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
63 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 ...
0
votes
0answers
25 views

Pretty permalinks not working after copying from UNIX to Windows

I made a development copy of WP from a live Apache Server (running on UNIX machine) to a localhost running on WAMP. I have mod_rewrite enabled in the httpd.conf file, as well as AllowOverride set to ...
1
vote
1answer
33 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
1answer
26 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
63 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
57 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
35 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
33 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
22 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
13 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
39 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
108 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
75 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
30 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
48 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
52 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 ...