Linked Questions
45 questions linked to/from A tool to analyze rewrite rules?
75
votes
18
answers
7k
views
WPSE Plugin Repository: The plugins that came out of WP-Answers
Link your WPSE-Plugins
If you answered a question and made a plugin out of your code, than this is your place to share it.
The Idea:
An old comment from @MikeSchinkel during the beta phase where he ...
58
votes
1
answer
69k
views
Need help with add_rewrite_rule
SOLUTION
I've gone with Update 3 and have got it working. What I had misunderstood, was that I believed that a rewrite rule would change designers/?designer=some-designer&bid=9 to /designers/...
24
votes
9
answers
23k
views
Remove taxonomy slug from a custom hierarchical taxonomy permalink
I created a 'forum' taxonomy, using these rules:
register_taxonomy(
'forum',
array('topic'),
array(
'public' => true,
'name' => _a('Forums'),
'singular_name' => _a('Forum'),...
8
votes
1
answer
17k
views
Custom page with variables in url. Nice url with add_rewrite_rule
Using WP3.1
I Have a custom page with a WP_Query and the query gets dynamic variables from the url. And i want safe variables and clean urls.
Example:
carpage/?carmodel=honda&location=...
6
votes
4
answers
17k
views
Including category-base in a post permalink results in 404
I have static front-page and separate page /news/ as the Posts page. I would like to have the single-post URLs like this:
www.example.com/news/categoryname/subcategory/postname/
and for the category ...
11
votes
1
answer
9k
views
Change author base slug for different roles
Is it possible to change the author base slug according to his role? For example, authors get example.com/ninja/%username% and subscribers get example.com/trainee/%username%?
I am thinking of ...
11
votes
1
answer
6k
views
Pretty permalinks for search results with extra query var
I'd like to know how I can rewrite a search URL that also contains an extra query var into a pretty permalink using wp_redirect and the template_redirect hook.
I have taken the code from the Nice ...
14
votes
3
answers
909
views
Performance of my permalink structure?
I have read the discussion on the performance of different permalinks on the wp hackers mailinglist, THIS forum and around Google.
I could however not really deduce if the permalink structure I have ...
5
votes
3
answers
5k
views
Need help with friendly URL's in Wordpress
I'm creating som custom templates in Wordpress and I'm passing some data in the URL's.
Currently my URL looks like this:
http://www.mysite.com/designers/?id=43&name=designer+name
The URL ...
0
votes
1
answer
6k
views
Regex problem in an add_rewrite_rule
I'm working on a category page for a custom post type called articles in WP 3.1, and I'm having some trouble with extracting the page number.
The url: /articles/category/background/
Currently, what ...
8
votes
1
answer
7k
views
How do I set a custom base URL for standard posts?
Currently, permalinks are set to /%postname%/.
I'd like to prefix "blog" before all standard posts.
I'm using several custom post types, each with their own rewrite rules in the setup.
How can I ...
5
votes
6
answers
201
views
Contributing to the community
I have recently found myself with some time on my hands and with no problem of my own, I would like to solve someone's problem.
I'd like to contribute to the WP community how best would I be able to ...
5
votes
1
answer
10k
views
Custom rewrite rules for pages
I'm trying to get WordPress to recognize a URL structure like this:
example.com/parent/page/{id}/{first_name}/{last_name}
The basic ideea is that I need to access the id, first_name and last_name in ...
4
votes
1
answer
3k
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 ...
1
vote
4
answers
6k
views
Redirecting when changing custom post type slugs?
I changed the name of two of my custom post types. The original slugs for them did not properly reflect the post type. So I need to redirect requests for posts beginning with designer_lingerie (the ...
2
votes
1
answer
5k
views
add_rewrite_rule and pagination issue
I've got an issue, writing a correct rewrite rule.
Basically, here are the examples of the url I want :
/myPage/mySuPage
Then the same with pagination
/myPage/mySuPage/page/3
Then, the basic page, ...
3
votes
3
answers
6k
views
Remove Custom Taxonomy Base
I am using custom taxonomies with WordPress 3.0.4
I am wondering if anyone knows how to remove the taxonomy base from the URL?
I have seen plugins that do it for categories and tags, but not for ...
2
votes
2
answers
7k
views
Custom post type archive with pagination?
I have a custom post type called 'projects' (pastebin) and I have a page called Projects set up in my dashboard which is set to display the Projects template. (pastebin)
The problem is when I use ...
2
votes
2
answers
10k
views
The website has resulted in too many redirects (redirect plugin)?
I changed the redirect URL of one page from http://goldstarteachers.com/teachers/jobs to http://goldstarteachers.com/teachers/teaching-jobs-china/. I set up a redirect so that the old URL lead to ...
4
votes
1
answer
3k
views
How Do I add a redirect rule to Wordpress?
Right now, I'm able to dynamically generate js and css, based on my theme options
To do that i set up a query var, that if present redirects to a php file, which then loads itself as a javascript ...
3
votes
1
answer
4k
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 ...
2
votes
1
answer
5k
views
Prettified page URL w/ query var redirects to prettified page URL w/o query var
I have a page created (page ID 235) with a page template that will need to be passed a variable. I would like to pass this variable through the URL. My first attempt was to pass this with a GET ...
3
votes
1
answer
7k
views
Hijacking the URL for filtering
Right, here's the deal. I've got a loop of which displays news posts, these posts can belong to special categories (not normal categories) and I want to be able to filter by them.
If I wasn't too ...
3
votes
2
answers
3k
views
Archive sorting functions by custom fields (front-end)
I want to give the users the ability to sort the posts in the archive by some custom fields that I pre-define.
The end result would be en a tabbed container, and the user will click on the relevant ...
1
vote
1
answer
3k
views
Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
I have been reading dozens of posts and honestly, I have many doubts on how this work. Furthermore, I think that with WP3.1 more issues have been added here because I am having even more problems now ...
5
votes
1
answer
5k
views
Querystring parameter getting lost in rewrite rule
I have successfully added a custom post type and the permalink structure works great. So, for instance, I've got a custom post type books, and the permalink to a book is /books/the-dictionary.
My ...
4
votes
2
answers
2k
views
Page as child in custom post type slug?
I have the following structure:
/projects (archive of cpt projects with template archive-projects.php)
/projects/project-1 (single view of cpt with template single-projects.php)
/projects/downloads (...
0
votes
2
answers
5k
views
How to change permalinks to show categoryname/post-name?
I've placed the string below into my custom permalinks input but it does not appear to have any effect...
/%category%/%postname%/
I'm trying to insure that my post links are in the form of /...
8
votes
3
answers
786
views
Plugin directory "Last Updated" not changed after initial commit?
I released the first version of my Rewrite analyzer plugin with a commit on 2010-05-12. The WordPress.org plugin directory however still displays 2010-11-27 as the "Last Updated" date - this is the ...
0
votes
2
answers
2k
views
Permalink opens attachment instead of page
I recently moved a blog from one host to another and now have a problem with a permalink - rather than opening up a page, it now opens an attachment.
The blog is using WP 3.0.4, running on PHP 5 and ...