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)

1
vote
1answer
150 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 ...
2
votes
2answers
3k views

How to modify URL structures in custom post types and taxonomies or terms

I am well aware that there are several posts covering the topic of customizing the permalink URL structure of custom post types, custom taxonomies, and taxonomy terms. However, none of them are real ...
1
vote
0answers
174 views

Wordpress rewrite rule not working

www.xyz.com/place?id=(variable) which I would like in the format: www.xyz.com/places/(variable) www.xyz.com/tags?id=(variable) which I would like in the format: www.xyz.com/type/(variable) ...
0
votes
1answer
108 views

Rename page URL

I have the following URL structure: http://localhost/wordpress/gallery?id=331 id specifies the id of the post. gallery is a normal page inside which I am accessing the id of the post and fetching ...
-1
votes
1answer
169 views

Creating complex URLs with Wordpress permalink structure

I'm trying to self-educate so I can have a more informed conversation for a WP site development spec I'm trying to create. Grateful for any answers to what I would like to accomplish. I want to ...
1
vote
0answers
116 views

Disable date based archives for all categories except one

I want to remove all date base archive url permalinks (url_rewrites) from my site, excluding for only 1 category. How can i do that. For example: www.example.com/category_1/2012/ -> 404 error ...
2
votes
2answers
288 views

Remove Author Slug & Replace With Username

I reviewed all related questions but none tackle this exactly so I'm posting the question in hopes the pro's know how to handle this. I would like to change the author slug to remove the term /author/ ...
0
votes
1answer
495 views

Using custom url parameters in a page

Im trying to create a custom image galleri that retrieves images from posts as can be seen here http://kurdaktuellt.se/galleri/ problem in hand is that I'm trying to make the url somewhat user ...
3
votes
1answer
217 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 ...
4
votes
1answer
552 views

Custom post types with their own permalink structure

My main posts are news items (category "news"). Therefore, I used global URI writing in the following format: /year/month/post-name I also have posts that contain photo albums (category "photo") but ...
10
votes
4answers
5k views

Remove custom post type slug from URL

Haven't found a useful answer for this. I am aware of the conflict issues and all the problems this may cause, I'm curious if it's POSSIBLE not SUGGESTED. This will require WP rewrites, I know this ...
0
votes
1answer
335 views

How to make wordpress use www.example.com/blog/wp-includes/ instead of www.example.com/wp-includes/?

I have WordPress at address http://www.example.com/blog/, now I want it to be accessible as http://www.example.com/ without moving wordpress to root directory. I have made appropriate .htaccess ...
1
vote
1answer
607 views

Disable wordpress pagination URL rewrite for specific page

I'm hoping somebody could help me out with the following issue. I have a wordpress page: http://www.howdesign.com/design-jobs and there is a list of jobs coming from behance.net via JavaScript. When ...
0
votes
1answer
75 views

region selection

I'm developing a website, where the visitor has to choose it's region Europe / Asia, according to this choice the menu should be different, (most pages are the same). When I would develop this in ...
2
votes
2answers
56 views

Rewrite category wordpress

Is it possible to rewrite only one category ? I have a category "Photos" and just for this category. I just want to rewrite it from /category/photos to /photos
0
votes
1answer
534 views

Multiple parameters in a custom post type url rewrite

I have a custom post type called venues currently they display through the url format: http://mywebsite.com/venue/{venue-name} I would like to have the format: ...
1
vote
1answer
396 views

Force a specific template based on the URL

When a user browses to a URI beginning with "/forums", WordPress should call a specified template. For example, all of these URLs: mysite.com/forums mysite.com/forums/questions ...
0
votes
1answer
79 views

Wordpress post-type create url rewriting

i create a new post-type in wordpress. The new post-type is called work. I want to customize the link when the user click "details button". The link is work/post_id/postname I have a trouble to ...
1
vote
0answers
33 views

Permalinks only for posts

I would like to use wordpress permalinks but only for posts. Is there any way to do that? I don't care about seo, my website is about niche subject so it already has first position in google. Also ...
0
votes
2answers
3k views

How to disable the default WordPress redirect to non-www URLs?

I am trying to redirect all non-www to www URLs in my WordPress MultiSite install. I am using a simple .htaccess rule like this: # Redirect non-www to www: RewriteCond %{HTTP_HOST} !^www\. [NC] ...
0
votes
1answer
385 views

wp_sanitize_redirect strips out @ signs (even from parameters) — why?

In my wordpress site I have a hack that looks at the uri and does a redirect to a subdomain. The problem is wp_redirect calls wp_sanitize_redirect which will strip out @ signs, so when a user tries to ...
-1
votes
1answer
30 views

Permalinks, how to show them in post

So I created page www.example.com/NEWS/ and I want all the posts from that category to show up there. It does that, but when I add a post (NEWS), the link is : www.example.com/newpost/ I want ...
1
vote
1answer
311 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. ...
0
votes
1answer
283 views

custom naming of search permalink /search/

I found this snippet online … function search_url_rewrite_rule() { if ( is_search() && !empty($_GET['s'])) { wp_redirect(home_url("/search/") . urlencode(get_query_var('s'))); ...
0
votes
1answer
271 views

Redirect old query string urls to new SEO urls

I had urls like example.com/?area=new-york. area is a custom taxonomy. I had to change the urls to example.com/new-york. I want to do a 301 to new urls if previous urls are accessed. and I want Google ...
1
vote
0answers
49 views

How do I list terms of a custom taxonomy at i.e. domain.com/brands/

I have a custom post type 'products' with custom taxonomy 'brands'. My URL structure should be: domain.com/brands - should list the brands domain.com/brands/brand/ - should list products of the ...
0
votes
2answers
3k views

Two “.htaccess” Files Located in Different Directories?

I found two ".htaccess" files, one is located in '/httpdocs/.htaccess', another one is located in '/httpdocs/wordpress/.htaccess', the content is different, is it normal? The Wordpress was installed ...
-1
votes
2answers
248 views

Please Check this '.htaccess' File

I just found my '.htaccess' file has the same lines of code repeated twice as below, maybe some plugins changed it, is it incorrect? Should I remove the repeated one? Thanks!! <IfModule ...
0
votes
2answers
361 views

Custom Post Type Base URL

Is it possible to not use the loop for the base URL of a custom post type. So for instance if my custom post type is 'directory'. I don't want http://www.mysite.com/directory/ to land at the loop ...
2
votes
2answers
1k views

Using custom/dynamic “slug” for a page

I have a custom page which uses a template called "Stores" http://example.com/stores/. This page will have a list of states and/or companies as categories. For this system I have a custom post type ...
0
votes
1answer
225 views

Remove url parameter using wordpress

how can I remove a parameter from a URL in wordpress? for example if I have the following URL: http://domain.com/?cat=4&paged=2&order=DESC How can I remove paged from it?
0
votes
1answer
45 views

URL rewrite( I think? )

I have a URL: www.example.com/my_cool_pancakes. When a User goes to this URL, I would like the URL to instead be www.example.com/pancakes. How do I do this? Is this URL rewriting? I have studied URL ...
0
votes
1answer
64 views

Custom Taxonomy in Permalink from post type

I am using custom post types and custom taxonomies for that post type. This snippet currently sets the permalinks for the post type: 'rewrite' => array('slug' => 'myrewritebase'), I am ...
1
vote
1answer
242 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
2answers
1k views

How to handle paging/pagination with a custom permalink?

I hope I can explain this properly: I'm working on a project involving multiple post types and custom permalinks. I have a post type for TV/movie series/franchise and a separate post type for ...
1
vote
3answers
2k views

How can I Rewrite a 'page' URL based on query string parameters?

I have the following page which contains a single post and a number of comments: http://mysite.com/tips When a user posts a comment, I add meta-data to it so I can filter comments by using these ...
1
vote
0answers
67 views

Custom taxonomy and post type with same slug

I'm using the plugin "types" to register the custom taxonomy and post types, and got 404 when using the same slug for them to display them hierarchy, like this: site.com/tax //taxonomy archive ...
3
votes
1answer
731 views

Adding meta values to permalink

I have publications and I want to simply add year and month to the permalink. Currently the year and month of publication is added to the post as a meta value. I've set up publications as a custom ...
0
votes
1answer
202 views

database not responding on localhost

I'm trying to work on an existing WordPress site on my Mac using MAMP. I've setup a new database using phpMyAdmin and imported the tables from the backup of the online version. I pasted this into ...
1
vote
0answers
305 views

htaccess rewrite, adding segment to url

Im not that good with htaccess files & regexes, and i'm trying to add a segment to a certain url. I'm building a website for a festival and we have a comon structure for the artists being: line-up ...
0
votes
1answer
128 views

Can I exclude a single URL from a rewrite plugin?

I am working on an imported .html site that has been using the .html on pages plugin to rewrite the URLs for inbound link purposes. Now I am trying to integrate it with a subdomain blog ...
1
vote
3answers
603 views

Many to Many Taxonomies or rewrite rules?

Im developing a theme for article directory and i would like to link some way taxonomies to taxonomies. I had a custom post type called "company" with 2 taxnomies Taxonomy #1 is category with ...
1
vote
0answers
65 views

URL rewrite of independent plugin?

I'm currently developing a more complex plugin for WP which can't be hooked up to the WP-API itself (Custom Post Types doesn't fit my requirements). Of course I use the API alot, because the data is ...
0
votes
1answer
57 views

What approach should I take for this URL structure?

For a website I am developing I have to create two pages with listings of courses. The first page is a "Trainings" page while the other page is "Coaching". I would like to use a single custom post ...
1
vote
0answers
325 views

How to display only the parent category in the permalink

How it is possible to display only the parent category of the post. It contains two sub categories and I want to eliminate it. Example: myblog.com/parent_category/post_name This is only what I want. ...
1
vote
4answers
3k views

Wordpress not respecting template hierarchy (fetches index.php instead of single.php or page.php)

I've encountered a strange error while developing a custom theme. After finishing editing the template for a custom post type single view, I passed onto working at the template files for pages and I ...
0
votes
1answer
2k views

how to create several url aliases for a page

on the root page of a WordPress site we have a custom page template, that also handles some forms and dynamically changes part of the content. Something like this: <form action="" ...
1
vote
1answer
2k views

wp_list_categories() - current-cat class also inside posts?

I wrote my own function to list all taxonomy terms of a certain taxonomy … function wr_list_taxonomy($taxonomy, $orderby, $hierarchical) { $show_count = 0; $pad_counts = 0; $title ...
1
vote
1answer
130 views

add_rewrite_rule behaving strangely

I'm customizing another plugin by changing the rewrite rule, from: add_rewrite_rule('^api/auth/([0-9]+)?/?','index.php?__api=1&uid=$matches[1]','top'); to: ...
1
vote
1answer
372 views

Rewrite rule for a query string

I have a taxonomy search form and the link output is http://localhost/wp/?cityid=16 But i want it to be rewrited as http://localhost/wp/cityid/16 .htaccess # BEGIN WordPress <IfModule ...