2022 Developer Survey is open! Take survey.

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

403 forbidden while updating the page [closed]

While I updating the page with more content means above 810 words am getting 403 forbidden error, if the word content is below 810 word count there is no error. I tried using checklist plugin and gave ...
user avatar
0 votes
0 answers
10 views

Adding /blog in front of single posts (only)

I would like to add /blog in front of the url for a single post: e.g. website.com/blog/news-article -> single article website.com/blog -> blog archive (showing a list of all blogs etc.) Ive ...
user avatar
0 votes
0 answers
13 views

How to use category slug with a regular page

To make better looking category pages in my sites, I'm looking for a way to show the content of a regular page on the permalink /category/name. How can I achieve that ? Thanks
user avatar
0 votes
0 answers
31 views

Add .html permalink to post if specific category

I followed this helpful guide (update 2) Giving specific category posts its own permalink structure returns 404 that creates the following permalink if the category “Foodguide” is selected: /foodguide/...
user avatar
  • 1
0 votes
0 answers
15 views

Change permalink structure specific category

I have a specific category that all posts that are in that category must follow the following structure: category-name/child-category-name(if any)/post-name The other posts will remain with the ...
user avatar
0 votes
1 answer
19 views

Display parent page URL for child page

I have this code that is working but is giving me the wrong link gives me this link example.com/index.php/sample-page/ but I need this link example.com/sample-page/ <?php global $post; if ( $...
user avatar
0 votes
1 answer
21 views

Gutenberg Editor: dynamically edit slug field based on ACF field

I'm trying to edit the slug field on the right panel of Gutenberg editor and edit its content based on a custom field. I noticed that I can access to the field by using wp.data.select('core/editor')....
user avatar
0 votes
1 answer
44 views

Gutenberg Editor: dynamicaly change slug field with an ACF field

I have a custom field with ACF named "short_title" and I want the post's slug based on this field instead of the post title field. I already wrote this code: function testSlug($post_id) { ...
user avatar
0 votes
1 answer
23 views

How to set add_query_arg properly for home page?

I want to add lang query variable to existing URL. I have registered query variable: add_filter('query_vars', 'custom_add_query_vars'); function custom_add_query_vars($vars){ $vars[] = "lang&...
user avatar
  • 569
0 votes
0 answers
10 views

Cannot Set Custom Permalinks for Multisite Post Migration

I recently migrated my mutlisite to a new host and I run into a strange issue, that prevents me from setting custom permalinks. Currently, my multisite (and subsites) have all been switch to to the &...
user avatar
  • 143
0 votes
0 answers
8 views

flush_rewrite_rules on MultiSite

I'm trying to update all the permalinks on my MU install. But I'm not sure how to go about it. This is what I have so far. But I think it's only updating the first sites permalinks. switch_to_blog( ...
user avatar
  • 913
0 votes
0 answers
9 views

Disable permalinks, but allow RSS feeds

Have a custom post type event that needs an RSS feed (/feed/?post_type=event) but should not generate permalinks (/events/title-of-post). Problem is that the publicly_queryable argument for ...
user avatar
0 votes
0 answers
10 views

How do I rewrite /blog/ slug in URL to '/' in a WordPress custom type post [duplicate]

I have developed custom type post in wordpress and it's working well. But when you try to post an article its displays /blog/ slug URL example https://example.net/blog/best-construction-company. And ...
user avatar
0 votes
0 answers
13 views

How do I structure my permalinks in Wordpress?

I am using wordpress and all I want to do is make the URL appear in the form where, Blogs is mentioned and then the blogname. But I want this structure only when someone visits blogs page. The blogs ...
user avatar
  • 1
0 votes
1 answer
22 views

List page is showing 404

I have built a new site based on a content from an old one. Also, there is some partial content in another WordPress blog which I have to import. Unfortunately, on the blog I don't have full access, ...
user avatar
  • 101
1 vote
2 answers
24 views

Debugging permalink issue

I moved a wordpress site into a subdirectory on the same folder and changed the WP address and site address to reflect this. I then used search-replace on the database files to replace the previous ...
user avatar
  • 21
0 votes
0 answers
14 views

How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html

How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html
user avatar
  • 1
0 votes
0 answers
10 views

Duplicate slug/permalink issue while adding same post name

I have my permalink format set to /%taxonomy%/%postname%/ and I have books custom post type with Genre as a custom taxonomy. But the main problem is it is not allowing to add the same post name http://...
user avatar
  • 21
0 votes
1 answer
36 views

Double Slash After Media Path (uploads//)

After performing an SEO Audit on my client’s website I found out that several images have a double slash in their URLs. This seems to be happening just to media files, and the double slash is ...
user avatar
0 votes
1 answer
24 views

Template for custom post type when taxonomy is in the URL

I have custom post type called books. This has a category taxonomy, called book_types. So, for example: Books -> Fiction -> Da Vinci Code Custom Post Type: Books Custom Taxonomy: Book Types (...
user avatar
0 votes
1 answer
25 views

CPT permalinks Rewrite

Someone please can help me to change my Cpt permalink. i'm using JEtengine cpt, does the permalink structure can be changed from www.example.com/request/post_title to www.example.com/request/post_id ? ...
user avatar
  • 1
0 votes
0 answers
17 views

Permalink with hierarchy of Custom Post Types

We have a site where we have the following structure: www.example.com/volume-number/book-title/chapter-title We do this hierarchy by creating the Chapter pages as child of a Book page, which in turn ...
user avatar
0 votes
1 answer
139 views

Gutenberg output URL to post from attribute with post ID

In my pages, I have a number of custom blocks that allow you to select a page. In the save function, I save the pages URL. registerBlockType("djave/blockwithlink", { attributes: {...
user avatar
  • 244
1 vote
1 answer
29 views

How to link to current post in WordPress?

I'd need to get a permalink for this post (current post) in WordPress. Easy to do in PHP but I'd need to use it in the article itself so no PHP? I'd need a button that links to the current article. ...
user avatar
  • 11
0 votes
0 answers
13 views

What permalinks do I use in the redirection

I had the default permalink, but then read somewhere, that I should change it to post name. I think the default was in date and month and was https://webyardcraft.com/2022/03/14/sample-post/ I changed ...
user avatar
0 votes
0 answers
20 views

I have redesigned a website and my blog page has different permalinks

im a new website developer and i dont have much experience with this subject. I made a new website for a customer using wordpress ( also the previous uses wordpress) My question is , in the old ...
user avatar
  • 1
0 votes
0 answers
7 views

How to stop permalink Custom Structure getting applied beyond Posts? [duplicate]

I want a permalink structure like this... Posts: https://example.com/post/name-of-awesome-post/ Users: https://example.com/user/nicksmith/ For Posts, I know I can go to Permalink Settings: Common ...
user avatar
0 votes
1 answer
36 views

New posts link to old posts (random)

I’ve recently noticed a strange problem with my posts. When creating a new post, and when the post autosaves before publishing, it will automatically get a wrong permalink format. So instead of: Myweb....
user avatar
1 vote
1 answer
33 views

How do I add a custom sub menu menu under Woo-commerce marketing?

I am developing a plugin and I want to add a menu under the woo-commerce marketing menu like the coupons and overview submenus. How am able to archieve that? I did this but it didn't work. ...
user avatar
0 votes
1 answer
23 views

One Custom post type 404's others don't

I've created 7 custom post types and all but one works. I don't even know where to go from here. I've flushed my permalink structure, and that didn't work. The following code is the array that I'm ...
user avatar
0 votes
1 answer
58 views

understand what code is doing when prepending /blog

I am new to Wordpress and php coding. We are moving from a different container system to wordpress and to keep the links intact I need to prepend /blog to all post articles. I tried it through the ...
user avatar
  • 3
0 votes
0 answers
9 views

Why the internal link get converted into a comment?

Well, whenever I change my internal links, just out of nowhere a new comment is generated, so how can I prevent it from happening.
user avatar
0 votes
2 answers
25 views

Wordpress Set A Static Page/Template For All Sub-Pages

I have a wordpress install where I want to serve a static page/template for anyone arriving at a child of a certain page, e.g. https://example.com/products/* Would all serve a php template from ...
user avatar
  • 111
0 votes
0 answers
5 views

Category blog URL 404

I am trying to have a URL structure for my blog that looks like this: POSTS: www.domain.com/blog/post-name CATEGORY BLOG: www.domain.com/blog/category-name When I configure it through the WordPress ...
user avatar
1 vote
0 answers
13 views

How to encode author ID in the author permalink

My permalink urls for users look like /author/1 (original author ID) Is it possible to replace author ID with an encoded number In my dream author permalink should look like /author/56c96e766f8334 (a ...
user avatar
0 votes
0 answers
8 views

How Can I Remove Child Slug From Grandchild Slug When Using Duplicate Grandchild Slugs?

I am using a plugin which, when you create a category, gives the below type URL structure: example.com/listing-category/automotive example.com/listing-category/catering example.com/listing-category/...
user avatar
1 vote
0 answers
19 views

200 Rewrite blog post links

I have an self-hosted website and Wordpress where mywebpage.com is my main site and mywebpage.com/blog is my Wordpress Blog. I'm building an new website on AWS Amplify with more modern web languages, ...
user avatar
0 votes
0 answers
133 views

Modify post slug before saving

I would like to modify the slug of new posts by adding text before and after the original slug. The slug is then sent over an API via a plugin that hooks into save_posts and transition_post_status. ...
user avatar
  • 123
0 votes
0 answers
12 views

Custom permalink structure for product

I am trying to modify the link structure of Wordpress, I want to include certain variables, but first I am trying a simple thing like changing the slug /oppositions/ to /test/ I have the following ...
user avatar
0 votes
0 answers
18 views

Remove subcategory slug from url

My posts are sorted by categories and subcategories Their urls look like this : https://one-domain.com/blog/ https://one-domain.com/blog/news/ https://one-domain.com/blog/news/video-games/ https://...
user avatar
0 votes
0 answers
11 views

How to link image in Wordpress - Elementor when certain element does not offer that option?

I would like to see if there is an option for linking image in Elementor Carousel, when there is no option for it to do so. Specifically, I mean the Team Member Carousel widget from EA addons. I need ...
user avatar
0 votes
0 answers
21 views

Creating an alternate path for a page

I would like to load the same page under a different URL, but not via a redirect. For example, suppose I create some page with id=6 - I can access this page via example.com/index.php?page_id=6 - if Im ...
user avatar
  • 21
0 votes
0 answers
19 views

Permalinks causing wp-json to 405

I have 3 sites I am working with and only the main domain is having this disruption. We have a staging site with no issues, and another subdomain with no issues as well. The main domain when updating ...
user avatar
  • 139
0 votes
0 answers
23 views

Using custom structure prefix showing 404 for sub-categories

I'm trying to nest my posts (post type: posts) under sub-categories. The structure I'm trying to achieve is: /knowledge-base/category/sub-category/postname And this is how my permalink is look like: /...
user avatar
0 votes
0 answers
19 views

Rewrite Post URL so it is constructed from parent post url & child post url

What I want to achieve: Make Posts (post type 'post') hierarchical (Done - see code below) The child posts should have the following urls: domain.com/parent-slug/child-slug. This is exactly what ...
user avatar
0 votes
0 answers
38 views

Custom URL for multiple categories hierarchy

I belive it's not a duplicate. None of "solutions" I found for similiar issues worked for me. Let's assume I have following hierarchy of wordpress post's categories: - Foo - Bar1 - ...
user avatar
0 votes
0 answers
27 views

Changing permalink for blog posts, current structure www.website.com/blog-post, change to, www.website.com/blog/blog-post

I currently have blog posts on the website with permalink structure as - www.website.com/sample-post/. As Google indexing regards each of these blog posts as individual landing pages, I would like ...
user avatar
0 votes
0 answers
41 views

Add /amp at the beginning of the URL instead of the end [duplicate]

url structure with this: www.example.com/post-name/amp/ and i want the url to be like this: www.example.com/amp/post-name/ how can i do this in this code? define( 'AMP_QUERY_VAR', apply_filters( '...
user avatar
  • 1
0 votes
1 answer
18 views

Redirect to brand page after click on the brand logo

I've designed a product page. I've added a brand from the attribute with a logo. However, when I click on the logo it is redirecting me to this link: ....com/?taxonomy=pa_brands&term=midea My ...
user avatar
  • 103
0 votes
0 answers
69 views

Oops! That page can’t be found

I have designed site juicerhunter.It was going well but suddenly an error is showing: “Oops! That page can’t be found. It looks like nothing was found at this location. Maybe try searching?” This ...
user avatar
  • 1

1
2 3 4 5
62