Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
15 views

Pages with parent pages giving 404 errors

I have 300 pages website. Suddenly all pages with parent pages are giving 404 error. But when i set no parent then page is working fine. Even i changed Permalinks Settings -> Permalinks and choose ...
0
votes
0answers
16 views

Pretty Permalinks with CTP and Taxonomies / Hierarchical

My Site has 2 Custom Post Types with a 2 Taxonomies. One taxonomy is “Location” which is 2 level / hierarchical (Country, City). My goal is to get our Post Types & Taxonomies in a SEO Pretty ...
1
vote
1answer
31 views

SEO Friendly URL on dynamic product page produced via shortcode

I have created a product page in wordpress, /product. This currently takes the id of a product /product/?id=123 The page has a shortcode that then fetches and displays the relevent data e.g. [...
1
vote
1answer
29 views

Rewrite Rule for default post type

I am using two post types into my site: a) Post ( default post type ) b) Program ( Custom Post Type ) I am trying to add '/blog/' string to default post type URL. If I am tying to do it from permalink ...
0
votes
0answers
22 views

Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0

I have some Wordpress blogs and after updating to Wordpress 5.0, I am getting same error behavior on them. Now When I open the URL of some of the posts, I am getting 400 Bad request error and on some ...
0
votes
1answer
8 views

How to experiment with permalink structure on a select number of posts

If I wanted to experiment with a new permalink structure on select posts, would creating a list of 301 redirects be the best route to take? I shouldn’t have to touch that 301 list when I want to flip ...
0
votes
0answers
29 views

How do I change the permalink of a scheduled post so that it can be linked to?

When you create a post of any type (either post or page or custom taxonomy) it gets a permalink that visitors can click on and visit. http://example.com/my_first_blog_post_permalink/ However, if ...
0
votes
0answers
9 views

Add category to curent category filter - link

I want to place a link to a category (cat2) on the page MySite.com/category/cat1/ that takes you to MySite.com/category/cat1+cat2/ But if you already are on MySite.com/category/cat3+cat1/ I want it ...
0
votes
0answers
9 views

Categories hierarchy in url sends to 404

First of all, hope that you are all doing great. I am trying to set permalinks for custom post types as base/category/child-category/postname by using /%category%/%postname% with the help of the ...
0
votes
0answers
11 views

I can't change my page permalink link [closed]

I can't change my page permalink link The link disappear after pressing "ok" If I refresh the browser. It became the first image.
0
votes
0answers
3 views

Wordpress Media Permalink Patterns

Is the any way to change the Media permalink patterns for all future uploads? For instance, if I upload an image titled "Contact", the media permalink will be: example.com/contact I can't for the ...
0
votes
1answer
26 views

404 on internal pages, in all sites in my local server

I have a local Apache server, with module rewrite loaded, all my Wordpress files in this server fail to find internal pages whenever permalinks options are set to something different than simple. ...
0
votes
0answers
29 views

Use Parent Pages for URL Structure without assigning to parent page

I am working on a project where I have different locations and according to those locations, web-pages comes. So there some are pages which have parent assigned and some pages which are common to all ...
0
votes
1answer
24 views

In a multisite, how can I get posts from one site and display their permalinks in another site?

I have a WordPress multisite with one main site and four sub-sites. In a PHP template on my main site, I would like to get the posts from one of the sub-sites and print the permalinks to the page. ...
0
votes
0answers
11 views

wordpress user profile url/slug problem after import

0 down vote favorite I am using a wordpress theme and in this theme there are an import user option. Also I changed user's slug with a plugin that named Edit Author Slug. After I import users by ...
0
votes
1answer
22 views

How to change permalink for pages in WordPress?

My permalink is set to custom structure:/%postname%.php in WordPress. It is fine for posts. But the permalink for pages does not end with .php. If I change the permalink when editing a page, i.e., ...
-1
votes
0answers
14 views

Permalink conflict

I have page "page-slug" and term "page-slug" of some taxonomy which included in custom post type permalinks. I have subpages of this page and i seeking way for keepeng both urls site.com/page-slug/...
0
votes
0answers
9 views

How to stop WP from appending a single dash to the end of my permalinks?

I've seen a lot of questions about WP appending a "-2" to the end of permalinks where a duplicate page exists, but nothing about a single dash (eg, "mywebsite.com/blog-"). We recently updated the site ...
0
votes
2answers
29 views

News post with multiple permalinks? When opened from different page

I’ve got a question. Maybe it’s something existing and I don’t know the name. Or maybe it’s something custom. I’ve got a post type for news. The news posts have categories. These are some examples of ...
0
votes
0answers
13 views

How to add a custom page as menu item “selection”?

Sorry for the confusing title; I do not know how to explain this in one question. I want to add a navigation item that can be added to menus. In other words, I want to write a function that will ...
0
votes
0answers
21 views

Can't change from /%category%/%postname%/ to /%category%/%post_id%/ has no influence

If i change the current permalink structure from www.domain.com/%category%/%postname%/ to www.domain.com/%category%/%post_id%/ the url in the browser is still www.domain.com/mycategory/post-slug. I'...
0
votes
1answer
30 views

Permalink sub-routing catch-all

I have a client side web application which is loaded for two post types: /tutorial and /dashboard. WordPress routing works fine for the individual posts: /tutorial/tutorial-1 and /dashboard/dashboard-...
0
votes
1answer
33 views

Disable “similar permalink” redirect [duplicate]

I have set a post to private on a WordPress multisite so users should be redirected to a 404 page. The permalink of this post is http://local.website.com/en/event. Now WordPress seems to redirect ...
0
votes
1answer
24 views

Problem with get_permalink, to get page content

I want to retrieve the content of a page via ajax. but i have a problem with get_permalink <?php $id = 171; $post = get_post($id); ?> <a class="post-link" rel="" href="<?php ...
0
votes
0answers
28 views

How to disable post_id in URL?

I have set my own permalink like /%category%/%postname%/ however I noticed that posts are still accessible by post_id so www.myblog.com/?p=1 will work and end up in a redirect. I want to disable this, ...
0
votes
1answer
30 views

Dynamic CPT permalink structure based on ACF field value

There are already few questions on this topic but they are not helping my problem. So what I want to achieve is dynamic CPT permalink structure based on the ACF (radio) value. // _cb stands for ...
0
votes
0answers
26 views

how to show custom post type show in single.php

i create post type services when i remove the slug then it would not show singular post but it is not showing post in single.php function na_remove_slug( $post_link, $post, $leavename ) { $...
0
votes
0answers
21 views

Use specific template for custom post type

I am having an issue with one of my CPT's Permalink. Here is how I have my custom post type registered: register_post_type( 'properties', array( 'labels' => array( '...
0
votes
0answers
16 views

How to modify archive pages URLs to include dynamic prefix?

I am building a website in WP where content (news, announcements, events) are grouped by regions (e.g london, nyc, ...; these are custom post types). In all the contents, I have a meta box where I can ...
0
votes
0answers
12 views

Subcategory permalink in a hierarchical way

I have a post whose category is Parent > Sub - Level One > Sub - Level Two and the permalink is http://test.wp_practice.local/parent/sub-level-one/sub-level-two/welcome-to-the-gutenberg-editor. ...
0
votes
0answers
31 views

Why does page for hierarchical taxonomy parent term go 404?

I have a custom taxonomy, "type", which is 'hierarchical' => true,. Terms include: "Industry moves" "Market indicators" "Viewpoints" "Analyst view" "Executive view" "Interview" I have a ...
0
votes
1answer
25 views

Customise Permalink Structure For Custom Post Types

I've installed the Custom Post Types UI plugin and have made a post type and taxonomy. When I click 'add new' to make a new post the slug always defaults to:- https://domain.com/custom-post-type/post-...
2
votes
1answer
98 views

Custom permalink - append taxonomy name and term name at the end of permalink

I have custom post type -> resources custom taxonomy -> resources_type I want custom permalinks where category base will be appended at the end instead of front For example: I add a new ...
0
votes
1answer
20 views

Rename Custom Post Slug using taxonomy

We have a custom posts called "Reviews" and rename the URL based on a taxonomy (manufacturers) selected for the post. For example if the MFG taxonomy called BENQ is selected the URL for the post will ...
0
votes
1answer
14 views

Permalinks not working after Migration – AllowOverride All, htaccess set

I'm at my wits end, I migrated a website onto a different server and after a lot of setting up I finally have it where it works – kinda. The Permalinks are broken and throw errors that the site can't ...
0
votes
1answer
17 views

Missing permalink for custom post type

I have created the CPT, when I add a new post to the CPT the permalink is empty, I have added the picture where I'm getting and stuck up and I'm new to the WordPress. Kindly, can anyone help me to ...
1
vote
1answer
35 views

WordPress custom slug (endpoint) and compare all links

I work on the one i18n function. It will work with subdir. For example: eg.com/hello-world/en For this I'm support EP_ALL for the WP custom endpoints. function lang_add_endpoints(){ ...
0
votes
1answer
54 views

Permalink change redirects by WordPress [duplicate]

Interesting thing I tried on a test site: I switched permalink structure from date/postname to postID/postname. From WordPress Permalinks panel - no plugins, no .htaccess entries, nothing, just ...
0
votes
2answers
50 views

Changing pemalink structure to /%post_id%/%postname%/

I'm currently using permalink structure: /%year%/%monthnum%/%day%/%postname%/ I want to change that to: /%post_id%/%postname%/ I expect it to be: faster (database is sorted by post_id?) shorter ...
0
votes
0answers
12 views

How to use add_rewrite_rule() for multi custom post types for same URL structure

I am developing a project in WordPress where I have 2 custom post types book and movie. The owner of this website wants me to make URL structure like the following: Single book URL will be -> example....
0
votes
0answers
12 views

Archive widget not working for custom structure permalinks

I am using the following Custom Structure for permalinks on my WordPress site: /%day%/%monthnum%/%year%/%postname%/ When I click the "Month Year" link generated by the Archive widget, I get shown a "...
0
votes
1answer
21 views

Change permalink structure with post id

I have a blog news from 1 year with around 1500 articles indexed on Google with this permalink structure (I know it is bad...): /%category%/%postname% (without slash!) Now I would like to change ...
0
votes
1answer
22 views

Link works although page was moved to another location

I am a new to WordPress. Please help me with the following issue. I created page A and set Parent to X, hence its permalink was displayed as "http://websitename/index.php/X/A/". In page B, I ...
0
votes
1answer
40 views

How to allow different authors to use same post slug?

We have a multi-author WordPress site where different authors need the ability to use the same slug (post_name). Right now WordPress will append a -2 to the slug but how can we prevent WordPress from ...
0
votes
1answer
25 views

Custom permalink gives 404 error only in some pages

Some pages of my Wordpress don't work after creating a custom permalink for products URL in my localhost environment. Home page works, but for example /contact page returns 404. If I look at Apache ...
1
vote
1answer
24 views

How can I add dynamic page url in WordPress?

I have a custom post type News. Also I have added page with front-end post edit. At this moment I can edit my news by opening this url: host.com/edit-news/?id=21231 I want to make a page with ...
0
votes
0answers
19 views

Modifying permalink of a custom post type results in 404

I created a new custom post type "cpt_bobcat" and I need to alter its permalink. What I need is quite simple but with the plugin CPT UI it's impossible to get what I want : /{post_type_name}/{...
0
votes
0answers
8 views

Custom Taxonomy Permalinks

I'm looking for a possibilities to implement the following. I have 3 custom taxonomies for Easy Digital Downloads plugin: 1) Types: type 1 type 2 type 3 2) Categories: category 1 category 2 category ...
0
votes
0answers
17 views

WooCommerce product category permalinks

Is there any way to set WooCommerce product category without category-base word(s)? Current category url, www.example.com/product-category/t-shirt. But, I need to set category url like this one, www....
0
votes
0answers
20 views

Check if URI exists or creates 404 error

I have the following problem: I would like to check in PHP, if a certain wordpress URL exists or if it returns a 404 error. Having tested get_page_by_path() I had to notice that this does NOT work ...