Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"
4
votes
1answer
123 views
Permalinks so that one custom post type appears to be a child of another, not working
Currently I have two post types, "products" and "products-data" they are separate post types; however, for all intents and purposes products-data is a child post of products. The relation is ...
3
votes
1answer
83 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
139 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:
...
3
votes
1answer
86 views
How do i change the search permanent links
I have 3 custom searches created using different templates.
The search results page loads different results depending on the referrer:
<?
/* Template Name: Search Results */
$search_refer = ...
3
votes
1answer
212 views
External/non-WP rewrite rules
I have a fairly complex wordpress with multiple sub-directories:
example.com/sub1/
example.com/sub2/
I'm trying to implement some history/bookmark support, and to do that I need the URLS containing ...
3
votes
1answer
121 views
rewrite get parameter with custom post type
I am trying now for a couple days to solve the following Problem:
I have a custom post type called gallery. I need the URL
http://example.com/gallery/FOOBAR
to be parsed like
...
2
votes
1answer
20 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
76 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 ...
2
votes
1answer
61 views
Is it possible to rewrite URLs in this situation?
I am using a fantastic plugin called Query Multiple Taxonomies which provides a widget to "drill down" by category / tag and other custom taxonomies you may have.
The site is livetonom.com.
The ...
2
votes
1answer
510 views
Remove parent slug for child pages
I'm looking for a plugin/custom function that removes the parent slug of a child's page permalink.
Something that automatically changes the permalink for child pages.
Example:
...
1
vote
1answer
61 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 ...
1
vote
1answer
20 views
Multiple URLS per post non-ascii
I am looking for some best practice / practical advise on a particular URL use case. I am finding myself using a lot of non-ASCII characters in my URLs. This doesn't really make it easy for users of ...
1
vote
1answer
64 views
Custom Rewrite Rules
I am developing a plugin, the goal of which is to allow for a bookmark-able, pretty permalink search engine on a single page. To do so, I am using WP's rewrite rules to allow for the ...
1
vote
1answer
226 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 ...
1
vote
1answer
74 views
Disable page access via query vars
I'd like to disable the default WP query vars (p, attachment_id, etc...), and make the pages only accessible by URI Permalinks.
I've taken a list of variables from WordPress Query Vars and created a ...
1
vote
1answer
40 views
Organizing Your Pages
I'm having problems creating sub pages. So far I've followed the proper directions:
Go to a new page, click the "Page Parent" drop-down menu.
Select the
appropriate parent Page from the drop-down ...
1
vote
1answer
179 views
Make post slug have priority over category slug
I have a wordpress site where the category base is stripped from the url.
Now, when a category has a certain slug that's similar to a post slug, the category is shown.
I would like to show the post ...
1
vote
1answer
69 views
Taxonomy in URL
I have a huge problem: I want to have nice URL's on my Homepage. I got a custom post type and taxonomies. Now I want to have a URL like that:
www. mydomain ...
1
vote
1answer
97 views
Get Taxonomy Term Title by it's URL
I have a URL - http://localhost/products/product-name/ and I want to use this URL to retrieve the title Product Name
This is out of loop, so the URL provided is all I have to work from. Product Name ...
1
vote
1answer
117 views
Rewrite post type slug only for child theme
I'm in multisite where some blogs share the same parent theme for maintenance reasons. All my cpts come from that parent theme, but I would really like that, for one of the blogs, it had an URL mask.
...
1
vote
1answer
157 views
Need to add rewrite rule that adds in additional information about the post to url
A have a post type for venues which have the attributes title, state, and suburb. Currently using the default WordPress permalinks I get the following format:
mysite.com/venue/{title}
However, I ...
0
votes
1answer
32 views
Wordpress Rewrites - How can I pass a variable to Custom Post Type?
I'm looking for a wordpress rewrite that will let me pass a query var. I have a custom post type that produces urls like this:
example.com/custom-post-slug/custom-post-title/
my goal is to have
...
0
votes
1answer
41 views
Per Page Permalink Structure for Page Post Type
I am trying to Re-Write Page URL's so that they END with .htm
I was able to do this using...
/* Add .htm extension to Page URL Links */
add_action('init', 'htm_page_permalink', -1);
function ...
0
votes
1answer
32 views
How to change pagination base from slash to query form?
Can this function...
function custom_pagination_base() {
global $wp_rewrite;
$wp_rewrite->pagination_base = 'p';
$wp_rewrite->flush_rules();
}
add_action( 'init', 'custom_pagination_base' );
...
0
votes
1answer
50 views
Custom post type and custom taxonomy archive inaccessible
I've created some custom post type let say:
post_type_1
post_type_2
Those post types are related to each other, every post_type_1 has parent of many post_type_2.
Then I created a custom taxonomy ...
0
votes
1answer
32 views
how rewrite is working in wordpress
I have installed a plugin called marketpress.
And it have a url as http://www.mydomain.com/store/shopping-cart/shipping/
Now i just want to know which php page it refers to.
In my db and found ...
0
votes
1answer
53 views
Need Help With A Rewrite Issue
On the site im getting this
"mysitehere.com/pro/my-everyday/?auth=my%20author%20title"
I would love to have it like
"mysitehere.com/pro/my-everyday/my-author-title"
I have looked around and found ...
0
votes
1answer
151 views
Custom Post Type nest under a normal WordPress Page
EDIT Again, nope it's not impossible, just nasty. Solution below.
Trying very hard to get this working. Have tried numerous suggestions here on stackexchange/overflow
My goals are to simply select ...
0
votes
1answer
24 views
Rewwrite rule for mapping plugin static file
I am thinking to move my static data to Amazon cloudefront and i am able to map all static data with the URL from the cloudefront except Plugins i have installed.
I do not want to use any plugin to ...
0
votes
1answer
28 views
Generate daily archive whenever any post type is added
We have an issue with our date archive in WordPress, where our daily archive (example address www.xxx.com/2013/01/09) is only generated when a post from the default post type is added. Any day where a ...
0
votes
1answer
40 views
Function to rewrite URl in Wordpress
I need to rewrte this URL http://example.com/news/?news_id=2 to http://example.com/news/2 where news is the page and 2 is the news_id
I have added following code in functions.php:
function ...
0
votes
1answer
43 views
URL Redirect in Wordpress
I am facing problem to redirect some url in wordpress. I need to rewrite following URL:
First URL is like this: http://example.com/news/?news=2 where news=2 is the news id and I am getting this id by ...
0
votes
1answer
65 views
Rewrite rules for custom posts types
So I created a new post type 'quote'.
Basically I want to change all quotes URLs to domain.com/quotes/ID since as it as right now (/?quote={xxx}) could get pretty long, and since this post type is ...
0
votes
1answer
36 views
Overwrite URL on blog posts
I would like to overwrite my URL on single blog posts.
At the moment my posts are displaying as www.mydomain.co.uk/post-title, however I would like them to be as
www.mydomain.co.uk/blog/post-title ...
0
votes
1answer
52 views
Rewrite URL variable to custom path
I am passing to my url some variables to display latest posts, most viewed etc.
http://website.com/?r_sortby=highest_rated
I am wondering how to create a custom path for it instead for SEO purpose ...
0
votes
1answer
50 views
Creating a page for custom taxonomy archive
I have a custom taxonomy called 'news'. Inside it I have two categories called 'news-releases' and 'competition-news'.
Going to 'mydomain.com/news/competition-news' gives the expected result and ...
0
votes
1answer
23 views
How can you preserve URLs when moving posts to a custom post type?
I am working on a site where they want to break up the content into custom post types (right now everything is broken up by post categories) but they want to be able to save their URLs to preserve ...
0
votes
1answer
205 views
How to redirect image attachment to its original post
I'm making a slider that is getting images from attachments in the post. I am trying to rewrite the url for the post so that if someone pastes the direct url to the attachment, it'll go the post ...
0
votes
1answer
118 views
Can not log into Multisite - Redirect issue
I am using Multisite 3.5 Beta3 in a folder - so not the root. It was a pre-existing wordpress blog. I have it set to use sub.domains.com not folders domain.com/sub
My folder looks like this:
...
0
votes
1answer
22 views
URL to an image in a post is changing when permalink is set to custom. Can I avoid this?
I have a buy-button image set in all posts on the entire site. When permalink settings are default the URL to that image file is www.mydomain.com/images/buy-button.gif. When permalink settings are ...
0
votes
1answer
49 views
Two Rewrite Rules
I have one folder inside WordPress root folder named links and there is a file called index.php inside this folder. at somewhere else in my WordPress site I do generate links such as ...
0
votes
0answers
82 views
Rewrite and replace url wp-admin/edit.php and wp-admin/post-new.php
everybody
I want to rewrite and replace all url
mydomain.com/wp-admin/edit.php -> mydomain.com/wp-admin/edit/
and
mydomain.com/wp-admin/post-new.php -> mydomain.com/wp-admin/addnewpost/
How i ...
0
votes
0answers
48 views
Add query var to every post permalink
I have to add a variable value myvarvalue to every post permalink. Every post could have it but could also be empty, so it's not necessary they will have.
The permalink should be: ...
0
votes
0answers
33 views
rewrite rules, replicate page for #! vars
my site has only one page and tons of news in small boxes, i load all of this news from a JSON with jquery. Im trying to make the site google friendly so i've checked in google "AJAX content crawled" ...
0
votes
0answers
24 views
Need help creating custom rewrite rule
My goal is to change
http://mysite.com/store/?city=oslo&store=ferner+jacobsen&id=3721
to
http://mysite.com/store/oslo/ferner+jacobsen/3721
@Jan-fabry have given me an extensive explanation ...
0
votes
0answers
40 views
Permalink rewrite to show author's custom post types through author/USERNAME/CPT
I'm trying to hook into the author/NAME/ permalink to allow showing of specific custom post types (CPT).
I'm almost there. Everything works, except paging on CPT request.
e.g. author/USERNAME/CPT/ ...
0
votes
0answers
44 views
Rewrite URL to include custom field
I am using /%category%/%postname%/ permalinks.
Within two custom post types (and only those two), I need to append that URL structure with a third variable which will be from a custom field (provided ...
0
votes
0answers
142 views
How to change the permalink structure of the default post type
This Custom permalink structure only for default posts looked like the perfect answer:
add_action( 'init', 'my_new_default_post_type', 1 );
function my_new_default_post_type() {
...
0
votes
0answers
52 views
How to add a custom permalink to posts that have one specific tag or category?
sorry if the title doesn't explain well what I want... I'll write an example. I have set one Wordpress site with this permalink settings:
/%postname%/
That's what I need for mostly of the posts, but ...
0
votes
0answers
118 views
Different network site slug for each language
I have one wp installation with network activated. Let's say it's on www.example.com
One of the sites in network is called Italy. I need to have italian and english language that work like this:
...
