Questions tagged [permalinks]

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.

Filter by
Sorted by
Tagged with
1
vote
1answer
28 views

post_type_link not working in gutenberg

There are tons of answers on using the post_type_link filter. The code in the gist works perfectly with one exception...gutenberg. If I disable gutenberg on the post types in question then the code ...
0
votes
0answers
13 views

permalinks / slugs

This is the first site I have had a problem with the page name not showing up in the domain page name. Like https://imaginedesigns.ca/?page_id=11 is the permalink that shows but my slug shows 'about' ...
0
votes
0answers
19 views

Deactivating and reactivating template solved problem… but how?

I just feel the need to mention I'm not a rookie. I code my own "lean and mean" templates, and know my way around PHP. That said, today I had a problem. I have a page... "foo", to which I applied a ...
0
votes
0answers
21 views

Can post name be same as category name?

I have an old website written in static HTML pages. Now I want to rebuild a new website via WordPress. And make sure all SEO I have done with the old site will be transferred to the new site. So I ...
0
votes
1answer
20 views

Custom permalink structure for posts in specific category

Hi I'm trying to rewrite permalink structure for posts in one specific category, the structure should be category name - author name - post title When I use the code below, there is no author name in ...
1
vote
2answers
67 views
+50

Wordpress Pages Redirecting to Root with Wordpress Multisite (Sub-Directory)

I am working with Wordpress Multisite (with sub-directory structure). Everything works fine instead of Wordpress pages. When I publish a page and I try to visit it, it redirects to the main multisite. ...
-1
votes
0answers
18 views

Refreshing permalinks via Settings or via WP CLI - difference + what happens really?

When I run wp rewrite flush on my server (after deploy where .htaccess is copied over) my translated category pages throw 404. When visiting Settings -> Permalinks everything is fine again. I'm ...
1
vote
0answers
16 views

How can achieve this permalink perfectly? domain.com/%category%/%post-name%

I want to make a custom post URL like domain.com/%category%/%post-name% and I am able to do it but the problem is, the pages, posts showing 404. I registered a custom post named download with array('...
1
vote
0answers
12 views

custom-taxonomy/post_name instead of the default post_type/post_name

How to make the custom post type permalink structure like custom-taxonomy/post_name instead of the default post_type/post_name. Notable that, the custom post type is registered from a third party ...
0
votes
1answer
10 views

Adding category slug to posts permalink causes 404 error

I'm changing my permalink structure from /%postname%/ to /%category%/%postname%/, it doesn't automatically redirect old urls to new urls, it gives 404 error. old urls: site.com/post-name/ new ...
0
votes
0answers
27 views

Private post caught in endless redirect loop

I have an old post set to private. When I visit it in a browser, Network in DevTools shows that it is endlessly redirecting to itself. I have switched off my redirect plugin, that didn't help. I ...
0
votes
0answers
10 views

Permalinks: Custom Taxonomy > Custom Post Type > Post

Most tutorials and snippets I've seen put the custom post type after the site's URL. I want to put the custom taxonomy before the custom post type in the URL. So I'd like my site to route in this ...
0
votes
0answers
19 views

How to separate an overgrown blog into sub-blogs – without breaking existing inbound links?

I have a single WP install that has accumulated a mix of content, large subjects of which I want to separate into something resembling their own blogs. Example: Among the pages and posts on myblog....
0
votes
1answer
27 views

Order custom post type posts by custom field with pretty URL

I have a custom post type, let's call it my_post_type It has an archive at /my_post_type/ I'd like to create a pretty URL that behaves like the archive page, but orders these posts by a custom field ...
0
votes
0answers
12 views

How to customize URL of posts under a specific category

How do I customize the URL of posts posted under a specific category? To customize the category page URL, i was able to use the plugin "custom permalinks".However, this does not change the URL of ...
0
votes
0answers
21 views

Problem with two WP installation on root and subfolder

Let me give you some context.I have a website.com and website.com/blog with each their own wordpress instal I created the the blog in the first place, and then the "main" wordpress. The weird thing ...
1
vote
0answers
17 views

force permalink slug for page vs post_type slug parent

I have setup permalink for post_type "directory" with this slug domain.com/directory/company-name now when I try create page with domain.com/directory is detect as parent of post_type "directory" ...
0
votes
0answers
16 views

How does Permalink work with the AMP plugin after Removing Parent Permalink Catalog from Posts

I have found some solutions, but they are not perfect with the AMP plugin. For example, I found that this code is completely true for posts that are not amp, but when viewed by url with amp, it ...
0
votes
0answers
9 views

VPS - WordPress - issue with permalink and database connection

I am using VPS (Ubuntu 18.04) and have a WordPress setup in it. After a successful installation, I faced a permalink issue. Only the homepage shows output and all other pages show 404 in front-end. I ...
0
votes
1answer
59 views

Using a template file for a specific custom URL

I was trying to use a custom URL to load a page template for single-events.php without rewriting the default URL format. I am using filter template_include to load the template like this: add_filter('...
0
votes
0answers
15 views

How to set permalink and set up such that each blog post is a new sub domain?

The wild card of the domain is pointed on this server. And also the server has wild card SSL. In such case how to set permalink and set up such that each blog post is a new subdomain? Ex: test-...
2
votes
2answers
45 views

Permalinks Structure and 404 Question

I don't know enough wordpress to actually be able to find the correct wording to get any real information on my problem. Someone asked me to set up a simple news system in a already running website, ...
0
votes
1answer
20 views

WordPress image title attribute becomes permalink? [duplicate]

I'm managing a WordPress site with a strange problem. When images are uploaded to the media library, a page is being generated with a permalink that uses the image's title attribute. For example, if ...
0
votes
0answers
16 views

Nested permalink without dummy parent page

I want a permalink example.com/foo/bar without plugins. So I create the bar page using wp_insert_post(). I'm supposed to set the post_parent argument to the ID of the foo page. But I don't want to ...
0
votes
1answer
7 views

Get Wordpress username to customize url

I am currently trying to get the current username to add it to the url. The user should be able to navigate to his own dashboard wich is located under domain.com/username. Is there a way to retrieve ...
1
vote
2answers
27 views

Show custom post archive when custom post not specified

I have a custom post type called produce set up in WordPress and a custom taxonomy called produce_category. The URL format for posts in this custom post type is in this format http://mywebsite/...
1
vote
0answers
37 views

Show custom post type relationships by taxonomy

I have two custom post types product and review. The product have a custom taxonomy fruits with terms apples and bananas. All review has a custom field that is a relationship to product, so I can ...
0
votes
0answers
25 views

The same rewrite slug for multiple taxonomies

I'm using the plugin custom post type ui and I have a custom post type with multiple taxonomies and I'm trying to get my URLs to work. Custom post type → works Taxonomy1 → works_cat Taxonomy2 → ...
0
votes
0answers
13 views

Issues redirecting /%postname%/%post_id%/ to /%postname%/

Having permalink redirection issues. I'm trying to redirect /%postname%/%post_id%/ to /%postname%/. I've changed the setting from Setting=Permalink, and it seems to be working well. But example.com/...
0
votes
1answer
18 views

Cannon see subcategory in permalink

There are a lot of articles (old one, though because I use new WordPress 5.3.1) about how to include category and subcategory in WordPress URLs. I followed those articles (pretty much are the same), ...
0
votes
1answer
28 views

how to make <?php the_permalink() ?> follow?

i use this code to show posts of wp <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> but all link are nofollow. why they are nofollow wen there is nofollow rel? ...
0
votes
1answer
22 views

Single and Archive Pages with Custom Post Type

I have a custom post type // Set other options for Custom Post Type $args = array( 'label' => __( 'document', 'ecse' ), 'description' => __( '...
0
votes
4answers
80 views

Category URL's 404 after setting category base to '.'

I want to remove /category from URLs. I have set category base to "." I have some "category urls" which previously looked like /category/category-name/sub-category-name They are now /category-name/...
1
vote
1answer
23 views

Redirects after permalink change

I am using the permalink settings /%category%/%post_id%/. And all URLs are indexed by Google using the above. Now I want to change the permalink to /%postname%/. But this will make all Google ...
0
votes
1answer
27 views

Custom Post Type Single Page and Archive Page redirects to Home Page

I've been battling with this for a while. I have a CPT created with PostTypes (I have used this library many many times in other projects w/o problems): $volunteer = new PostType( 'volunteer' ); $...
0
votes
0answers
37 views

Remove parent slug from child page

I am using WordPress as a CMS with a bunch of static pages. These pages were originally created with no hierarchy, but I would now like to make some pages child pages purely for administrative ...
0
votes
1answer
15 views

Changing permalink of default Post with custom post

I have created new post type for jobs and i was using the default post for my blogs. Now the issue arisen for the jobs permalink as i was using example.com/blogs/%postname% earlier now i want on jobs ...
1
vote
0answers
29 views

Plain to postname permalinks not working

I have recently managed (with help from this forum ), to upload the site www.gas-spring.com . I had the permalink setting set to plain when making the pages etc... now I want to clean them up and ...
2
votes
1answer
50 views

Without index.php in permalinks I get 404 across site

As the title says, when I change my permalinks in the admin, all my pages return a 404 (except homepage). I have to inlclude index.php as the start of all the different paths. The paths all work fine, ...
1
vote
1answer
17 views

How to disable default category linkbuilding?

Hello I have a problem with wordpress default category linkbuilding. I want to display category page with link mywebsite.com/products/company/. And I did it, but I can also get to this page witin ...
0
votes
1answer
11 views

CPT and rewrite rules

I have CPT "Library" with "Library-category" taxonomy. What I want to achieve is to have: https://example.com/library - archive page for Library CPT https://example.com/library/case-study/ - archive ...
0
votes
0answers
16 views

How to have post_type_link filter alterations be reflected on admin post edit view?

say this: // from register_post_type ,'rewrite' => array( 'slug' => 'prodotti/%product_categories%', 'with_front' => false, 'pages' => false ) then add_filter('post_type_link', '...
0
votes
0answers
11 views

Website URL Permalinks

I used Prophoto 4 and recently upgraded my site to Profoto 7 and moved to a new Profoto template. My website URL is www.lorrainebhandariphoto-video.co.uk Now my site address URL and wordpress address ...
0
votes
0answers
22 views

Rewrite rules for custom taxonomies

I got car custom post type. And got custom taxonomies (model, year, color) for car post_type. Car archive link looks like this: https://example.com/car/ And i am filtering this archive page with $...
1
vote
2answers
40 views

Wrong generated page_name/slug on first publish of custom post type

I have set up a custom post type (CPT) with the support for editor removed: register_post_type( 'review', array( 'label' => 'Reviews', 'labels' => array( 'name' => 'Reviews', ...
0
votes
1answer
21 views

Custom Post Type “MUST NOT” be able to search via URL

Hello good day everyone, Guys any idea how to hide permalinks from custom post types and should not be able to access via url. By the way, Im using Pods framework for my CPT's Example: www.example....
0
votes
0answers
29 views

Is it possible to use multiple post_name, post_title and post_content?

I'm actually writing a localization plugin. Here I have developed something like "localhost/post-title", "localhost/de/post-title", "localhost/ru/post-title". From this point on, is it possible to ...
-1
votes
1answer
29 views

How can we pass a value from the_permalink() at WordPress?

I want to pass the sub category id number from a post link <a href="<?php the_permalink() ?>"> is there any solution to pass the value from one page to another through link. we can pass ...
0
votes
0answers
47 views

Two Custom Post Types in Permalink + Duplicate Slugs Issue

I'm having some trouble with WP adding those numbers onto the end of my slugs if it thinks it's a duplicate slug. The issue, though, is that it's not actually a fully duplicate URL, since I include a ...
0
votes
0answers
36 views

WordPress Stopped Redirecting Shortened Child URLs

I'm currently on WordPress 5.3 and just noticed that at some point, shortened URLs stopped working. And what I mean by "shortened" is that you used to be able to just type in the final part of the URL,...

1 2 3 4 5 56