Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"
3
votes
1answer
2k views
URL rewrite rules for multiple taxonomies query
I'm trying to create some pretty URLs for links querying multiple taxonomies. I'm using the "Taxonomy drill-down" plugin, although the main usage is now integrated @ the core it still has some helpful ...
3
votes
2answers
2k views
Change Author Base Slug for different Roles
is it possible to change the author base slug in dependency of the role? For example, authors get example.com/ninja/%username% and subscribers get example.com/trainee/%username% ?
I am thinking of ...
3
votes
1answer
2k views
How to show the same content on multiple URLs?
A client currently has a website set up with three distinct sub-sites (run off a single WordPress install), each with a slightly different theme (same layout, different colour scheme.
I currently ...
3
votes
2answers
156 views
What is the best way to output plugin result in certain url
Knowing that wordpress doesn't follow MVC pattern.
What is the best way in worpress to output plugin's result in a certain url.
lets say I would like to show "hello world" in main area under ...
3
votes
1answer
671 views
Can 'numberposts' be passed in the URL query string?
I'm running into circles trying to set up a simple rewrite rule, and thought I'd run the question by some of the rewrite experts here.
I have a custom post type, "mealplan", and I'm trying to ...
3
votes
3answers
617 views
Changing directory and/or URL structure
I'm curious if its possible (and advisable) to change certain directory names and URL structure via customization by themes or plugins. For example, say I wanted the list of all a user's posts to ...
3
votes
1answer
817 views
Changing the URL Structure of a Paginated Custom Post
I have a custom post type for slideshows that creates a paginated post and each slide is a separate page. The data for each slide is saved in the custom fields and each slide has a title set saved in ...
3
votes
2answers
303 views
Preserving $_GET parameter while using custom Rewrite Rule
This third party add-on plugin for Gravity Forms allows you to edit existing posts via the front end when you embed a form in your chosen template.
All you need to do is append the GET ...
3
votes
2answers
66 views
How to custom change author base without $this->front?
I have a sample code:
function change_author_permalinks() {
global $wp_rewrite;
$wp_rewrite->author_base = 'u';
$wp_rewrite->author_structure = "/" . $wp_rewrite->author_base . ...
3
votes
3answers
768 views
Google is indexing wordpress attachment pages
I have a bit of a problem/issue what is freaking me out a bit. I hope you can help me. If i do site:www.somesitename.com search in Google i see that Google is indexing my attachment pages. I want to ...
3
votes
1answer
2k views
Rewrite rules in .htaccess get overwritten?
I'm not able to make it work by adding custom rewrite rules into functions.php or adding custom permastructures either. I have this code in my .htaccess that is working fine.
# BEGIN WordPress
...
3
votes
3answers
583 views
Issues when rewrite rules collide?
Is it a problem to have a custom taxonomy and a custom post type use the same rewrite structure?
I have a custom taxonomy people and a custom post type people_bio. The idea is that you get a list of ...
3
votes
1answer
148 views
Remove unwanted part of permalink custom structure from CPT url?
My site currently has regular posts (in a section called "Trend Watch"), as well as a Custom Taxonomy (called "Region").
My permalink settings have this Custom Structure:
...
3
votes
1answer
635 views
Multiple endpoints to same page
I'm doing a bit of AB testing, and am looking for a way to point multiple endpoints to the same page in wordpress. My site is using wordpress as it's CMS tool.
http://mysite.com/test/link1
...
3
votes
2answers
545 views
Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
(Moderator's note: Title was "Convert into nice URL a shared custom taxonomy URL with a query string value")
I have a custom taxonomy template: taxonomy-country.php used by two (2) Custom Post Types: ...
3
votes
2answers
1k views
Custom post type taxonomies URL rewrite
What I want to achieve is an online listing catalog with a URL like this:
www.example.com/drawing-tools/brand/type/material/color/
In this example, I have a custom post type named "drawing-tools" ...
3
votes
2answers
85 views
How to modify author base slug with groups and slug to use nice_nickname?
After reading the following suggestions from Jan Fabry regarding URL rewrite and the author slug I took the challenge in combining both solution in one.
Change author base slug for different roles
...
3
votes
1answer
181 views
Add rewrite rule in plugin: with .htaccess in plugin folder or using WordPress functions
I need add a rewrite rule in my plugin, and distribute it with my code. All works fine if I put the rule in the .htaccess in the WordPress root folder, but I need distribute the plugin with my rule.
...
3
votes
1answer
45 views
When to use which plugin output method?
I'm a Drupal dev, getting into Wordpress. So far as I can tell there are a few different methods by which a plugin can output content on to a Wordpress site:
Shortcode
Rewrite API
Widget API
...
3
votes
1answer
142 views
How to create custom URLs for Custom Post Type sub sections?
Not sure how to ask this, because I'm not exactly sure what I'm asking.
I'm looking to use custom URLs (using rewrite rules maybe?) to create 'tabs' for a Custom Post Type. In the past I've used ...
3
votes
1answer
135 views
Removing rules from .htaccess
I'm writing a small plugin that needs to write to .htaccess a simple non_wp_rule and i am doing it like this:
function ci_flush_rules()
{
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
...
3
votes
1answer
85 views
How would I leverage custom Taxonomies in this scenario?
2 Tier research:
I am building a site for a client that specializes in research travel. They offer 2 tiers of research assistance, "Standard" and "Premium". Each of those levels of service have ...
3
votes
1answer
155 views
Sub domain redirection to taxonomy
Hi all I want to use sub domain for my taxonomy like that :
http://taxonomy.domain.com/apple map to http://www.domain.com/taxonomy/apple
I add this to my vhost
RewriteCond %{HTTP_HOST} ...
3
votes
2answers
2k views
URL rewrites and pagination
I must say that I am a complete nooby at Wordpress custom URL rewrites. I have searched for past many days to find a clear explanation of how to determine and write correct pattern for URL rewrites. I ...
3
votes
2answers
321 views
How to use Post Custom Metadata in Post Titles and Post Permalinks
I am very new to WordPress. How can I use post custom metadata in place of Post Titles, and as the Post Permalink? For example, instead of domain.com/the-post-title, the permalink would be ...
3
votes
2answers
358 views
Rewrite custom post type rss feed links
I am looking for a way to rewrite my custom post type feed located at
http://localhost:8888/feed/?post_type=post
to
http://localhost:8888/feed/portfolio
this post suggests using
...
3
votes
1answer
333 views
How do you permanently remove default rewrite rules from the wp_options table?
We have tons of rewrite rules saved in our wp_options table and I'd like to permanently remove any entries that we're not using on our site (such as comment feeds, page attachments, etc.).
What's the ...
3
votes
1answer
487 views
WordPress Network on IIS7/SQL Server - Rewrite Issues
I've just installed a fresh WordPress setup on Windows Server 2008 Web R2 (IIS7) with SQL Server Express and WordPress 3.1.
I completed the install successfully and logged into the admin section to ...
3
votes
1answer
216 views
Custom comments
I'm trying to create a custom comments page with pagination.
I have non-hierarchical custom type "apartments".
It makes urls like:
/apartments/ - for acrhive
/apartments/%id%/ - for post page
...
3
votes
1answer
88 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
222 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
125 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
...
3
votes
4answers
3k views
URL Rewrite + Page + Custom Post Type = Unusual Redirect
Yet another URL rewrite issue :)
The Problem
I have a URL rewrite rule that should work, but against all logic it redirects without passing the query var.
The Juicy Details
The site has a page ...
3
votes
1answer
96 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
144 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
4answers
668 views
rewrite rules and querystring
When I go to the url mysite.com/photos/120 I'm wanting to get the 120 out.
In the PHP I want to be able to grab these "parameters" like the url was mysite.com?page=photos&id=120 or even just ...
2
votes
2answers
584 views
Add .html extension to only one page in my Wordpress site
We had an old site that had html pages in it. One of the pages in that site was linked to from many other sites.
Now we moved to a WordPress site, and we created a page with that name, but of course ...
2
votes
1answer
6k views
How to rewrite URI of custom post type?
The site that I am working on uses the following "pretty" permalink structure:
http://example.com/blog/my-special-post
But for a custom post type my client would like to avoid having a "pretty" ...
2
votes
2answers
249 views
Rewrite the base-url for single posts
I want to append the URL when viewing a single post.
For example when im on a post I want the url to be something like: example.com/mypage/mypage/single-post-article
The default url is ...
2
votes
2answers
304 views
Custom post types - Use post_id in permalink structure
I'm registering my CPT like so:
$args = array(
'labels' => $labels,
'public' => true,
'hierarchical' => false,
'rewrite' => array(
'with_front' => false,
...
2
votes
2answers
2k views
Making a plugin file accessible via url rewrite?
In my WordPress plugin I have a php file that generates some stats about the blog and outputs it as a simple text file. To access WordPress functions I've included this at the top of the file:
...
2
votes
2answers
47 views
Migrating a page to be an article
I've decided, that some second level pages I have, should really be blog articles. I want to copy and paste the title and body to an article and then delete the page (is there a better way of doing ...
2
votes
2answers
548 views
Preventing index.php?category_name=something from redirecting
I'm trying to filter posts in a category by the year of the post's date. I also want to do this without being redirected to the year template so my ideal URL would be ...
2
votes
1answer
538 views
Custom post types - Use post_id in permalink structure when using has_archive => true
I recently asked this question Custom post types - Use post_id in permalink structure and solved it but as I have enabled 'has_archive' => true the solution given no longer works. Let me explain:
...
2
votes
2answers
2k views
Using $_GET variables in the URL?
I need to generate a simple error message on a page by passing a variable through the URL.
The URL is structured as follows:
http://site.com/parent-category/category/?error=pause
I'm sure it's the ...
2
votes
5answers
3k views
Change the Author Slug from Username to Nickname
Hi to the community,
is it possible to change the default username slug to nickname if is available?
By default the url is something like: http://domain.tld/author/(admin) ,
is it possible to ...
2
votes
2answers
544 views
Using WP rather than .htaccess to redirect pages/posts
I run a site with over 100 specific redirects in the htaccess for legacy html files that were subsequently brought into WP. There are also rules for pages within a date range to redirect to the home ...
2
votes
2answers
4k views
Changing the visible url path to css & js files
Does anyone happen to know how I can automatically turn:
http://www.domain-name.com/wp-content/themes/theme-name/css/stylesheeet.css
into
http://www.domain-name.com/css/stylesheet.css
Naturally I ...
2
votes
2answers
53 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
2
votes
2answers
244 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 ...

