Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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

Wordpress url customization

I want my url structure to looks like- mydomain.com/%articles%/%postname%-%post_ID.html anybody help me? In first image you can see how my permalink structure looks like, after domain name there is ...
0
votes
1answer
16 views

How can i edit all posts slug in bulk keeping WP native redirect?

When i edit a single post slug the old url redirects to the new one automatically. I need to do this in bulk. There is a text that appears on thousands of permalinks and i want to remove it from ...
0
votes
0answers
38 views

Include a page's “category” in its URL

My site is for landing pages, not a blog - so it contains pages, not posts. I want URLs like this: https://www.example.com/shoes/nike-sport-super-red https://www.example.com/shoes/adidas-...
1
vote
0answers
27 views

How to remove specific category from URL in Wordpress

My custom structure permalink is set as shown below and category base is set to . /%category%/%postname%/ My current URL structure is this: http://example.com/aaa/slug http://example.com/bbb/slug ...
0
votes
0answers
20 views

Changed URL Structure, set 301 but rankings dropped -30%

Recently I made a url structure change for a website. From: example.com/2019/11/postname To: example.com/postname/ I used the Redirection Plugin to set a 301 for all old posts, with the following ...
0
votes
0answers
17 views

Multiple permalink structure for the same post

I am using WooCommerce and my client would like to have 2 versions of permalink structures for single product pages as follows: example.com/product-slug/ and example.com/product-category/product-...
1
vote
0answers
12 views

How to change wordpress category list url

Hi i want to change this url adress : https://www.websitename.com/cat/scottish-fold/page/2/ To : https://www.websitename.com/cat/scottish-fold?page=2 How to do that I want to do this because for ...
1
vote
0answers
18 views

is there a way to add the post URL to the results of fselect facet in Facetwp plugin?

I am using fselect (autocomplete search) Facet which is a facet type of the FacetWP plugin to show the titles of a custom post type as a result. what i want to do is to redirect the user to the ...
0
votes
0answers
14 views

How can I make my all post titles appear in the permalink for my website in search results? [on hold]

As you can see my post title don't appear in search results but the category "lessons" even though I have chosen "Post name(simple post)" in permalink settings. I have tried also to play with the ...
0
votes
1answer
14 views

Permalink doesn’t navigate to post (changes only url)

I don’t know why, but I can’t navigate to post by click. I have tried get_permalink() and the_permalink() but changes only url. And i need to see only post that was pushed (alone) after click. Does ...
0
votes
1answer
16 views

“Post name” permalink option making some pages 404 [closed]

I'm having an issue with some of my pages 404ing the the "post name" permalink option selected. If i change it to "plain" the pages suddenly work, but stop working when i switch back. Pages that have ...
0
votes
0answers
11 views

How to quickly fix duplicated term slugs in hierarchical taxonomies?

my problem is that I've imported in wordpress some hundreds of terms of a custom taxonomy, from another system, in 5 languages. I've found out those terms have sometimes duplicated slugs, and they're ...
0
votes
1answer
12 views

Custom Permalink (with category) for Pages

I've been googling about this for last two days. No solution. I am trying to get permalink of pages like this... Domain.com/category/page-name.php There are couple of plugins that allow to assign a ...
1
vote
1answer
22 views

Custom post type template and custom post page not working

I have created custom post type "projects" in functions.php like this: register_post_type('projects', array( 'rewrite' => array('slug' => 'projects'), 'labels' => array( ...
0
votes
1answer
13 views

Show category name in the post URL only for specific categories

Is there a way to show the category name in the URL of a post which is in a specific category? I.e: I have a site which have a blog and two categories, blog and resources; right now this blog have ...
0
votes
0answers
10 views

Special Characters Url return to 404

I've managed to have permalinks with "@" (at sign) for my page with the help of @Andy's code on How to add dot(“.”) in post slug. But unfortunately, after creating post with @ on the url (example....
0
votes
0answers
11 views

Remove author (user) slug (permalink base) for a Multisite

I have a Multisite Wordpress installation in which I want to change the structure of user permalinks by removing the base "/user/" Current: domain.com/user/unsername I want: domain.com/username I ...
0
votes
0answers
11 views

Category url decoding problem, refresh page is 404

I am working on a wordpress v5.2.4 site that has Arabic language and words in URL which is causing an odd issue. I create a category: خطوط إرشاد which is creating a slug url: www.mysite.com/خطوط-...
0
votes
0answers
45 views

Custom Permalink Structure for The Events Calendar

I am trying, programmatically, to alter the permalink structure of events created by The Events Calendar plugin. I already have other posts and pages set-up and don't want to change the permalink ...
0
votes
0answers
55 views

Custom Taxonomy Archive generates 404

I have a custom post type called "artists". Attached to this is a custom taxonomy, genre. Now, URLs /genre/<post slug> works perfectly fine, however the naked taxonomy page /genre/ gives a 404 ...
0
votes
0answers
19 views

How to set the post permalink using the WordPress REST API?

When fetching the posts, I can access the link property which represents the full post link. But when creating a post, what is the way to set that permalink value? Setting the slug does not seem to ...
1
vote
1answer
18 views

Infinite redirects after changing the permalink of a page

I changed the permalink of a page in the WordPress site. It caused to infinitely redirect between the new and old permalink. To test the scenario I changed the permalink several times and now it has ...
0
votes
1answer
10 views

Author URL using wrong domain after using Edit Author Slug

I was trying Edit Author Slug Plugin and after base changes, I figured out that my Author Url is broken. It was https://aditya-aman.com/author/aditya-aman/ but now its https://aditya-aman.com/...
0
votes
0answers
60 views

Custom Post Type with Custom Taxonomy - Permalink issue

Given the situation where: Taxonomy page (taxonomy-x.php): /news/category-name Template page (template-x.php): /news I'm currently using CPT UI - how can (is it even possible?) to have the ...
0
votes
0answers
21 views

Post permalink buttons all going to the first post

I am trying to get 2 buttons, that will display on top of an image, the image link is working fine, however, the buttons on the second post are both going to the first one? I thought just adding <a ...
0
votes
0answers
23 views

WP permalink working, but why content doesn't display

I'm running a wp-blog on LEMP stack, I'm setting permalink fro WP Admin panel to say example.local/blog/%postname% it shows full post name in the address bar, when I click any post, but it doesn't ...
0
votes
2answers
35 views

I have a 404 error on all my pages! What do I do?

I have changed default permalinks into custom structure, and I got 404 error across all of my site.
1
vote
2answers
26 views

NGINX serve Wordpress from sub-path fails with 404, how to fix?

I'd like host review branches for staging, to test and get feedback before publishing to production. I tried to follow some documentation provided online such as the NGINX recipes ( https://www.nginx....
0
votes
1answer
10 views

404 on wordpress multisite Permalink pretty URLs

I installed a fresh Wordpress site with multisite enabled on AWS ec2 ubuntu instance. I followed all the instructions during the setup. My .htaccess looks like below # BEGIN WordPress <IfModule ...
0
votes
1answer
26 views

Why wordpress multisite root site showing blog prefix by force?

I have installed a directory base multisite in the localhost and create two subsites. The URL's are looking like as follows: Root Site: http://localhost/mcqacademy/ Subsite for English: http://...
1
vote
1answer
64 views

Changing URL from /%postname%/%post_id to /%category%/%postname%/%post_id%

I want to add categories to my URL structure. I'm sure this has been covered and I found many resources online to create the redirect code in .htaccess, but when I enter the code it doesn't work. ...
0
votes
0answers
11 views

post id or permalink auto-incrementing number and reset everyday

i wanna have a permalinks like this: *.com/2019/10/02/0001 *.com/2019/10/02/0002 *.com/2019/10/02/0003 ... *.com/2019/10/02/nnnn . and the next they the number should be reset to 0001, and ...
0
votes
0answers
27 views

All files in public_html, Cannot launch WordPress site via wp-admin

my registered URL is casualtyclaimscontainment.com I developed the site on AMPPS using the URL kriswebpg.test I uploaded site to https://dallas124.mysitehosted.com I have tried everything in my ...
0
votes
1answer
19 views

Possible for Category Base and Custom post Type to share the same slug/permalink?

Rebuilding an author/writer website in WordPress. I have a custom post type of books. Working OK. I'd also like my category base to be books. Not working as yet. So a book URL would be like: https:...
0
votes
2answers
139 views

Giving specific category posts its own permalink structure returns 404

i am trying to give a specific category posts it's own permalink. Followed the steps from this topic (Give specific category its own permalink structure) but the posts are giving a 404 error. Cleared ...
0
votes
0answers
15 views

Permalink changes after several minutes after saving post

I once created a script for a website of mine that looks at who (which author) saves the page. Based on this information, a script ensures that the page that this author creates is automatically saved ...
0
votes
1answer
16 views

Does having category name in permalinks affect SEO when having a post in multiple categories?

If I change the permalink structure to the following in the Permalinks settings page in WordPress: www.example.com/%category%/%postname%/ Then I create a post with the slug my-post and add two ...
0
votes
0answers
11 views

wordpress permalinks with product name

I want to ask , how we will display product name with category name at permalinks in wordpress. By making it default and shop base with category it will display categroy name but not product name, how ...
0
votes
0answers
37 views

Permalink Rewrite Rule Issue in CPT

For a custom post type blog in my site, I want to have the following permalink structure: mysite.com/blog/post-slug/post-id I am using the following code in my theme: function blog_links($...
1
vote
2answers
29 views

.htaccess file missing from Wordpress install directory

This is occuring on my local machine, Lubuntu 18.04 with apache2 and Php 7.2.15. Steps tried: Enable hidden files No .htaccess file seen: https://nimb.ws/4YJfDT Switch permalink structure to ...
0
votes
0answers
20 views

Category and Sub-Category permalink structure/404

So i know this has been asked countless times and there are numerous posts about it all over the internet but after extensive trial/error and research i haven't found the proper fix. Maybe one you ...
0
votes
0answers
14 views

Add a prefix to the Wordpress Home directory

I have a code like the following, <?php function link_fn( $url ){ $lang = get_query_var('lang', false); if( $lang !== false ) { $url = $...
0
votes
0answers
23 views

Different Post URL Base for Specific Categories

By default WordPress allows you to edit the permalink structure: Ideally wanting to have most posts as a simple URL such as site/post-name. However a few categories such as events, news, and albums I'...
0
votes
0answers
18 views

How to allow dot(.) in slug for custom pages

For this question, I googled and found 2 results. But what I want to do is allow dots in slugs for some pages only. I found results are showing to add a function to function.php file. But it will ...
1
vote
0answers
22 views

How to check a post exist when the permalink has post id in it?

This is my permalink structure /%post_id%-%postname%/ https://example.com/in/140521-test-post/ https://example.com/us/140524-second-post/ How can I check "test-post" exist or not? I'm using wpml ...
1
vote
0answers
26 views

Permalinks dropping after 3-4 weeks with no changes in theme or plugins

Running a site with custom logins and custom post types, we are finding that the permalinks need reset every 3-4 weeks. The symptom: The site will begin dropping 404 errors and the .com/login is now ...
0
votes
1answer
24 views

Extra url paths as variable

I have this WordPress pretty permalinks structure: https://example.com/house/name (where house define post_type) I want this one url: https://example.com/house/name/2/3 (that works like https://...
0
votes
0answers
42 views

Replacing + sign to - in wp Search Permalink

I have really tried my best but nothing is working out, I want to replace my wp search permalink [spaces] and + to - Example: https://wordpress.stackexchange.com/search/i love you to https://...
0
votes
0answers
47 views

How to setup permalink structure for categories, sub-categories, custom post types and custom taxonomies?

I'm struggling to figure out how to setup the URL structure on a new WordPress. I've tried several combinations of custom (and default) post types, custom (and default) taxonomies, permalink plugins, ...
0
votes
0answers
37 views

WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file

Looking to update my WP Login Flow open source plugin to prevent using rewrite URLs in things like Lost Password, Login, Register, if the rewrite file does not exist on the server -- but need some ...