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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

post_type_link 404 page not found

I have a little problem for permalink custom post. I want this structure for my custom post: /%taxonomy%/title but I have a page 404 function wpm_custom_post_type_boutique() { register_post_type( '...
0
votes
0answers
7 views

while changing permalink, page redirected you too many times

while changing permalink from plain to any other. every pages in the site shows "domainname.com redirected you too many times"... home page working perfectly. Please give a solution for this problem.
0
votes
0answers
19 views

Targeting specific page or custom link in menu

I am outputting all my pages and custom links with this code: <nav class="site-nav"> <?php $args = array( 'theme_location' => 'primary' ...
0
votes
0answers
18 views

Rewrite post name / post title in the permalink

I have the following permalink structure: http://test.com/people/kids/joe-blogs/ I need to rewrite the post name (joe-bloggs) to a unique ID to protect the kids names - I have the following ...
0
votes
0answers
10 views

Woocommerce product page 404 not found

I don't know what else to try to fix this, i am working on localhost with laragon and i get 404 not found when i go to product link, the url is the same as permalink which i have /%postname%/ and ...
-1
votes
0answers
15 views

Why Do I Have Two Permalinks For This Post

I'm a bit confused by something happening on my site, in the admin-backend section of WordPress, I have two categories selected, a parent and child. I have the Yoast SEO plugin, and the child is set ...
0
votes
1answer
17 views

How to add rewrite rule for product compare page?

I'm trying to create a product compare feature where we can compare three products, Two products must be added while the third is optional. Trying to use the add_rewrite_rule to create a friendly URL ...
1
vote
0answers
27 views

Add parent/child taxonomy to custom post type url

I have seen several cases of one taxonomy being added to a custom post type url, but I have modified that function to include a parent and a child taxonomy term. However, I am getting a 404 when I go ...
0
votes
0answers
24 views

Random URLs like 9GAG [closed]

I'm looking for a plugin for generator a random string (alpha+numbers) for URLs like 9GAG. I found some time ago perfect plugin but I can't find again... I want to add shortcode in permalinks ...
1
vote
1answer
23 views

Making a custom help center page

I am working now on a new WordPress theme and I want to make a help center system to allow users that will buy my theme do add helper articles. So my plan is: 1- Make a normal new page and create ...
-2
votes
0answers
21 views

404 on pages after PHP and Apache update [closed]

I have 2 Wordpress sites that I’ve upgraded to PHP7. One was from 5.4 to 7 and the other was 5.6 to 7. After migrating the WP files and the DB, I get a 404 on on pages and posts. If I change ...
0
votes
0answers
15 views

Would like to customize or remove _wpnonce globally

I see that there's an htaccess rule but I am unsure how to apply it to multiple pages or globally : RewriteRule ^logout/(.*) /wp-login.php?action=logout&_wpnonce=$1 Im using this as a reference ...
3
votes
1answer
77 views

Changing Permalinks to a Custom Permalink causes a 404 Error [no matter what I do]

I've changed my permalinks to a custom one. When I saw my contact page was sitting on [domain]/index.php/contact instead of [domain]/contact this isn't isolated to /contact however. I went and deleted ...
1
vote
2answers
57 views

Why don't WordPress post slugs allow accents?

If you create a post whose title has an accent in it and some other unicode character in it, eg à 漢語 title thing, its slug (permalink) will become a-漢語-title-thing... ie, the à was converted into a ...
0
votes
1answer
11 views

How to disable permalinks to some custom post content?

So, I maintain a site that puts a lot of content in modals that's pulled from custom post types. The issue I'm running into if someone (like one of our team members) goes to where they think a piece ...
2
votes
2answers
39 views

Custom Post Type slug same as page name causing a conflict

I have a Custom Post Type all set up. I would like the slug to be the same as a page name, because all of these CPT's will be queried on that particular page (/team-members). If I set the Custom Post ...
0
votes
0answers
17 views

Wordpress allows URL without parent in permalink structure, changes layout & template file

Today I received an e-mail from a client telling me that the same page was available on two URLs, only with different layouts. At first I thought there might be a simple duplicate post somewhere, but ...
0
votes
0answers
17 views

Wordpress post archive permalink modification, how to add previous page to single.php url

The current url that links to my post loop is home/sub-page/posts, but when you click a single post's permalink, it takes you to home/posts/single.php. How can I make it so that the sub-page is still ...
0
votes
0answers
21 views

Pretty Permalinks issues with pages

For some reason whenever I have pretty permalinks set to anything other than the default value, all pages aside from the home page display the ‘all posts’. I’ve tried calling the cache, disabling ...
0
votes
0answers
15 views

WordPress Categories in URL

I am wondering about this function redirect_guess_404_permalink My permalink structure includes the category name in the URL. I am doing nothing more to the various posts than changing their ...
-2
votes
0answers
25 views

Random numbers at the end of Wordpress permalink URLs causes 404 errors

I use WooCommerce in my webiste. I installed the plugin named "rediraction" to find 404 pages in my website and fix them. In my logs of my plugin I saw that there are a lot of 404 pages that are hit ...
0
votes
0answers
9 views

Permalink Issue: Custom URL results in 404

I'm aware this issue has many question threads but none have been able to fix my specific problem! I've got a apparently common issue - whenever I try and adjust my ugly URLS to nice clean custom ...
0
votes
0answers
13 views

adding title=“” Anchor text to Woocommerce Product links

I have been advised, to help with SEO it is advisable to add Anchor Text titles to the website internal links. I have done this with my custom links when linking between pages. however for the ...
1
vote
0answers
17 views

Files rendering adding “.x95527” before file extension [closed]

I migrate my wordpress website from a godaddy hosting to a vultr vps. I followed this tutorial: https://www.vultr.com/docs/migrate-your-wordpress-site-from-a-shared-host-to-vultr I have the problem ...
1
vote
1answer
12 views

Auto save permalink setting page with the plugin activation

To add my personal content into my own endpoint of woocommerce my account page, I need to click on save in permalink setting page.But I would like to avoid this by auto reload this settings.
0
votes
1answer
17 views

Adding User Info to Permalink of User pages - is it neccessary?

I have a page on my website that is currently accessible through http://domain.com/my-account/. This page also has some children pages that follow the same permalink structure Is there any ...
0
votes
1answer
29 views

WordPress plugin how to run function when button is clicked

I am writing a WP plugin. I have created a button for the user to click in thw WP dashboard. I need to run a function when a user clicks the button, shown with a red arrow. The code snippet for the ...
0
votes
0answers
17 views

WordPress - Permalink custom Structure - 404

I am trying to setup permalinks in wordPress so that URLs looks like this... Main Blog Page www.example.com/blog Single Blog Posts www.example.com/blog/category_name/post_title Category Page www....
1
vote
2answers
20 views

Wordpress archive permalink with leaf category

Wordpress Category Archive permalinks set up with %category% include the full category tree. I want to see only the leaf category in the URL, not the full tree. Example: Wordpress Category: recipes &...
0
votes
0answers
15 views

Paginate links repeating value in links

I would like the pagination of a certain page to look like this: site.com/page-name/page/2/paged2/1 so I used this: <?php global $wp_rewrite, $wp_query_videos; $wp_query->query_vars['paged'] ...
2
votes
0answers
39 views

How to change the page break <!--nextpage--> URL from ../post/2 to …/post/page2/

I am referencing the WP codex here: https://codex.wordpress.org/Styling_Page-Links but cannot find a way to customize the post URL for page break ( ) feature. For exmaple: instead of the traditional ....
2
votes
0answers
20 views

Adding Taxonomy to Permalink Structure “Custom Post Type / Taxonomy / Term” [duplicate]

First post here, just can't seem to wrap this one up, was hoping someone could point me in the right direction. I have a custom post type and taxonomy structure that creates permalinks as "custom post ...
1
vote
0answers
28 views

Problem with dinamic add_rewrite_rule()

today i am trying to make a plugin for wordpress that allow change the url of a post to whatever you want, i am added a new custom field called post_permalink_replace in that custom field the user ...
2
votes
1answer
51 views

Duplicate Category and Page URL loads Category instead of the Page

I have created a Category with the slug service, which has the permalink: https://example.com/service. and a Page with the link: https://example.com/service. In the Category service, there is a post ...
0
votes
0answers
13 views

Wordpress inside wordpress htaccess

I have a wordpress installation on, let's say, /. And also another wordpress installation in /child. Thing is that I need a page from child to have a permalink like it belongs to /. I.e. somesite....
0
votes
1answer
16 views

Change permalink incrementor into pseudo-subdirectory

how I can change permalink from www.mydomain.com/lyrics/title www.mydomain.com/lyrics/title-2 www.mydomain.com/lyrics/title-3 to www.mydomain.com/lyrics/1/title www.mydomain.com/lyrics/2/title ...
0
votes
1answer
31 views

After database migration, posts not showing up in dashboard

Transferring domains, I migrated a WordPress database using the export/import functions in phpmyadmin. Everything worked as intended, until I tried to change permalink appearance in the WP dashboard. ...
0
votes
1answer
15 views

I noticed only on 2 pages I keep getting permalimks changed with added -2 or -3?

I have seen 'some' explanations, but I stil lcannot fix it and it is frustrating. I believe the latest 'time' this happened is just after wordpress auto-updated to 4.9.7 [I thought auto was off! ] ...
0
votes
0answers
21 views

How can I have a page's permalink include my custom post type's slug?

I have a custom post type that has the slug mycpt, so URLs for posts of this custom post type are like www.site.com/mycpt/the-name-of-a-post. What I want to do is create a page (using Pages>Add New) ...
0
votes
1answer
37 views

How do I create a custom permalink structure for a page template

Inside my plugin, I have a page template that I would like it to follow a specific structure. I would like the template to always use the /%postname%/ permalink structure regardless of what the ...
0
votes
2answers
33 views

Add a permalink variable onto custom post type URL after post name slug

I have a custom post type mycpt and I'm trying to allow for a variable to be appended onto the end of the URL right after the post name slug, like this: www.site.com/mycpt/the-name-of-my-post/var-...
0
votes
0answers
57 views

Wordpress not generating .htaccess but tells me that (Permalink structure updated.)

I hope someone can help me. I am configuring my new Centos 7 server with directadmin and ran into the following problem(s); my .htaccess file won't generate after saving permalinks, but says (...
0
votes
2answers
29 views

How to allow slashes in single posts when i click in the edit permalink button

I have a problem, I have this slug: my-site/blog/wordpress-a-style-of-life/ and this other: my-site/blog/best-tips-of-wordpress/ i have to improve SEO editing both permalink like this: my-site/...
0
votes
0answers
20 views

Permalinks/Routing gets corrupted on Theme/Plugin updates

The Wordpress site uses WPML plugin and Divi theme. Posts and categories are translated via WPML. The category base is removed via No Category Base (WPML) plugin. Generally this setup works well but ...
0
votes
1answer
31 views

Every sub page shows Error 404, i have check permalink but still same issues

i have no idea what is the issues with wordpress setup, every subpages is showing Error 404, except main pages, for all your reference i have attached admin panel images to understand the flow, i have ...
0
votes
1answer
26 views

Remove Permalink of certain posts

Is there a way to remove the permalink on specific posts? Ideally there should be a plugin that makes the permalink optional on some posts. I know that there is a private option. But this does not ...
0
votes
0answers
19 views

CPT - Custom Text fields point to new url permalinks

I'm trying to set up a custom post type to be able to have custom textarea fields that I can add the full source of an HTML page to and have it be available to view at a certain url. I don't want them ...
1
vote
2answers
32 views

CSS not loaded when omitting www. part of URL

I have the following website: www.bibaboegifts.be. When giving in the URL https://www.bibaboegifts.be, the CSS is loaded. However, when giving in the URL https://bibaboegifts.be (without the www. ...
1
vote
1answer
20 views

Is it possible to keep all special letters for foreign languages in slug as in title?

Is it possible to keep special letters in slug for foreign languages as in title? When you visit https://de.wikipedia.org/wiki/Oliven%C3%B6l you can see that the url contains a special letter. Is it ...
0
votes
0answers
86 views

Permalinks not working Apache + CentOS 7

I have a running CentOS 7 with Apache 2 mariadb stack with vhosts and Let's Encrypt. I've installed WordPress 4.9.6 on a virtual host using debian style (sites-available -> sites-enabled). My problem ...