The rewrite-tag tag has no wiki summary.
0
votes
0answers
51 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
1answer
43 views
Taxonomy Url with Custom post type prefix re-write rule
I have a taxonomy called Section and a Custom post type called Developments.
What i need to achieve is a permalink on the taxonomy with custom post type prefixed: e.g:
custom post type: development ...
0
votes
2answers
57 views
Redirect taxonomy to custom template to list terms in taxonomy
I'm trying to adapt some code on calling a custom template via rewrite rule.
I have a custom taxonomy called "state". I want to create an archive for the taxonomy, that lists all the terms in that ...
0
votes
1answer
37 views
Rewrite rule help for gallery plugin
I am writing a basic gallery plugin for WordPress. In the plugin users can mark images as favorites and there is a page where users can see their favorites.
I want to setup some rewrite rules for the ...
8
votes
1answer
249 views
Using the Rewrite API to Construct a RESTful URL
I'm trying to generate rewrite rules for a RESTful API. I just want to see if there is a better way to make this work than having to write out every possible rewrite combination.
Ok so I have 4 ...
0
votes
1answer
72 views
Append custom parameter to taxonomy/term URI
I have a Custom Post Type named "Cars" and 2 Custom Taxonomies "Ferrari" and "Lamborghini". Each taxonomy has 2 Terms: "New" and "Used".
These URIs work as expected:
http://myhost/ferrari/new
...
1
vote
0answers
48 views
404 error using Meta for Permalink rewrite
I'm trying to rewrite my permalinks using meta data from my post. The permalink rewrite works fine but I'm getting the 404 error when I try to view the post.
Could someone offer a clue as to why this ...
0
votes
1answer
54 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
0answers
59 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 ...
2
votes
2answers
1k views
Rewrite Rules for Multiple (more than 2) Taxonomies
I am using woocommerce and have some 'product attributes' which are just a taxonomies.
I have the following taxonomies:
pa_color
pa_material
pa_style
the pa_ stands for product attribute and it ...
0
votes
1answer
350 views
custom rewrite rules causing unmatched parentheses at offset error [closed]
alright so i have these custom rewrite rules in functions.php that work fine:
function add_video_rewrite ()
{
add_rewrite_tag("%video_id%", '([^/]*)');
add_rewrite_tag("%video_slug%", ...
0
votes
1answer
288 views
why is are these rewrite_tags and rules not working?
im trying to get this to work for 3 different pages
it was working fine with 1 rewrite, then when i added 2 more its not working for any of them.
heres the code:
function add_video_rewrite ()
{
...
0
votes
1answer
99 views
help with rewrite_tag and rewrite_rule for custom page GET variables [duplicate]
Possible Duplicate:
custom htaccess rewrite rule for page
ok i made another post and i got pointed to the Rewrite API
however, when i do print_r($_GET) on the page, it echos an empty array
...
4
votes
1answer
630 views
How to filter custom post type archive by meta value
I have a problem where I'm trying to build a calendar plugin for a client. I'm having trouble getting a date based archive for the custom post type I'm using. I'm not too well versed in how the ...
1
vote
1answer
596 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 ...
2
votes
1answer
408 views
custom permalink/shortlink with base62 encoded post ID
I want my post-links to look like /%post_id62%_%postname%/ where %post_id62% is the post ID in base62 encoding (e.g. http://example.com/y9Rlf_test/) and my shortlinks to consist of /%post_id62% only ...
0
votes
1answer
504 views
How to test custom rewrite rules /permalinks?
After much research, I think I can wrap my brain around WP's rewrite system. I would like to know, though, how to properly test rewrite rules to see if the right rule/tags is being used and the right ...
1
vote
1answer
550 views
404 Issue w/ Custom Post Type - using Meta for Permalink rewrite
I'm trying to rewrite my permalinks using meta data from my post. The permalink rewrite works- but I'm getting the 404 issue when I try to view the post.
I've flushed by visiting the permalink ...