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
7 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/...
-1
votes
0answers
8 views

Autogenerate Dynamic query string with custom field parameters using jQuery

we have Hubspot forms for 16 whitepapers that have a property as plain text. I want to populate a custom field value with a query string. But I need to generate query string dynamically & ...
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
6 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
13 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
13 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
28 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
13 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
24 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
33 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
0answers
34 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
141 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
7 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
19 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
15 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
16 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
13 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
16 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
16 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
19 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
18 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
17 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
19 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 ...
0
votes
0answers
13 views

Add folder to URL path

I have a couple of pages I would like to put in a subfolder and have it appear in the URL without affecting the URL structure for other pages. Example: https://www.example.com/subfolder/abc https://...
0
votes
0answers
13 views

Multiple permalinks for a single custom post with post ID in permalink and post title

I'd like to be able to have multiple permalinks for the same underlying post (so if the post title is modified, the people still will find the page) - So, One URL will work with 3 different options. ...
1
vote
1answer
36 views

Is there anything built into the WordPress core to enable me to get the relative path from the “permalink structure” option

I fear I am going to have to write a bunch of code to get what I need, which is fine, but I want to check to see if there's anything in-built before I embark on that journey. I am working on a plugin ...
0
votes
1answer
16 views

Convert $ _GET to permalink

hi How do I convert links from mysite/tv/title-post?go=seasonsmysite/tv/title-post?go=characters to mysite/tv/title-post/seasonsmysite/tv/title-post/characters This code <?php $post_id =...
0
votes
1answer
78 views

Strange behavior: random HTTP error 500 fixed by visiting Permalinks settings page (htaccess issue with language code)

I’ve got a pretty weird behavior on my site that I’d like to resolve. From time to time (no recognized pattern), my site shows a 500 error, on the front pages or on some admin pages. When this 500 ...
1
vote
2answers
21 views

Permalink in Wordpress loop outputs <A> for each new line

I'm using the following loop to pull my posts, the a is wrapped around the div to make sure it links to the post when clicked. <?php $query = new WP_Query( array( 'post_type' => 'post', ...
0
votes
0answers
18 views

How to set the same base url for two different taxonomies?

I have created two custom taxonomies. function themename_custom_taxonomies() { // Coaching Method $nieruchomosc = array( 'name' => _x( 'Nieruchomość', 'taxonomy general name' ), ...
1
vote
0answers
13 views

How can I turn a custom wordpress page into a product page?

I want to create a custom wordpress template product page using PHP. I don't want to override the default product page, but I want to register my custom template page as a product page. I have created ...
0
votes
0answers
14 views

Add dynamic text in URL on button click

I've a button with URL abc.com/go/. When a user clicks on this button it will open the page. I want to add a random alphanumeric text after abc.com/go/ every time when clicks on this button, so the ...
0
votes
1answer
58 views

WordPress Attachment Page URL Rewrite!

I am creating a gallery site using FooGallery and having the individual images open in the attachment page. I tried a bunch of codes from here to rewrite the attachment urls from ?attachment_id=8184 ...
1
vote
1answer
23 views

Custom permalinks in Wordpress

I have a question about permalinks that has me crazy because I have not found a solution for a long time 🙁 So I turn to the wisdom of the hive mind to see if it sheds some light on me. I have my ...
1
vote
1answer
22 views

next_posts_link URL does not include name of custom post type

Inside my index.php, I have a new WP_Query() for a custom post type that I have named "todo". I am trying to implement pagination for this query, so it only displays three posts, then ...
0
votes
1answer
10 views

Customize URL for specific tags archive

I'm using WooCommerce to create an online shop. Some products are tagged with an "outlet" tag. I'm currently showing them via a menu item linked to the "outlet" product tag archive....
0
votes
1answer
14 views

Permalink blog page (only) not working

WordPress 5.6, WooCommerce version 4.9.2, PHP Version 7.4.14 Dear, I am facing a problem with permalinks. When having 'post name' selected, permalinks work for all pages expect 'blog'. In this case, ...
0
votes
1answer
11 views

Giving a new page an existing URL

Say I want to build a new page which will eventually replace an existing page. Rather then editing the existing page, I want to take my time and get it right, but when the new page is ready, I want it ...
1
vote
0answers
8 views

Is it possible for a custom post type and sub pages of a page with the same slug as the custom post type to share a slug?

Sorry if my question sounds a bit confusing. So I have a page "About" and currently, I also have a Custom post type "Our Team". I've set all the posts under the "Our Team"...
1
vote
1answer
16 views

Media Gallery Images - safe to change permalink?

I am new to blogging and learning as I go. I wrote a few posts with lots of images and now that I am learning about SEO, I realize I need to add alt text and have names that are relevant to the image (...
0
votes
0answers
34 views

How do I open a post in a custom page in wordpress?

I'm new to coding wordpresst themes. I made a whale loop on the index.php page, by clicking on the link I want the post to open on another page.php. Do I need to change anything to Permalink or? The ...
1
vote
1answer
61 views

Wordpress | Convert #038; to &

I need to pass a variable inside the permalink that takes me to my custom post, and then execute the $_GET of this variable inside an input of my cf7. The only problem Wordpress encodes the & in #...
0
votes
0answers
5 views

how can I show product comments in other link like (product-link / comments)

I want to show comments in link like this : sitename.com/product-slug/commnets how can I make this page ??? for more descriptin : I have product page and my prodcut page have to show comments but I ...
1
vote
1answer
50 views

Error updating pages, and linking to pages (permalink error)

There is a chance this has been answered elsewhere - I have searched as thoroughly as I can here and elsewhere. I have the following errors on my site, wonkylogic.co, (hosted on LAMP server on Digital ...

1
2 3 4 5
61