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
0
votes
1answer
21 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
32 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
24 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
89 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
26 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
34 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
48 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
63 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
250 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
13 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
23 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
24 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
57 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
66 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
43 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
57 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
100 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
45 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,...
0
votes
0answers
19 views

Adding country subdomain to an existing website like www.example.com/uk

I have a website www.example.com and I have put a lot of products using woocommerce. And the URL of those products like example.com/cat/samsung/j7 Now I would like to add country subdomain like www....
0
votes
0answers
12 views

Wordpress url customization

I want my url structure to looks like- mydomain.com/%articles%/%postname%-%post_ID.html anybody help me? In first image you can see how my permalink structure looks like, after domain name there is ...
0
votes
1answer
228 views

How can i edit all posts slug in bulk keeping WP native redirect?

When i edit a single post slug the old url redirects to the new one automatically. I need to do this in bulk. There is a text that appears on thousands of permalinks and i want to remove it from ...
0
votes
0answers
52 views

Include a page's “category” in its URL

My site is for landing pages, not a blog - so it contains pages, not posts. I want URLs like this: https://www.example.com/shoes/nike-sport-super-red https://www.example.com/shoes/adidas-...
1
vote
0answers
49 views

How to remove specific category from URL in Wordpress

My custom structure permalink is set as shown below and category base is set to . /%category%/%postname%/ My current URL structure is this: http://example.com/aaa/slug http://example.com/bbb/slug ...
0
votes
0answers
33 views

Multiple permalink structure for the same post

I am using WooCommerce and my client would like to have 2 versions of permalink structures for single product pages as follows: example.com/product-slug/ and example.com/product-category/product-...
1
vote
0answers
12 views

How to change wordpress category list url

Hi i want to change this url adress : https://www.websitename.com/cat/scottish-fold/page/2/ To : https://www.websitename.com/cat/scottish-fold?page=2 How to do that I want to do this because for ...
1
vote
0answers
61 views

is there a way to add the post URL to the results of fselect facet in Facetwp plugin?

I am using fselect (autocomplete search) Facet which is a facet type of the FacetWP plugin to show the titles of a custom post type as a result. what i want to do is to redirect the user to the ...
0
votes
1answer
14 views

Permalink doesn’t navigate to post (changes only url)

I don’t know why, but I can’t navigate to post by click. I have tried get_permalink() and the_permalink() but changes only url. And i need to see only post that was pushed (alone) after click. Does ...
0
votes
0answers
32 views

How to quickly fix duplicated term slugs in hierarchical taxonomies?

my problem is that I've imported in wordpress some hundreds of terms of a custom taxonomy, from another system, in 5 languages. I've found out those terms have sometimes duplicated slugs, and they're ...
0
votes
1answer
18 views

Custom Permalink (with category) for Pages

I've been googling about this for last two days. No solution. I am trying to get permalink of pages like this... Domain.com/category/page-name.php There are couple of plugins that allow to assign a ...
1
vote
1answer
26 views

Custom post type template and custom post page not working

I have created custom post type "projects" in functions.php like this: register_post_type('projects', array( 'rewrite' => array('slug' => 'projects'), 'labels' => array( ...
0
votes
1answer
64 views

Show category name in the post URL only for specific categories

Is there a way to show the category name in the URL of a post which is in a specific category? I.e: I have a site which have a blog and two categories, blog and resources; right now this blog have ...
0
votes
0answers
35 views

Special Characters Url return to 404

I've managed to have permalinks with "@" (at sign) for my page with the help of @Andy's code on How to add dot(“.”) in post slug. But unfortunately, after creating post with @ on the url (example....
0
votes
0answers
24 views

Remove author (user) slug (permalink base) for a Multisite

I have a Multisite Wordpress installation in which I want to change the structure of user permalinks by removing the base "/user/" Current: domain.com/user/unsername I want: domain.com/username I ...
0
votes
0answers
21 views

Category url decoding problem, refresh page is 404

I am working on a wordpress v5.2.4 site that has Arabic language and words in URL which is causing an odd issue. I create a category: خطوط إرشاد which is creating a slug url: www.mysite.com/خطوط-...
0
votes
0answers
88 views

Custom Permalink Structure for The Events Calendar

I am trying, programmatically, to alter the permalink structure of events created by The Events Calendar plugin. I already have other posts and pages set-up and don't want to change the permalink ...
0
votes
0answers
71 views

Custom Taxonomy Archive generates 404

I have a custom post type called "artists". Attached to this is a custom taxonomy, genre. Now, URLs /genre/<post slug> works perfectly fine, however the naked taxonomy page /genre/ gives a 404 ...
0
votes
0answers
32 views

How to set the post permalink using the WordPress REST API?

When fetching the posts, I can access the link property which represents the full post link. But when creating a post, what is the way to set that permalink value? Setting the slug does not seem to ...
1
vote
1answer
55 views

Infinite redirects after changing the permalink of a page

I changed the permalink of a page in the WordPress site. It caused to infinitely redirect between the new and old permalink. To test the scenario I changed the permalink several times and now it has ...
0
votes
1answer
13 views

Author URL using wrong domain after using Edit Author Slug

I was trying Edit Author Slug Plugin and after base changes, I figured out that my Author Url is broken. It was https://aditya-aman.com/author/aditya-aman/ but now its https://aditya-aman.com/...
0
votes
0answers
76 views

Custom Post Type with Custom Taxonomy - Permalink issue

Given the situation where: Taxonomy page (taxonomy-x.php): /news/category-name Template page (template-x.php): /news I'm currently using CPT UI - how can (is it even possible?) to have the ...
0
votes
0answers
23 views

Post permalink buttons all going to the first post

I am trying to get 2 buttons, that will display on top of an image, the image link is working fine, however, the buttons on the second post are both going to the first one? I thought just adding <a ...
0
votes
0answers
26 views

WP permalink working, but why content doesn't display

I'm running a wp-blog on LEMP stack, I'm setting permalink fro WP Admin panel to say example.local/blog/%postname% it shows full post name in the address bar, when I click any post, but it doesn't ...
0
votes
2answers
39 views

I have a 404 error on all my pages! What do I do?

I have changed default permalinks into custom structure, and I got 404 error across all of my site.
1
vote
2answers
653 views

NGINX serve Wordpress from sub-path fails with 404, how to fix?

I'd like host review branches for staging, to test and get feedback before publishing to production. I tried to follow some documentation provided online such as the NGINX recipes ( https://www.nginx....
0
votes
1answer
33 views

404 on wordpress multisite Permalink pretty URLs

I installed a fresh Wordpress site with multisite enabled on AWS ec2 ubuntu instance. I followed all the instructions during the setup. My .htaccess looks like below # BEGIN WordPress <IfModule ...
1
vote
1answer
226 views

Why wordpress multisite root site showing blog prefix by force?

I have installed a directory base multisite in the localhost and create two subsites. The URL's are looking like as follows: Root Site: http://localhost/mcqacademy/ Subsite for English: http://...
2
votes
1answer
515 views

Changing URL from /%postname%/%post_id to /%category%/%postname%/%post_id%

I want to add categories to my URL structure. I'm sure this has been covered and I found many resources online to create the redirect code in .htaccess, but when I enter the code it doesn't work. ...

1
3 4
5
6 7
59