The add-rewrite-rule tag has no wiki summary.
0
votes
2answers
94 views
404 Error On Custom Taxonomy Pages 2, 3, etc
I've been reading a bunch of posts about this with no luck so far. I can't seem to figure out what is the problem.
I have the following:
Custom Post Type: Sermons
Custom Taxonomy: Series
My urls ...
2
votes
1answer
369 views
add_query_vars and add_rewrite_rules
I am looking for some clarity on what add_rewrite_rules does. If I type in, or submit variables from a form, is it supposed to change the query variables to the pretty url? Currently when I type in ...
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
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 ...
1
vote
1answer
75 views
Different rewrite rules for taxonomies and cp in multisite?
I´m making a multilingual site with multisite and I`m wondering if you can specify different rewrite rules for taxonomies and custom posts for the different sites, that are using the same theme. Maybe ...
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
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
84 views
Rewrite rule to redirect to a particular filename.php
I'm using the Monkeyman Rewrite Analyzer plugin (http://wordpress.org/extend/plugins/monkeyman-rewrite-analyzer/) I want to write a rule that will be take a URL (that is specified in the user's accnt ...
0
votes
1answer
54 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 ...
2
votes
0answers
40 views
How to change the matches in add_rewrite_rule
One of the examples using add_rewrite_rule function in wordpress is
add_rewrite_rule('^nutrition/([^/]*)/([^/]*)/?','index.php?page_id=12&food=$matches[1]&variety=$matches[2]','top');
I can ...
1
vote
0answers
26 views
How to pass url as a parameter in a add_rewrite_rule
I am building a plugin which relies on passing the url as a GET parameter. Now, I am trying to prettify the links by using rewrite rules but am stuck.
What I have now:
function ...
1
vote
0answers
47 views
Rewriting single post url; add_rewrite_rule problem?
I have to customize single post permalink (the structure of the permalink) if posts have a certain value in a certain custom fields.
I use the filter post_link to change permalink when needed, and ...
1
vote
0answers
37 views
Customise particular RSS permalink
From my old static website, I want to preserve some URLs like the RSS Feed one.
My feed URL is http://traduction.bainslesbains.com/actualite-russe.xml and I want to redirect it to the category feed ...
1
vote
0answers
197 views
query_vars in plugin not working?
I have a problem writing a plugin for wordpress.
First, I register a new query_var and add a new rewrite rule:
function nng_users_query_vars( $vars ) {
array_push( $vars, 'nng_users' );
...
1
vote
0answers
55 views
What add_rewrite_tag()'s RegEx matches against?
I'm trying to figure out wether I can specify the position of the string to match (i.e. immediately after the domain) to reduce the chances of matching something else, but I don't even know what the ...
1
vote
0answers
97 views
Struggling with add_rewrite_rule
I've read this:
Wordpress redirection to get url friendly
That led me to this:
1) wp.tutsplus.com/tutorials/creative-coding/the-rewrite-api-the-basics/
2) ...
1
vote
0answers
85 views
Evaluating a external rewrite rule before internal wordpress rewrite rule
I am been plucking out my hairs since last few days trying to solve this problem:
I want to convert my urls from format
http://example.com/prodsearch/category/tag1-tag2-tag3-tag4
to
...
0
votes
0answers
61 views
permalink and add_rewrite_rule - error 404
I'd like to have comments in a separate page with a dedicated template only for posts in a specific category (slug shops). Example: mysite.com/post-incatshops --> mysite.com/post-incatshops/comment
...
0
votes
0answers
35 views
Adding in Custom Directory/Path in URL Without Effecting Permalinks
After several tries of piecing together different forms of add_rewrite_rule() and .htaccess edits, I have not been able to find a solution that works. I want to add in a custom directory to a ...
0
votes
0answers
31 views
Permalink of Custom Post Type
I am trying to create a custom post type called an 'event' and have it's permalink structure be as follows:
www.domain.com/events/238
where 238 is the post ID. However, when I navigate to the page, ...
0
votes
0answers
42 views
Hierarchical Custom Post Type Permalinks, %postname%, Rewrites, Permastructs, Oh My
First go at programming with WordPress, I am trying to use custom post types (CPT) to organize 'Log' 'Entries' by 'Console'. So it's a one-to-many relationship between Consoles and Logs, and ...
0
votes
0answers
32 views
Complex regex to add_rewrite_rule
I'm making a plugin and I need to get the URL stay that way:
/user/user-name/musics/music-category-slug/page/1
Real example:
/user/mike-yoles/musics/rock/page/1
.
user/ => post_type ( I ...
0
votes
0answers
84 views
add_rewrite_rule custom permalink structure
I'm trying to create a new rewrite rule inside functions.php through I can rewrite URL for specific post
ie: let's imagine there's a category which name is xyz.
This is my code:
function ...