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.

Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"

0
votes
0answers
12 views

WordPress Rewrite Rule to EITHER Match 1 or 2 Taxonomies when adding to URL

I have a custom post type residential using a custom taxonomy residential_taxonomies and I am adding the taxonomy term(s) and the post type name to the url. It works fine if there are always a parent ...
0
votes
0answers
16 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
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 ...
2
votes
1answer
44 views

Rewrite WordPress Custom URL

I have a custom WordPress url which is generated by ID. I have to rewrite this url https://example.com/account/customer-bookings/?view-booking=4 to https://example.com/account/customer-bookings/view-...
1
vote
1answer
23 views

Add rewrite rule to call front-page.php?

I am trying to create a multilanguage website. And I have set my home page to a static page in my WP admin area. This home page ID is 2 and it calls front-page.php template when I am on the home page ...
0
votes
2answers
23 views

Two sets of url one content?

How can I configure to have two sets of URL that actually using the same content? For example: (set 1) samplesite.com samplesite.com/about/ samplesite.com/contact/ samplesite.com/projects/ (set 2) ...
0
votes
2answers
43 views

Custom Post Type canonical link / pagination redirecting to root

I have inherited an existing site and have recently been asked to make some changes. They have 'renamed' the default post as 'latest-news' using this 'my_new_default_post_type': <?php add_action(...
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 ...
0
votes
1answer
13 views

Fresh install redirects to www, breaking page loads

I set up a new Wordpress site, wanderandponder.com, on DigitalOcean yesterday. It was on a droplet that also ran several other Wordpress sites, without conflict. However, when accessing the domain, it ...
0
votes
0answers
16 views

Virutual generated url's, based on content CPT

I'm currently developing a website with different locations (addresses). I created a Custom Post type (locations), and the customer can add different options to this CPT like reviews, images, forms ...
-1
votes
1answer
41 views

How to create User friendly URL in WordPress?

I need to create a custom URL for all users to view user details. My user information page URL is: https://www.example.com/author/test_user I need to create a URL like this: https://www.example.com/...
-1
votes
1answer
25 views

How to implement custom URL handler to access JS modal content? [closed]

I maintain a wordpress site that is javascript heavy and includes a lot of content in modals created with the the Tingle Modal library. The site is designed as a single-column site for the main page, ...
0
votes
0answers
13 views

Perfect SEO Url Plugin Issues

I have the Perfect SEO Url Plugin install on both our staging and live sites - same versions (the latest) of WP, Woo and the most recent version of Perfect SEO URL on STAGING and the previous version ...
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
12 views

Custom post type single post to url rewrite base on meta query

can someone help me writing rewrite queries. I have a post type called chef-list, and it has a meta key chef-type meta values for chef-type are 'restaurant', 'host', etc... What I wanted to happen ...
0
votes
1answer
18 views

URL rewrite with external JSON query

I wrote a plugin that can fetch data from an external JSON source and displays a very few details in a list. Each item is clickable to be displayed with more details on a specific template. To do this,...
0
votes
0answers
26 views

Rewrite URL of Specific Post of Custom Type

I'm attempting to implement a rule for a single instance of a post (custom) so that instead of it appearing at mysite.com/post-type/post-title it becomes simply mysite.com/about. I don't want a rule ...
1
vote
0answers
21 views

Custom post URL 404 error

I have custom post type and custom taxonomy. Categories works well but posts give me 404. I dont know why. It worked before I define URL for hiearchical categories. Can anybody help me? Main fragments ...
1
vote
0answers
43 views

Custom rewrite causes 404 on pagination

I have custom rewrite rules in place so that the posts page URL can be /blog/ and all posts have the URL structure /blog/post-title-here/, this works great, however I am getting a 404 error on the /...
-3
votes
1answer
41 views

My WordPress website had drooped [closed]

i had changed the URL of my website then i can't access it.How i can return it the message appear "this site can't be reach" after change the URL
1
vote
1answer
22 views

Programmatically rewriting slug through functions.php but returns 404

I wanted to change the slug of a certain post type (in this case, article) into whatever a certain value in its custom field. I went to functions.php and put this code. function na_remove_slug( $...
0
votes
0answers
15 views

Param causing 404

I just moved over from blogger and which added ?m=1 and ?m=0 params on a lot of urls, and they are currently saved on a lot of social media, bookmarks, etc. All requests coming in with m=x in the ...
2
votes
1answer
29 views

Difficulty with rewrite rules

I can't work out how to combine a rewrite rule and a custom query var. I have created a custom 'edition' template, which calls an external API to populate a table with details of a particular book. ...
0
votes
0answers
13 views

Wordpress rewrite rule remove duplicates

I have a multiple custom post types, one of them being countries and another being activities. I made some URL rewriting so as to change to url to country/activity. It works but now I have the old url ...
1
vote
1answer
46 views

How to do Basic URL Rewrite Without Redirecting

If I use the simple code below: function my_custom_rewrite_rules() { add_rewrite_rule( '^rewriteme$', 'index.php?page_id=1', 'top' ); } add_action('init', '...
0
votes
1answer
23 views

Add_rewrite_rule doesn't add custom url in plugin

I'm trying to add a couple of custom urls in my plugin. However, it keeps showing 404 Not Found when I access them. I'm not sure what I've done wrong here. Can somebody show me to the right ...
0
votes
0answers
24 views

Using meta_key & meta_value in add_rewrite_rule

as a plus to my question here: Multiple Permalinks for custom post type post I have an additional question. I make a new question because the old one is answered correctly. My Code is the following: ...
0
votes
1answer
21 views

Multiple Permalinks for custom post type post

is there a way to have multiple permalinks for a custom post type post? For example: The normal permalink url is called: https://www.example.com/test-subject/test-title I also want the post is ...
0
votes
1answer
18 views

Create custom url which executes code (not render render a Wordpress entity)?

I am looking to be able to create a url, which when matched will execute some PHP code and output the result. Can this be done? I'm familiar with rewrite_rules_array, which lets you create custom url ...
0
votes
1answer
5 views

Display categorised url

I visited Add custom directory in URL. The whole site will have that setting. I want some pages under SOMETHING1 and some pages under SOMETHING2. How can it be done?
1
vote
0answers
16 views

custom rewrite rule help! Custom rewrite rules not applying to custom post type

I'm trying to setup custom rewrite rules and display custom fields the url. I have set it up correctly for the post type 'things to do' with the custom field is displaying. However, when I try adding '...
0
votes
0answers
9 views

Incorrect custom rewrite rules

I have a page setup with the permalink of mydomain.com/events which uses a page template. This page show all my events pulled in from an external source (so can't be a custom post type). I've then ...
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
15 views

Strange behavior on rewrite_rules

I'm having a strange problem that I'm trying to solve since yesterday. I have a website that has a page called Pesquisa e Extensão. 1 month ago the routes Projetos de Extensão e Grupos de Pesquisa, ...
0
votes
1answer
29 views

Rewrite Url using .htaccess or hook

I have custom template and in that custom template I'm filtering data according to dropdown. I'm using GET method for filter ths data. If browser hit this url :- http://localhost/about-fruad-new/...
0
votes
0answers
32 views

How can I use same slug for multiple taxonomies?

I have 3 custom taxonomies for one custom post. For example my custom post name 'project' and three taxonomies are 1. Language and tolls 2. Budgets 3. Locations So we need url for different ...
0
votes
0answers
28 views

How to get this URL structure for a custom post type in WordPress?

I'm going to have couple services, suburb and sub services for a WordPress website using custom post types. I'm trying not to use 3rd-party plugins if possible (if there is a great one which can ...
0
votes
1answer
26 views

Custom Rewrite Rule for Custom Post Type with URL Param

I am trying to create a custom rewrite rule for a custom post type where This: http://test.loc/products/directory/?c=some-value Should become this: http://test.loc/products/directory/some-value ...
1
vote
0answers
46 views

How do I change the custom taxonomy slug to be the same as the custom post type slug?

I am creating a WordPress site with a Products page, and I'm using a Custom Post Type to create the products to display under this page. Here is a sample of the product structure I have created: ...
0
votes
0answers
24 views

Redirect old permalink to new permalink created with generate_rewrite_rules

On my permalinks settings page I have the following permalink structure defined: "/%year%/%monthnum%/%day%/%postname%/". This works fine for most posts. But I want to have a custom permalink structure ...
1
vote
1answer
17 views

URL rewrite add author as base

Im trying to get an author as slug for my designers website. I will give a example below of what im trying to do: I have a designer named "Designer A" with nicename "designer-a". I have an art object ...
0
votes
0answers
24 views

Rewrite CPT permalinks and include WPML language

In my website I am using WPML for translations. So my website's main language is English, and I am rewrite the permalinks of my cpt (artikelen) to website.com/postname/post-id. This works perfectly ...
0
votes
0answers
17 views

Need help to set up a custom rewrite rule for a custom post type

I need help to set up a custom rewrite rule for a custom post type. The actual website URL structure can be any of the following links: https://website.com/android/post-name/?query=string1 https://...
1
vote
1answer
20 views

Wordpress custom post type permalink: website.com/post-name/post-id

I am trying to build a custom permalink in wordpress for my custom post type artikelen (exact slug). I found code online and it seems to do the work with transforming the links with a custom structure ...
0
votes
0answers
38 views

WordPress + Polylang + NGINX == 404 errors

I have a WordPress site set up with Polylang. Normal posts get translated and shown fine. But Pages all return 404 when trying to access them via their "pretty urls". Accessing them via query string ...
0
votes
1answer
23 views

Dynamic Content w/ geolocation in WP?

I'm really just looking for ideas and guidance while foraging for memory processing in the WordPress CMS Divi Structure. My company is in need of a good ContentPlaceholder solution. True to the MVC ...
1
vote
2answers
31 views

Permalinks for CPT breaks permalinks to pages

I have a CPT that I would like to have the 'root'-permalinks: So for the page: 'Foo Bar' I would like that to have the URL: https://example.org/foo-bar I've found out that I achieve this by ...
2
votes
2answers
222 views

Make permalinks based on an ACF-field

This is both a question on 'how to do this', as well as 'should I do this'. I have the ACF-heavy site, where I would like to make the permalinks based on one of the ACF-fields (let's call it foo). ...
1
vote
0answers
17 views

Share parent path between Custom Post Types and Pages?

Here's my situation: I have a custom post type I created called "professions" with three professions ("military", "firefighters", "law-enforcement"). I created a page single-professions.php to use ...