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
0answers
11 views

index.php used instead of custom template some times

I have a weird issue on a WordPress website (Multisite). Occasionally, pages that should be using a custom template or a WP template (like archive.php) start using index.php instead. When this happens,...
0
votes
0answers
9 views

Adding a 'blogs' prefix in the URL structure but only for blogs

In my site the blogs resolve as %category%/%postname% for now. However, I want the blog URLs to be /blogs/%postname%. I know I could go to Permalinks and add blogs as a prefix before %postname%. ...
0
votes
0answers
10 views

How to add query string at the end of the all URL for Custom Post Type?

I'm using WPForms in order to collect leads from my website. I have a "request a quote" form and inside this form I have a multiple choice field with my services that are dynamically added ...
0
votes
0answers
13 views

Post name permalink doesn't work

I changed the permalink structure of my site from default to postname, but this does not work: trying to access a post returns me the error 404. Then I tried to try other types of permalinks, and ...
1
vote
0answers
12 views

Category being displayed without base parmalink

My permalinks are set as /%category%/%postname%/ But I am getting duplicate pages domain.com/category/jazz is also the same as domain.com/jazz I do not want domain.com/jazz to display as an archive ...
0
votes
0answers
12 views

How to achieve permalink versatility

I am using a bit of custom code to list product categories in a permalink (Not ecommerce, just a product catalogue). The hierarchy is two product categories deep. function my_product_post_link( $...
0
votes
0answers
19 views

Problem: Redirect all posts to home page when change permalinks in wordpress

I have installed WordPress on my host. The site has no problem but I want to change Permalinks. When I change WordPress Permalinks in settings and save it all posts and categories pages Redirect to ...
1
vote
1answer
19 views

AWS Wordpress Install - pages/posts 404 on restart until updating permalinks

I have launched a WordPress instance on AWS using elastic beanstalk. Every now and then AWS restarts my server and when it does all my pages/posts links switch to returning 404. I can fix this by ...
0
votes
0answers
6 views

Issue with permalink for CPT and Custom Taxonomy

I'm working on a website with a number of custom post types and custom taxonomies. I've setup a CPT named service with a custom taxonomy named servicecategory. The URL for my service posts look like ...
0
votes
0answers
19 views

Removing existing attachment permalinks

I have recently migrated a site to another WordPress install by exporting data from the old site into XML and re-importing it to my new site. However, now, all of the attachments were assigned a ...
0
votes
0answers
16 views

An excluded 'ghost' page is crashing my permalink

I am a SEO intern, and I'm having a problem with a wordpress page that I have to optimize. So, I would like to make a better site structure, but when I am going to configure the permalink of the ...
0
votes
1answer
15 views

How to implement a different permalink structure for custom post type?

Tried to use this plugin, but it doesn't seem to be working: https://wordpress.org/plugins/custom-post-type-permalinks/ I'm setting a permalink structure for by blog posts in settings>permalinks ...
0
votes
0answers
10 views

Save form data in database and get Permalink [closed]

I have a form from where user will enter data. How can I save form data into database and get Permalink. So using Permalink, if user comes again on that link, I will show that form data as already ...
0
votes
0answers
32 views

flush_rewrite_rules() not working with update_option_{$option}

Will someone please explain to me why flushing doesn't work in my case. I added a custom settings page with a default value, but it doesn't work when I hit save changes. I use the admin_init hook to ...
0
votes
0answers
10 views

Plugin for custom link structure? [duplicate]

I'm working on a site which had default link structure like domain/post-slug. The content team wanted me change it to domain/blog/post-slug so I added /blog/ in custom structure field in permalinks ...
0
votes
0answers
29 views

Wordpress permalink not working on subdomain

My Wordpress permalink not working on subdomain etc : In normally wordpress will redirect automatic like this : www.sub1.mydomain.com/blog/?p=123 > www.sub1.mydomain.com/blog/post-title but now my ...
2
votes
0answers
24 views

Disable shortlinks like ?p=1234 to prevent scraping

I have a site with several thousand public pages that use randomly generated slugs for their pretty urls. The content is public in the sense that if someone knows the URL, they can see the content. I'...
0
votes
0answers
10 views

Siteurl and Home values are correctly set in wp_options table. Homepage loads fine as local.sitename,com. Inner pages showing 404 error

I have a local WordPress site set up on Ubuntu 20.04 as local.prowinner.com. The siteurl and home are properly updated in wp_options table to read http://local.prowinner.com. The homepage of the site ...
0
votes
0answers
12 views

Custom product permalink - ID at end

I would like to keep the links used so far in another CMS: domain.com/offer/product/%postname%/%post_id%/ Unfortunately, woocommerce doesn't allow me to use the %postname% tag, or reordering slug in ...
1
vote
1answer
13 views

Wordpress blog posts permalinks giving 404 on nginx

I have the following nginx configuration to serve blog on /blog/ URL. server { listen 80; server_name example.in www.example.in; root /var/www/website; index index....
0
votes
1answer
24 views

Error 404 change permalink term custom term taxonomy

I'm trying to change the permalink structure of the terms for a custom taxonomy, but it's returning page 404. I want the URL to be: example.com/products/category/category-name. I tried to use the ...
0
votes
0answers
23 views

Changing Custom Post Type Name Order

I there any way for changing the order of custom post type name in permalink From /{custom-post-type}/{post-name} To /{post-name}/{custom-post-type} Is this possible?
0
votes
0answers
9 views

Rewrite rules showing blog pagination 404 error

I added below script in my website to setup custom language slug like th, se etc. After adding this below script my pages are working like. www.mywebsite.com/ www.mywebsite.com/se/ www.mywebsite.com/...
0
votes
0answers
15 views

Edit the default 'post' custom post type arguments

I'm editing the default WordPress "post" custom post type, to add a "news" prefix before the single posts. I've used the register_post_type_args hook to add my args. It does work ...
0
votes
0answers
9 views

Nested URL with categories, sub categories and pages in between

I'm a bit new to wordpress and would like to know how to achieve the following structure. Essentially I'm creating a website for a store that carries multiple products. For example: site.com/brand/<...
0
votes
0answers
16 views

Adding custom taxonomy to DEFAULT post permalink structure

I'm trying to use the default post type for news-like articles on my site, but want to modify the post permalink structure to include a custom taxonomy. I'm currently using the default category ...
0
votes
0answers
15 views

Custom My Account tab isn't working when Home Page is My Account page

I have used the code snippet to add the custom my account page: /** * Register new endpoint to use inside My Account page. * * @see https://developer.wordpress.org/reference/functions/...
1
vote
1answer
32 views

wordpress sub-category ( lowercase letters + non-latin characters ) = 404

If the sub-category's slug is a combination of lowercase letters and Korean, page 404 appears. 1 : NGINX settings location / { try_files $uri $uri/ /index.php?$args; } 2 : Wordpress - Permerlink ...
0
votes
0answers
15 views

Attachment Page Permalink/URL Problem

I'm facing an issue with the attachment URLS. I want to redirect all my media URLS to my product pages but for some reason there are two kinds of URLS being generated for images. for example: example....
0
votes
0answers
27 views

Change permalinks structure for specific tag

I am looking for a code that can change the permalink of all my post who have a certain Tag. Regular permalink structure: /%category%/%day%-%monthnum%-%year%/%postname%/ The permalink structure I ...
0
votes
0answers
40 views

For Chinese language how to make WordPress post slug and permalink as like as the post title?

For the Chinese language, WordPress permalink and slug are not readable. It converted to ASCII. Is there a way to make permalink and slug as like as the post title?
0
votes
0answers
11 views

pretty permalink registration default wordpress page

Is possible to use permalink to redirect the user to the registration page?Also this one can be customized using an headless wordpress install passing the form fields using an ajax post request?My ...
0
votes
0answers
19 views

Wordpress URL rewrites using Advanced Custom Field

I've been working on this for a couple of days now. There have been many similar solutions here on this site, but none of them have worked out for me, or they nearly do, but then something else breaks....
1
vote
0answers
26 views

Custom Post Type Yearly Archive Permalinks

I'm struggling a bit with the permalinks on yearly archives for a custom post type. I'm using wp_get_archives to get a list of the yearly archives but the url for these comes out as follows: http://...
0
votes
1answer
84 views

Divi change project category slug

How to change taxonomy urls in wordpress? Following along with this question and this one But can not get the desired outcome. The default is: example.com/project_category/%category%/ What I want is: ...
0
votes
1answer
12 views

How do I add /blog/ on my permalink without affecting the portfolio project types permalink?

I already know that you can add /blog/ on the custom structure under permalink settings. However, when I do that, it also applies to the permalink of my portfolio project types like this: domain.com/...
1
vote
0answers
143 views

Pagination Broken on Static Pages but Works on Blog Articles

Our live site has a staging site. All plugins have been updated to the most recent version on the live site. The plugins have not been updated on the staging site. The website does not have a plugin ...
0
votes
1answer
8 views

One Time Access URL after purchasing subscription

Here's the scenario: A client is selling a product which allows for ONE use of a Web App. The Web App has a simple URL, like www.company.com/app/the-awesome-tool (it's not publicly accessible) I've ...
0
votes
1answer
20 views

Please help a newbie with blog page issue?

https://diarmuidoconnorbooks.com/home/?p=1561 https://diarmuidoconnorbooks.com/home/?page_id=1355 The first link is to my post’s permalink. The second is at it appears when you go to the website’s ...
0
votes
0answers
12 views

Nested pages at 3 levels deep shows 404

I have the following page structure /insights/agenda/topics/ same on the menu too and I use the pretty permalinks. If I view the page, it returns a 404 error. I manage to view the page when I used the ...
1
vote
0answers
16 views

Adding custom post category slug in permalink causes 404 error for pages and posts

I have added a custom post type, I want to add the custom post category in its permalink instead of the static base. For example for the custom posts I want the following permalink structure: mysite....
0
votes
0answers
17 views

CPT UI taxonomy URL slug

So, i have cpt "provider" and 2 taxonomies - "location and "service". When i create post "electrician in nyc" and tag it under "NYC" as locations and "...
0
votes
0answers
14 views

Change permalink again to title

Our client has manually changed the permalinks of all Woocommerce products. Example: the title is "Product X". The permalink would be automatically /product-x/ But they've changed it to /...
0
votes
1answer
17 views

Inserting a string in the middle of page's permalink?

I know the more sensible approach for this would be to rely on archives so that my URL for news would be: domain.com/news/ However, due to how I am setting this up for the client to easily modify the ...
0
votes
1answer
17 views

Whole site's pagination not working after rewriting product permalink

I have to rewrite the product's permalink by changing it from the default /product/product-name into /%product-cat%/product-name. %product-cat% is a custom category. But after I rewrite it, the ...
0
votes
2answers
20 views

Custom PHP form needs refresh to load page correctly

I have a single page site with all content on it. The only other page I have is a "thanks for submitting the contact form" page. In this "thankssubmit.php" page I have my PHP form ...
0
votes
1answer
19 views

Load-balanced site frequently losing permalink settings

There's an intermittent issue where the permalinks are suddenly lost on the site. Going in to wp-admin and saving Settings->Permalinks (without changing anything) always fixes it, but I can't ...
0
votes
0answers
18 views

Child-Theme Category View with modified permalinks (%category% removed)

I created a new WP Website and added a child-theme to it. The child-theme contains header.php, footer.php and I also created a category.php, in which I show different headers for each category. I ...
0
votes
1answer
20 views

Duplicated <a> tag in loop

I stuck on this issues, looks simple but can't find resolution to fix it. I have such loop: <div class="features-items__wrapper"> <h2><?php echo $currentTitle; ...
0
votes
0answers
9 views

Exclude “Blog” Page From .HTML Extension Addition in wp_rewrite

I currently have all the permalinks for pages/posts on my site on my site rewritten to add .HTML to the structure. However, in an effort to avoid 301 redirects I would like to exclude the blog page ...

1
2 3 4 5
61