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
12 views

How to show URL as /base/parentslug/childslug/

I am new to wordpress, I am trying to implement to include /base/parentslug/childslug/. in URL. (Example: domain/parent/child) Can u please help me on this.
2
votes
0answers
24 views

Mixed unrelated taxonomy in permalink

we have a situation where we want to build permalinks using mixed (unrelated, ie not hierarchical) taxonomies in permalinks on a wordpress site. and we dont want the taxonomy name in the actual link. ...
1
vote
0answers
31 views

How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?

(Forgive me, I know this question has been asked extensively but I haven't found an answer that works for me) I'm working on a website for a webcomic. I have a custom post type set up called "...
0
votes
0answers
20 views

Permalink Issue | Too many redirects

I'm having an issue which I haven't come across before. I created a page with the same title as another existing page and as standard it gave it a -2 to the permalink for the new page so permalink &...
0
votes
0answers
15 views

Modify category permalink to use post type slug

I have multiple custom post types and default post type that all need categories. Right now, each post type is using the default category taxonomy. I would like the archive category taxonomy URL to be ...
0
votes
0answers
16 views

Change /index.php/%postname% to %postname% permalink

I hope your well. I was reading other post but still I can't find a solution for my problem. I can't change my permalinks from /index.php/%postname% to %postname% I already: (1) Modifiy .htacccess ...
0
votes
0answers
58 views

Create new page in wordpress plugin which doesn't exist

Sorry about confusing title but let me explain what I'm trying to do. I'm creating an online form in a plugin which allows the user to enter some values. Once they click on submit the new page should ...
0
votes
0answers
15 views

Custom permalink structure with categories and custom post types missing top level pages/posts

Having some trouble with an unexpected result here: function features_rewrite_link($post_link, $id = 0) { $post = get_post($id); if ( is_object( $post ) && $post->post_type == '...
1
vote
2answers
120 views

Custom post type - how can I make it a sub-url of another page?

I've created a custom post type "testimonials" -- works fine, except I want the url to be "domain.com/results/testimonials" instead of "domain.com/testimonials" Do I just ...
1
vote
0answers
31 views

Possible to remove taxonomy from permalink if uncategorized?

I'm working on a client's website who requested that the custom search functionality I'm building out provide a number of 'pretty' permalinks that they can use for ad campaigns. The post types I'm ...
0
votes
0answers
13 views

Permalink Duplicating Parent Slug

I'm running into an issue where the slug of the parent page is getting appended to the slug of the child page. The site has 4 levels of page depth, so the permalinks end up looking like this: domain....
0
votes
1answer
18 views

Category permalinks don't work even after flushing

I have created a custom post type (portfolio) and I'm using the built-in Category taxonomy with it. When I view the category archives page, only regular posts are showing under the category, my custom ...
0
votes
0answers
17 views

Change the category permalink structure in online shop

I'm trying to change the scruture permalink but all the tries come to an error page. When I try to use this template: ⦁ Template Automated.net.au/[brand]-products/[sub-category]/[productname] The ...
0
votes
1answer
474 views

Images not loading on webpage, and links to other media give 404 Not Found

Had some recent problems where to start with only homepage text was visible, all other pages/links gave 404 Not Found. Now managed to get pages to function but all images fail to load, plus links to ...
0
votes
1answer
33 views

Woocommerce posts and products links works only once and then get 404 error

Permalink to products and post of my website getting 404 error. after saving the permalink type in Setting -> Permalink page they will work correctly. But if I refresh the links they get 404 error ...
1
vote
1answer
34 views

Permalinks by page/post name returning 404

All my content is currently setup as pages. I want to setup permalinks with page names. I read some posts online that said choosing %postname% path should render the content. But this does not work. ...
0
votes
1answer
175 views

Custom permalink structure for custom post types including multiple taxonomy

The goal is to have a structure like this: example.com/tax_1/tax_2/post_name This code produces the right structure but the post can't be found (404) // Register custom post types function ...
0
votes
1answer
28 views

Function to automatically rename the base category permalink

I need a function to paste in my theme that automatically rename the base category permalink from category to genre after activating the theme, example: http://localhost/category/drama/ to http://...
0
votes
0answers
16 views

How to change permalink of homepage in wordpress?

I'm trying to change the permalink of homepage of my Wordpress site. I imported a theme in a subfolder of my domain. e.g: mydomain.com/folder/.. then I realized that it is misplaced. I move the theme ...
0
votes
0answers
20 views

one url for all pages

Recently I just stocked over something which I can not fix or solve! I like to use a single url like www.mywebsite.com or www.mywebsite.com/something for all my pages. the reason is that I have a ...
1
vote
1answer
400 views

How to get category URL with the slug?

I have a variable that contains the slug of a category. With that slug I want to create a link to the archive page that displays all the posts in that specific category. What is the best or fastest ...
0
votes
1answer
74 views

Set parent for custom post type archive rewrite url

I have 2 custom post types Offices register_post_type('offices', [ 'labels' => [ 'name' => __( 'Offices' ), 'singular_name' => __( '...
1
vote
0answers
15 views

Problem with permalink routing?

I have a post (to keep it simple, "dogs" with content on dogs). The permalink lists my site url and then /dogs. When I edit the post, it is all about dogs. But when I click on the link as ...
1
vote
0answers
11 views

List / Get post redirects

In WordPress, when I change the slug of one of the posts, WordPress generally is able to automatically redirect it. We're using WordPress as a backend for a SPA, and we aren't able to use these ...
0
votes
0answers
26 views

Changing CPT permalink

I have a CPT named rad. I have the following code to change the permalink from "site.com/rad/post" to "site.com/category/subcategory/post". function remove_cpt_slug( $post_link, $...
1
vote
0answers
55 views

Use same slug base for Custom Post Type posts, and multiple taxonomy terms

I have done a lot of digging the past few days, and can come close, but not exactly what I need. I'm trying to alter a custom taxonomy/CPT permalink structure to all use the same slug base: /resources/...
0
votes
1answer
61 views

How to rewrite the beginning and end of the permalink structure in a custom post type?

I've created a custom post type called "dvposts" and cannot get the permalink structure to display exactly as I want. My regular post/page structure is /%postname%/%post_id%/. I would like ...
0
votes
1answer
35 views

Remove custom taxonomy slug from URL

I'm using custom post type with custom taxonomies for my website and currently my URL is as follows: www.website.com/taxonomy_slug/taxonomy_category So an example realworld URL would be: www.website....
0
votes
3answers
154 views

Custom structure permalink preventing 404

I am trying to find out what impact setting a custom stucture prefix in permalinks has on 404's I have a custom structure of: /news-opinion/%postname%/ This is working as expected if you tried to go ...
1
vote
1answer
203 views

Put post ID on the custom post type URL

I want to get this link structure mysite.com/sa/post-slug/post_id/ on my custom post-type. This is the post_type: // ex_article Post type add_action( 'init', 'ex_article_init' ); function ...
0
votes
1answer
150 views

Permalinks on Windows IIS not working and web.config breaks site - does wordpress not support windows server now, if so how?

I have a large wordpress site that I migrated from AWS/Linux to a different host that is Windows Server 2016. I have been developing on wordpress for years but this is my first time back on Windows ...
0
votes
0answers
32 views

How to correct permalinks. I have // in permalinks

I use categories and subcategories. When I use /%category%/%postname%/ for permalink structureit shows only the parent category in url and nothing for subcategory! E.g: www.site.com/category//postname ...
0
votes
1answer
17 views

Is it possible to set up blog categories without changing permalink structure

When our blog was initially set up, the permalink structure used was /blog/%postname%/ We've had it that way for about a year now and have good SEO results. We want to create a press release ...
0
votes
1answer
26 views

Extending page urls without getting a 404

I'm using a shortcode on some of my pages and need to add a gender to the page urls. For example, if the page slug is "/ninjas/", I need to be able to use urls like "/ninjas/female/&...
0
votes
0answers
16 views

I want to change URLs structure of a classified ads site

I want to change URLs structures of my Classified Ads website and want to set as categories based links https://www.dashingworld.com/ad_category/mobiles-and-tablets/ TO For Main and SUb Categories ...
0
votes
0answers
21 views

How to include two disjoint (NO parent--> child relationship) Custom taxonomy in permalink of a Custom post type?

This is a long standing question but i am not sure it has been properly addressed. So let me ask it again and will keep it simple. Background My domain name ---> abhi.dev.cc Custom Post Type ---> ...
1
vote
0answers
24 views

Wordpress Custom Post Type Permalinks dynamic term slugs

I have a custom post type registered called Resource: $args = array( 'public' => true, 'publicly_queryable' => true, 'capability_type' => 'post', 'hierarchical' => false, ...
0
votes
0answers
12 views

How to rewrite Url under specific category in wordpress

I am new in This platform and I have a website on Wordpress and I want to create a blog on this website. My permalink is - example.com /%postname%/ I want to rewrite Url under only this specific ...
0
votes
0answers
15 views

How to make date based custom permalinks?

i want my posts urls be like this: <yyyy:year><mm:month><dd:day><iiii> where iiii is a number that starts from 0001. for example first post url today will be: ~/202006070001/ ...
0
votes
0answers
15 views

Permalink with author name display 404

I wrote a function to add author last name and first name in the permalinks. Like this : http://example.com/custom-post-type-name/last-name-first-name/title-of-the-post My function work fine but ...
1
vote
1answer
13 views

Change URL of posts and also Custom Post Type

Right now I have changed the posts url using the settings -> permalink i.e /blog/%postname%/ I have now added a CPT and using the rewrite 'rewrite' => array( 'slug' => 'custom-posts' ), but the ...
0
votes
0answers
18 views

How to solve 404 permalink structure problem?

I have a 404 problem on internal pages (posts, pages ...) My site is in the following folder structure site1 contains (site2 and site3) site1 is functioning normally, but sites2 and 3 are having the ...
1
vote
1answer
39 views

Use an empty page to build custom plugin output

I've been Googling for an answer to this and have yet to find much of use. I have seen plugins that will say "pick the page for showing X" and "pick the page for showing y". Then if the page is ...
0
votes
0answers
16 views

Add #primary at the end of navlink permalinks on single posts

I'm trying to add #primary at the end of the permalinks to the previous- and next post on all single post pages, to jump past the header directly to <div id="primary"> when going to the previous ...
0
votes
1answer
375 views

Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin

I created a plugin TESTPLUGIN and added it on wordpress admin menu. I can access the plugin from the admin menu just well. The problem I am having is how to link to another file within the plugin. The ...
0
votes
1answer
44 views

Post name permalinks File not found — Mac High Sierra

I have read the instructions on the Wordpress site, and have read some lengthy posts here but nothing specific to this environment Environment: Mac OS X High Sierra PHP v 7.1.33 Apache v 2.4.33 ...
1
vote
1answer
138 views

'No Results Found' on single post for custom post type

I'm using the CPT UI plugin to create a custom post type with a custom taxonomy. I'm finding however that the individual post page shows "No Results Found". I'm using this page slug as the CPT custom ...
0
votes
0answers
20 views

How to force non English url slug share to be decoded when pasted?

Is there any solution to copy and paste a non English letters URL and to see the actual decoded link instead the encoded one? Right now when you copy a link mysite.com/non-english-letters from the ...
0
votes
0answers
21 views

Replacing Text to wp permalink structure

I have a blog with over 500 post, please on the blog I have some links I created using text format in my content i would really need to convert/replace to permalink structure using search and replace ...
0
votes
1answer
149 views

Permalink slug no longer editable when using post_type_link filter

I want to customize the output of the permalink for a custom post type, but I want the permalink to still be editable when editing a post. I'm using the post_type_link filter: add_filter( '...

1
3 4
5
6 7
61