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
2 answers
20 views

Replace the custom post type permalink

I am quite new to wordpress and I'd like to know what I am doing wrong here: I've created a custom post type, let's say, custom_post_type_jobs. And I have a page which is called jobs. When I create a ...
3 votes
1 answer
28 views

What is the best way to relate different custom post types?

Let's say I have 3 CPTs: series, seasons, and episodes. Now if I post in these custom post types the URL would be: Series CPT > post name: sample serie > URL: site.com/series/sample-serie ...
1 vote
0 answers
28 views

Change default URL (or permalinks) in the back-end

Assume I have the following code add_menu_page('My Title', 'My Title', 'publish_posts', 'my-slug', function () { require_once ('path/to/render/page.php'); }); This code will add a menu item to ...
  • 2,074
0 votes
0 answers
19 views

Two Permalinks with one Taxonomy (custom taxonomy) and (custom post type -> custom taxonomy)

I already readed this thread: "Permalinks: custom post type -> custom taxonomy -> post", but it didn't help me how I want it. I'm having trouble working with WordPress rewrite rules, ...
0 votes
1 answer
21 views

404 Error on a WordPress Website, Error disappears for a while and again appears

On website revel.pk, I am facing 404 Errors from last night. The error disappears for a while and again appears. I noticed that when the website is facing an error I just go to the permalink setting ...
  • 1
1 vote
1 answer
29 views

Standard Htaccess directives disappear by themselves

I have an odd issue on one of my websites. I'm talking about the standard, native, url directives put by wordpress, that just plain disappear from time to time, which of course breaks my site. Here is ...
3 votes
1 answer
36 views

How to add custom prefix before category base for category page URL?

Is it possible to add a custom prefix right before the category base of the category page URL(s)? For example, in the Category Page URL: sample.com/category/top-10, category base is category, and term ...
0 votes
0 answers
9 views

My permalinks no longer have the "news" category prefix in the link and it's causing 404 errors for articles published on the web

For example, https://pathguide.com/***news***/5-problems-caused-by-a-messy-warehouse/ is what's on the web, but the permalink for the website is: https://pathguide.com/5-problems-caused-by-a-messy-...
4 votes
2 answers
95 views

How to use 'blogs.dir' as media upload instead of 'uploads' directory in WordPress multisite setup

Setup 1 : The general subdomain/custom-domain based multisite setup for child network sites has its upload directory like this /home/example1.com/public_html/wp-content/uploads/sites/8/2022/01/logo....
  • 186
0 votes
1 answer
37 views

'Unsupported Operand Types' error stemming from taxonomy re-writes with PHP 8.1

I was getting a FATAL ERROR in WordPress, but only on the front end. I KNOW the error is within my plugin, but the stack trace returns info about WP Core files, and doesn't identify where in my ...
  • 1,941
0 votes
1 answer
14 views

The permalink redirecting to current article on single.php page

My question refers to single.php. On this page, I have a sidebar, and this sidebar displays the 6 latest posts. However, when I visit the page, the information displayed is correct for these 6 posts, ...
0 votes
0 answers
12 views

Is it possible for post and custom post type to share a category base slug?

so I'm wondering if it is possible, could POST (base category) and CUSTOM POST TYPE (base category) share the same slug? Could you let me know what am I doing wrong? In fact I actually did it, both ...
0 votes
1 answer
19 views

How to add paraent in Blog post URL in wordpress

I have a post in WordPress with having URL like https://digital.co/testpost I want to change the URL to something like https://digital.co/blogs/testpost How can I do that in a simple WordPress blog ...
0 votes
1 answer
16 views

Can you customize the automatic permalink population on new posts?

I have a custom post type for events, I would love to intercept/change the JavaScript that populates the title to the permalink to have it also also use the date custom field (ACF) I have. Does anyone ...
  • 101
1 vote
1 answer
25 views

Permalink stops working for the latest post only about 15 minutes after publishing/editing

I am facing a puzzling issue with permalinks on a WordPress site that has been running on the same host for several years. A recent upgrade of WordPress, its plugins, or the shared hosting ...
  • 121
0 votes
1 answer
28 views

Custom post type with custom parent prefix slug

So for example, I have multiple custom post types movies, games, and music, I'd like to add a custom parent slug, so the output would be like this; or the custom post type slug should be the prefix ...
0 votes
1 answer
17 views

Wordpress 6.1.1 UTF8 Slug Limit Increase

I have recently updated my Wordpress to 6.1.1 and my site uses UFT8 Characters (Thai) in permalink by increasing wp_posts -> post_name from 255 varchar to 3000 and also enabling if ( isset($_SERVER[...
  • 1
2 votes
1 answer
36 views

Pages resolve at different URLs (different capitalizations)

I've always considered these to be two different URLs: https://oursite.com/fun/ https://oursite.com/Fun/ On our site, the same page loads when entering each URL. Did something change in WordPress to ...
  • 189
0 votes
0 answers
21 views

301 Redirect posts to newly added categories

I've added categories to my WordPress posts and changed the permalink structure to /%category%/%postname%/. now, it looked like this: https://domain.com/category/post-slug/ but I want the old ...
0 votes
1 answer
19 views

UI does not show correct Slug after modified using save_post action

When a WP user creates a new Post the default behavior is that the Title is used as the basis for the Slug which forms a major part of the URL/Permalink. I am changing this default behavior. My code (...
  • 111
0 votes
3 answers
71 views

Hide custom post type slug url from search engine [closed]

I want to hide, let's say, example.com/services/washing ('Services' is the this is a custom post type) from the search engine and show a 401 error page. How do I?
  • 105
0 votes
0 answers
17 views

How to have category/subcategory/posttitle/ permalinks?

I am migrating a site to a new (from scratch) version. In the current site the have the permalinks set as: Custom Structure https://www.domain.com /%category%/%postname%.html On the new website I have ...
  • 145
0 votes
1 answer
18 views

Set new url from custom post field

I've create a new custom post type "Event". I've added a custom field (Post Object) to the post type "Post" were you can select the corresponding Event. So I create post new post ...
  • 135
0 votes
0 answers
23 views

Multiple custom post type in URL

I'm not sure how to handle this issue. We are developing an event website. So I've created of custom post type Event. Our customer can create x-number of events on their website. The URL of the event ...
  • 135
0 votes
0 answers
15 views

How can I fixe the article title problem?

Theme used:Zakra Site address : https://numadigit.com Hi, I have noticed for a few weeks that my sites under WordPress are misinterpreted for the SEO tag by Google. Indeed, in the title tags of the ...
0 votes
0 answers
30 views

Use same wordpress category base and tags as the prefix as the post permalink

I want to use wordpress permalink structure as /blog/category/post-name And I also want the archive pages to be like /blog/category In order to keep permalink structure When I apply on the structure /...
0 votes
0 answers
33 views

Wordpress Plugin and other pages not opening

WordPress dashboard is open but the Plugin and other pages are not opening. It's loading but not open. Below I attached the screenshot.
0 votes
0 answers
19 views

After migration works only first page

I migrated from a web hosting to a server in my NAT. I did vhost with apache2 so the http server can be serve both an instance of nextcloud and a wordpress one for my home. I had a Let's encrypt ...
  • 1
0 votes
0 answers
15 views

Custom post type Premalinks main page and details page

I have a custom post type "movie" with 'rewrite'=> array( 'slug' => 'movies') And I need the following : 1- site.com/movies/nameOfmovie ==> Main Movie page ==> this is working ...
0 votes
0 answers
17 views

Non english characters in search bar

I have a problem with non-english characters when typed into the search bar (Polish characters to be exact). When searching “Sprawdź” for example the URL converts to “/sprawd%25C5%25BA/” and just ...
  • 1
-1 votes
1 answer
18 views

Remove parent product category slug from product_cat url woocommerce

Any way to remove parent product category slug from product category url ? From mywebsite.com/c/parent-cat/child-cat to mywebsite.com/c/child-cat
  • 648
0 votes
1 answer
10 views

Settings > Permalinks - mod_rewrite ineffective if expression not preceded by /index.php/

I can not customize my WordPress permalink structure on my development server and have the URL's point to my desired pages, unless the permalink structure includes /index.php/ at the beginning of the ...
-1 votes
1 answer
24 views

Configuring static page with add_rewrite_rule gives 404 after navigating to Permalinks admin panel

I would like to create a simple static page in my theme which would then show some practical information on a certain event. The page would be served on the path /practical. For now, there are no ...
  • 101
0 votes
1 answer
33 views

Does the error "A structure tag is required when using custom permalinks." mean my permalinks haven't saved?

I'm troubleshooting an error elsewhere in a site and apparently need to resave my permalinks (without changing them), however when I do that I get (what seems to be) an error "A structure tag is ...
0 votes
1 answer
23 views

Custom post type, when type non existing post name, it query the nearest possible post name by default. How can I disabled this behavior

First, On a clean Wordpress installation using Local, I name the project "example" I install this Custom Post Type UI Plugin Then I Activate it. Then I have create a post type, suppose i ...
0 votes
0 answers
16 views

How to make a permalink variable %year% become two digits instead of four digits?

In Settings > Permalinks, I am interested in either changing the current tag %year% so it becomes two digits instead of four. For example, if I used the %year% in the Custom Structure field, the ...
  • 101
0 votes
0 answers
23 views

Add any username as link prefix and show data from that specific user’s profile on wordpress pages – with no login required

Example: www.example.com/johndoe/sample-page/ User with username “johndoe” has Name field value of “John Doe” E-mail field value of “johndoe@email.com” Facebook field value of “facebook.com/johndoe” ...
0 votes
0 answers
15 views

How to add custom permalink struct with DYNAMIC author to a Custom Post Type

I created a CPT called column. I want to add a custom permalink struct ONLY to this CPT: /columnists/%author%/%postname% I need to pass the author CPT in the link, too. I already set the slug inside ...
  • 101
0 votes
0 answers
31 views

Custom Permalink Structure For a Specific Category

Hello i wanted to achieve custom permalink for news category and this is my code but its getting 404 The url is showing exactly as i wanted but the url is not redirecting to that specific post. ...
1 vote
0 answers
13 views

Wordpress add parameters with friendly url structure

I build a Wordpress website with a page called 'Nieuwsberichten'. The url looks like https://www.example.com/nieuwsberichten This page is dynamic and I need an extra parameter called 'news_page' https:...
  • 11
1 vote
0 answers
21 views

Make all internal links relative, or otherwise make a website accessible from multiple domains

I'd like to make a WordPress website self-contained. That is, all its internal resources (images, pages, etc.) should be cross-linked independently of the site location. If I decide to move the ...
  • 111
0 votes
1 answer
48 views

Custom post type split title, setup permalink accordingly

I am currently working on a project, where I need to do this - Create a custom post type called authors Create first name and last name field for authors Single author permalink structure must be ...
0 votes
0 answers
14 views

Add additional URL variations for a Post

My goal is to have multiple variations of the same URL resolve to the same Post. The Post itself would have some different treatments based on the URL the reader followed to get there. In searching ...
  • 111
0 votes
0 answers
21 views

Changes done in admin panel are taking time to reflect in the REST api responses

I'm changing permalink setting in the admin panel. When I'm trying to fetch the post via REST api /wp-json/wp/v2/posts via postman, it's still showing the old url links (old permalinks). So is there ...
1 vote
1 answer
21 views

Custom Post Type, 404 error

I created a very small plugin using a Custom Post Type. This is NOT a commercial or publicly available plugin, only my website is using it. What happens: when I click the name of a user who posted a ...
0 votes
0 answers
16 views

How to remove site name (https://exp.com/) from WORDPRESS site source links or file load url

I wanted to make a change in the linking of the WordPress site. I wanted all links and files to be loaded in the source of my WordPress site (browser >>> view-source:https://exp.com) without ...
0 votes
1 answer
25 views

Custom EndPoint not working when strip child category in URL

I have created a custom endpoint for Download page with Permalink setting: /%category%/%postname%/ The URL as below: domain.com/top-category/child-category/post-slug/download function themes_download(...
0 votes
0 answers
11 views

Plugins, themes and other dashboard links including permalinks giving 404 error

Can you please help me out here , My dashboard plugins, themes and other dashboard links including permalinks giving 404 error. I have changed htaccess files still showing the same. Thanks again
  • 1
0 votes
0 answers
47 views

Remove "?category=" in the URL wordpress ajax filter work for category

I need to remove "?category=" in the URL? We are building a category filter through ajax and we need to remove "?category=" in the URL. Below is our URL https://exelgroupstg....
  • 1
0 votes
2 answers
76 views

Not recognizing my custom templates in hierarchy

I created a custom taxonomies to work like category called projects to be used for the attachments. I want to be able to create the archive page without having to use the CMS. Currently the only thing ...
  • 630

1
2 3 4 5
63