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)

4
votes
1answer
222 views

Enforcing canonical URLs with multiple custom post types

I'm working on a project with several custom post types, where one of the post types is naturally (but not actually in the WordPress sense) the 'parent' of the others. For example, say I have a ...
3
votes
1answer
865 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 ...
3
votes
1answer
263 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 ...
2
votes
1answer
267 views

How to get pretty URLs with add_query_arg in permalinks

With add_query_arg() it is nice to add additional parameters to an URL and it is also easy to create a rewrite rule. So far so good. But the problem is the URL replacement done by wordpress. When I ...
2
votes
1answer
112 views

Pagination problem

I have two custom rewrite rules: add_rewrite_rule('foo/bar/?', 'index.php?post_type=foo', 'top'); add_rewrite_rule('foo/bar/([a-z]+)/?', 'index.php?post_type=foo&bar=$matches[1]', 'top'); Which ...
2
votes
1answer
33 views

Is it possible to generate an alternate structure for multi-tag urls?

I know that one can query multiple tags with the + syntax, as in www.example.com?tag=?test+test2+test3 I'm looking for a solution where the URL would be in this format instead: ...
2
votes
1answer
2k 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 ...
2
votes
1answer
221 views

Custom taxonomy on permalink

I have a long time problem and look forward for your help. I have a custom taxonomy of "city" (it is no hierarchical like tags). I just would like my URLs to look like this: ...
2
votes
1answer
173 views

Rewriting URLs in Wordpress

I am trying to solve a rewrite problem but don't fully understand how to read the below code. I believe the event/industry/(.+)/?$' is stating the format I want in my new url after rewritten, which ...
0
votes
0answers
413 views

add_rewrite_rule not working

I'm trying to do some url rewriting. I've picked this example right off the wordpress wiki here: add_rewrite_rule('^nutrition/([^/]*)/([^/]*)/?','index.php?foo=bar','top'); The wiki page says: ...
0
votes
0answers
101 views

WP Multisite URL rewrite static content folder

I have a WP multisite installation on the root folder. one of the sites have a subdomain subdomain.mysite.com in the root folder there is a sub directory called /subdomain-static folder ...
0
votes
0answers
24 views

Custom Post Type rewrite with Custom Taxonomy and Custom Meta!

I have a custom post type called 'photos'. I have a custom taxonomy called 'series'. Each post will have a custom meta item called '_photo_number'. I want my URLs to go something like this: Single ...
0
votes
0answers
56 views

Use of unicode postname when using custom generate_rewrite_rules

I have a custom rewrite rules like.. add_action('generate_rewrite_rules', function ($wp_rewrite) { $wp_rewrite->rules = array('products/(.+?)$' => ...
0
votes
0answers
70 views

rewrite rule for home/index page

I've been struggling for a while already and all of my attempts failed so I have no other choice but to ask for help here... a) I've made a custom post type page_blox whose capability_type => ...
0
votes
0answers
89 views

One WP install, I need to map a custom domain name to each category

I've read other answers but they weren't satisfactory. Multiple blogs, different domain names, one install to rule them all Multiple Domain Names - One WP Install (non-Multisite) - Default Each ...
0
votes
0answers
45 views

Rewrite rule for custom parameter

I'm stuck with rewrite rules regex. I have this kind of link: http://www.xyz.com/page-1_b/page-3_d/page-0_a/box-page-3_d I need to add rewrite rule for this link so that it extracts what's after ...
0
votes
0answers
32 views

Rewrites with options on custom post type

I have a custom post type called 'episodes'. All of my episodes have an audio file associated with them. This file is embedded automatically in the template. Some of my episodes also have a video ...
0
votes
0answers
73 views

Non WP Rewrite Rule to Admin Screen using plugin

I am creating a plugin that uses the administration screen extensively (adapting a rather complex, MVC program to WordPress for Creative Collaboration). I want do use simple URLs so that when a user ...
0
votes
0answers
391 views

add_rewrite_rule and passing variables for custom post types

this is driving me crazy!! Scenario is... Custom post type let's call it "cpt_product" setup with the rewrite "products" Trying to use the add_rewrite_rule to create a friendly URL for meta details ...
0
votes
0answers
33 views

How can I process all requests for a given directory in a URL with my plugin?

I'd like to pass all requests for a given directory using a plugin or template file. For instance, all of the following requests would be sent to the plugin: mysite.com/directory/blah ...
0
votes
0answers
70 views

url rewrite subdomain to multisite

I have a multisite install of WordPress on an Apache (windows server 2008) with one "child" site. So: C:\Apache24\htdocs\wordpress is the physical install location ipaddress/wordpress/childsite is ...
0
votes
0answers
26 views

Post Type Rewrite Custom

Demo for example: my-site.com/shop-virtual/ - Listing all posts of Post type "Products". my-site.com/shop-virtual/products/category - Listing all posts of Category. ...
0
votes
0answers
32 views

Custom Permalink Base

To enable all category, single and archive pages to render the url with a prefix of "news". E.g. www.yourdomain.com/news/category/post-name I set the permalink structure as ...
0
votes
0answers
29 views

Remove the first occurrence of a sub-site slug from URL

I have a multisite install with about 30 sub-sites. I want to know if it's possible to remove the sub-site slug if there are more than two occurrences of it in the URL. For instance: ...
0
votes
0answers
45 views

Help fixing custom post type and taxonomy rewrite rules

I have a custom post type called featured_property and related taxonomy called locations and am having trouble getting the URL structure I want. I'm SO close but having trouble with the top level ...
0
votes
0answers
77 views

add_rewrite_rule() for an unknown parent page

I am trying to get this rewrite rule to work right. What I have is a plugin that creates a page after the user inserts a page name in the settings that I created for the plugin. The users custom page ...
0
votes
0answers
85 views

Conflict in the urls of Taxonomy and Post Type

I have added a Custom Post Type "Review" with this code: // // Review post type related functions. // add_action( 'init', 'ci_create_cpt_review' ); if( !function_exists('ci_create_cpt_review') ): ...
0
votes
0answers
156 views

Error filtering attributes in woocommerce

I have two custom attributes in woocommerce, Brand and Colour If I access the url for a custom attribute like for example: www.myshop.com/branad/nike and then try to apply a layered navigation ...
0
votes
0answers
50 views

How to change blog category, author URL in wordpress

I have create a WordPress page with slug blog. I can easily access the blog par with /blog. Now what I want is to add blog/ in front of all the urls in my blog, like blog/category/first, ...
0
votes
0answers
115 views

Rewrite a specific Post Format to URL slug

I'll cut to the chase. I am using Post Formats on my WordPress 3.6 site, specifically 'Video', which I want to include in the URL slug. I'm pretty well verse in WordPress plugin writing etc, but ...
0
votes
0answers
64 views

How to Replace the Post title with post_ID on the URL for Custom Post Type?

I created a custom post type and also registered taxonomy which is working just fine. Now on the URL it shows something like this: url/cpt/taxonomy/post-title But I want to change the ...
0
votes
0answers
25 views

Stuck with custom URL REWRITE

Hello I'm creating a custom url rewrite structure for my WordPress site. First I had the following code to have url: /objekt/<GID> which loads objekt page and have query var GID. add_action( ...
0
votes
0answers
38 views

Wordpress permalink need taxonomy after postname

I got a problem with wordpress permalink. The site below is using directorypress theme, I need to to show the post url in this format post-name/state/city where country->state->city are in parent ...
0
votes
0answers
98 views

Using www and without www url both for same site

Site URL is lgagro.com.sg; currently, if browsed without www., it redirects to www.lgagor.com.sg. I want to access it with and without www i.e. when I browse it by http://lgagro.com.sg it should work ...
0
votes
0answers
72 views

Filter search result by author and include to meta tags

I need to filter the search results by author. This works fine: domain.com/?s=something&author=5 But how can i filter the posts by author "nickname" or "user_nicename" and maybe rewrite ...
0
votes
0answers
32 views

Custom Post Type Permalink Below Root Directory

I have wordpress installed in the /blog/ directory on my web server, so the WordPress homepage is at, for example http://www.example.com/blog/ I am creating some custom post types for content ...
0
votes
0answers
77 views

How to create single static page extending another URL

I have existing URL game/ninja-cat-and-zombie-dinosaurs/ which is created by rewrite: game/([^/]+)(/[0-9]+)?/?$ It leads to a custom post type (defined by theme Swatch). Now I'd like to have a URL ...
0
votes
0answers
69 views

Use custom clean URLs for a plug in

I've created a plug in that displays a list of items from the database. I need to link from an item to the item description page, however instead of the link looking like: ...
0
votes
0answers
26 views

Help with rewrite rule

I have a probleme with a rewrite rule. On my page, I have a link to : mySite/pubmed/article/23919219 I would like to convert it to http://example.com/index.php?page_id=165&article_id=23919219 ...
0
votes
0answers
127 views

Custom post type & taxonomy just like WP defaults

I've spent days attempting to do a single thing: create a custom post type/taxonomy (cat)/taxonomy(tag) trio that replicates the stock standard WP category/post/tag structure with permalinks of ...
0
votes
0answers
161 views

Index page redirecting to custom post type page

Every time I go to the index page of the website, it redirects me to a single custom post type page. This url: http://example.com/ Redirects you to this url: ...
0
votes
0answers
54 views

Custom Rewrite for Profiles

I'm currently trying to modify my rewrites to allow for an additional URL segment e.g. http://example.com/vendors/username/ by default WP allows for additional numeric segments but everything else ...
0
votes
0answers
124 views

Stop wordpress to redirecting home page if no page found

I don't want to redirect to home page when there is no page or wrong url. I have following in httaccess file # BEGIN WordPress RewriteRule ^sitemap.xml sitemap-%{SERVER_NAME}.xml [L] RewriteRule ...
0
votes
0answers
633 views

How to rewrite AJAX call URL to admin-ajax.php to match REST style URLs

Let's say I have an AJAX callback setup using admin-ajax.php that fetches WordPress posts when query parameters are passed in the URL. A typical URL for an AJAX call using the GET method would look ...
0
votes
0answers
123 views

Ignoring slug capitalization on rewrite rule for custom post type archive page

I'm declaring a custom post type 'games' with a rewrite rule: 'rewrite' => array('slug' => 'Games','with_front' => false), So the resulting url for the games archive is ...
0
votes
0answers
97 views

Multiple Taxonomy in URL/Query - No Custom Post Type

I have Volume and Issue as separate Taxonomies and all Posts have a Volume and Issue assigned. These posts are of post_type=post, not a custom post type. I linked to and queried for the Volume ...
0
votes
0answers
75 views

Add parameter to URL

I have in my functions.php this function: // rewrite the url function my_rewrites_init(){ add_rewrite_rule( 'demo/([0-9]+)/?$', 'index.php?pagename=demo&p_id=$matches[1]', ...
0
votes
0answers
169 views

uploading Attachments with permalinks based on parent file structure

We are rebuilding a public-interest site centered on civil rights research & document archives. The links in years of published info posts must be preserved in WordPress, and future uploaded ...
0
votes
0answers
913 views

Pretty URLs for lost password functionality

I have WP installed in sub-directory and I'd like to have pretty URLs for the lost password functionality. So, something like this, from WP native -> pretty URL: Initial and any errors lost password ...
0
votes
0answers
59 views

Wordpress adding in site URL to header links

A little information: I am developing a one page theme that uses posts as sections on the main page. I have created code that allows users to add a menu item in the post page from a meta box when they ...