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

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

wordpress ignoring search variables

I need a custom path for the search function, but not permalink, because I want to be able to pass in any of the regular wordpress search variables. For example, I'd like to search for the word yes ...
0
votes
0answers
18 views

How to add variable at the end of URL

Regarding category URL rewriting: Current URL : www.example.com/category/croatia/hotel Required URL : www.example.com/croatia/hotel Here the keyword category is default from WordPress. The keyword ...
0
votes
1answer
12 views

Custom Taxonomy and Rewrite URL

I'm fixing some custom templates. There is this custom taxonomies add_action( 'init', 'custom_taxonomies', 0 ); function custom_taxonomies() { register_taxonomy('news_category', 'stfp_news', array( ...
0
votes
0answers
8 views

Rewrite url without flushing the database?

Is it possible to create a rewrite in WP dynamically such that no flushing is needed? i.e. not storing the rewrite in the database? Only defined in my plugin code?
5
votes
2answers
2k views

Creating custom permalink structure for languages

I've written a simple multi-language system, whereby clicking on a flag icon sets a one year cookie containing a two letter language code (e.g. nl, de, etc). I hook into the wp action to read the ...
0
votes
1answer
16 views

404 redirect based on url

I have a link like this: https://www.example.com/bh-job/38/?title=digital-marketing-intelligence-expert When I surf to the page I'm redirected 404 page because the page doesn't exisit. The page ...
3
votes
2answers
505 views

How to change ?lang=cn into /cn/

I'm trying to add languages to my wordpress driven website and i installed xili-languages plugin. Unfortunately it uses lang param to differentiate between languages and i rather have seen something ...
0
votes
2answers
493 views

Rewrite rule shows 404 page

I am new to Wordpress so I don't really know how the rewrite rules should look like. My problem is that I have a custom template in my theme called portfolio-inner.php My rule looks something like ...
1
vote
1answer
612 views

Custom Post Types, URL rewrite on multiple CPTs

Re: Custom post types, taxonomies, and permalinks by @TheDeadMechanic The solution above works perfectly, and rewrite is great, but can you advise on how to rewrite for more than one custom post type ...
0
votes
0answers
17 views

Taxonomy name in the URL [duplicate]

So I have a taxonomy of Clients linked to two custom post types (Press releases & Case Studies). What I want is the URL of a Press Release or Case Study post to have the client name (taxonomy ...
0
votes
2answers
359 views

Remove subfolders from URL

I am having a tough time removing the subfolders from the URL in my WordPress site. Currently, the URL format is: www.mysite.com/subfolder/index.php/category/postname I would like to remove both the ...
0
votes
0answers
13 views

How to not redirect url blog pages to www?

I do not want the url of my blog pages to add the prefix www everytime I reload the page, which is what it's doing right now. How can I solve this problem?
0
votes
1answer
16 views

URL rewrite before template_redirect called

Logic I have a page template at /blog that contains a "public" blog. I have a page template at /members that is members area. If a user enters the URL /members/blog I want to catch this in the ...
1
vote
1answer
19 views

Wordpress Redirecting Non Category Pages /page/nnn to their Canonical URLs

I seemingly to have a strange issue I have found in almost every other Wordpress site. Suppose, you have set your Blog home to a static WP page /myhome. And you have a separate page for blog /blog. ...
0
votes
2answers
655 views

Add rel=canonical to only one page

I'm trying to add the rel="canonical" tag to only one page, the home page. In order to add the tag, I need to add it to the <head> part of the template, in the header.php file. This will add the ...
0
votes
1answer
614 views

Custom url structure - pages under a custom post type

I'm struggling with the structure of my Wordpress site and I was hoping you might be able to give me some advice. The site is for a series of events and the structure is as follows: Gateway ...
1
vote
0answers
20 views

Custom Post Types hierarchy and rewrite

I've been around this problem for 2 days, googling and experimenting with no avail. I have this Custom Post Type name "programas", and a page with the same name. The page "Programas" lists all the ...
0
votes
1answer
35 views

Custom Post Types and Removing Slugs - should we do it?

I've run into issues trying to remove my custom post types slugs and I've read other questions on here from people with the same problem. We don't want that slug in our URL! But the solutions to this ...
0
votes
0answers
14 views

show 404 page for url which contains unexisting post id

I created custom urls rewrite example : domain.com/post_id/image/image_name/ with rewrite rule it shows likes this : Domain.com/125/image/my-car-image/ it work fine but i want to show 404 not ...
0
votes
1answer
1k views

WP Rewrite Rules - Custom post type & taxonomy

I've been beating my head against the wall for a few days trying to figure this out. I have a custom post type and custom taxonomy and I'm trying to get my URL's to work. Here is the URL structure ...
0
votes
2answers
28 views

Custom post type URL

I have a page called "News", and I have created a custom post type for news. In "News" page I need to show all news custom posts and they need to be clickable. "News" page url is ...
0
votes
1answer
18 views

forward/redirect taxonomy archive of term to a page with same name

I have a page called "cars" with child pages for each individual car eg (site.com/cars/ferrari) I have created a taxonomy called 'vehicle' where each term has a car that matches the child page. ...
0
votes
0answers
17 views

Category Archive Permalinks

So my blog has been running well since last time i asked a question here. But now, i've got another question, i'm having problem with the category archives permalinks So my category tree looks like ...
0
votes
0answers
49 views

Add custom parameter to permalinks

I have a WordPress page that I would like to use SEO friendly query parameters with. Let's say this wordpress page is accessible by going to http://www.example.com/test and its short URL is ...
0
votes
2answers
446 views

add_rewrite_rule not working for me

I have the following rewrite tags defined: // ADD REWRITE TAG FOR 'VEHICLE MAKES' add_rewrite_tag('%make%','([^&]+)'); // ADD REWRITE TAG FOR 'BODY STYLES' ...
1
vote
1answer
28 views

Load an url with minimal/no DB queries

What would be an ok way to load a theme template with minimal/no db queries? Another question: is it viable to 'dry' load a non-wordpress template using rewrite rules? So instead of index.php?p=1011 ...
2
votes
1answer
3k views

Passing parameters to a custom page template using clean urls

I am now passing parameters to a custom template in the following format www.example.com/?pageid=12&rid=24&title=this-is-the-title I have created two tables . So I need to fetch data and ...
0
votes
2answers
1k views

add_rewrite_rule and template redirect not working

I have the following pairs: add_rewrite_rule('^questions/ask/?','index.php?pagename=ask','top'); if(is_page('ask')){ $tname = 'add-question.php'; ...
3
votes
1answer
1k views

add_query_vars and add_rewrite_rules

I am looking for some clarity on what add_rewrite_rules does. If I type in, or submit variables from a form, is it supposed to change the query variables to the pretty url? Currently when I type in ...
0
votes
0answers
18 views

“Project” post type to “Page”

I need the user to go to a Page when he clicks on the menu that is managed in "Projects" section (backend). Situation I have a kind of a menu managed in "Projects" section (backend), made with ...
0
votes
0answers
14 views

Can I use the same permalink base for Categories and Posts?

I am migrating our site from another CMS and the way the permalinks were setup with the prevous CMS are like this: posts: /news/%year%/%monthnum%/%day%/%postname%/ categories: ...
0
votes
0answers
11 views

Custom Permalinks with Post Meta Value , other pages return only homepage error

I have a directory site, so i created a post type name "ads" and their post title are phone numbers, but i want the permalinks instead of mysite.com/ads/post_title i want it ...
0
votes
0answers
31 views

How to remove custom post type slug & taxonomy-base from URL in WordPress

I am using woo-commerce I have bellow code to remove the post type "product" slug from url and it works fine. Product url = http://example.com/product/product-name/ to Product url = ...
0
votes
0answers
20 views

How to get additional query parameters after a url rewrite

DISCLAIMER: Wordpress novice here. I'm trying perform a custom rewrite rule - and I believe Wordpress is stripping the additional query values from the rewritten url. example url: ...
1
vote
1answer
22 views

Can I have /blog and /foo and /bar all point to the same blog?

I currently have wordpress installed in its own directory and serving content for URLs beginning with /blog. So all my wordpress content is served from URLs like these: ...
0
votes
1answer
434 views

Change custom post type slug from plugin options

I'd like to give users the option to change a custom post type slug in my plugin. Using this answer, I'm able to hardcode it into a function: Redeclare/Change Slug of a Plugin's Custom Post Type ...
9
votes
3answers
2k views

Override default url for author pages?

So the default url to display a list of posts by a particular author looks like this: http://domain.com/author/{username} I am wondering how to change the 'author' in that url to something else? I ...
0
votes
1answer
72 views

URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”

I have created a custom user meta = shop_name in User Profile and custom post type gallery The default URL of the post is http://localhost/gallery/%gallery% which i have modified to below given URL ...
4
votes
5answers
6k views

Relative URLs and hide /wp-content/themes/

in my header and other sections I would like to use <script src="/incs/js/script.js"></script> While maintaining the default theme folder structure in server as below ...
0
votes
2answers
407 views

Later change of taxonomy slug base not changing permalink

When defining a taxonomy I successfully set the slug base for it as well, all via functions.php. However, any change on the slug’s base (via editing functions.php again) is being recognised, i.e. it ...
1
vote
1answer
434 views

Permalinks for Taxonomy and Custom Post Type

Have the following situation here: Custom post type: 'recipes' Taxonomy for custom post type 'recipes': 'receitas' One of the taxonomies slug: 'receitas-whoopie-pie' The permalink structure MUST be: ...
0
votes
0answers
19 views

Permalinks 404 error with HTTPS host

My new permalinks continue displaying a 404 error on my site even after adding the AllowOverride and Rewrite modules parameters. Here is my default-ssl.conf file : <IfModule mod_ssl.c> ...
0
votes
4answers
523 views

Exclude subcategories from the url

We have a site with categories and subcategories. If anybody navigates to a content belongs to a subcategory the url will have the following form: domain/main-category/sub-category/mycontent/ But we ...
2
votes
1answer
584 views

WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)

I would like to use the WP native login/register/restore password/.. functionality, but display pretty URLs instead of wp-login.php I've been looking at the core code and noticed that most login ...
3
votes
1answer
60 views

Dynamic Endpoints

I have a database table outside WordPress that I need to make endpoints for. I've created a page /cars/ where I plan on using a page template to generate links. I would like for the url to look like ...
0
votes
1answer
20 views

Hide category name in URL

I have this situation myurl.com/catA leads to main wordpress site, and I need to make that myurl.com/catB should leads to specify wordpress category but without showing it in url like ...
0
votes
1answer
22 views

Add ReWrite from Old Pages to Wordpress (remove .php)

I have a WordPress site that has 4 old .php pages left to run as is. My issue is previous there was a rewrite rule to remove the .php from the URL giving it clean URLs. I tried just adding the same ...
0
votes
0answers
26 views

how to use two permalinks for one custom post type

I have a custom post type "article" where posts have a permalink structure (www.mysite.com/article/post-name). I need each post in it to have two different templates according to its permalinks: the ...
0
votes
0answers
13 views

URL rewriting taxonomy term

I'm trying to find solution for the following hours now and i don't know if this is applicable. I have 1 Custom Taxonomy "Years" for Post Type "Post (default)". The taxonomy has 2 Terms: "2014" and ...
0
votes
1answer
34 views

Wordpress rewrite rules not working

I have created a plugin and i have gotten rewrite rules to work using my .htaccess file. I would like to make this work from my plugin instead to keep everything contained from within there. Im ...