The rewrite-rules tag has no wiki summary.
0
votes
0answers
11 views
Custom Post Type and Rewrite Slug Not working for Archive page
I'm hoping someone can help me out. I asked this on Wordpress.org but figured no harm in asking here too.
I read an article about using a custom plugin to create custom post types. So I did. ...
0
votes
0answers
17 views
Category View with rewrite url
Is it possible to send the parameters in the category link
like
site.com/category/slugname/2011/20/10
and rewrite the url as
$wp_rewrite->rules = array_merge( ...
0
votes
0answers
20 views
How to add custom query string to home page without being redirected to the posts page?
When permalinks are ON, I add this query var to my home page URL and I get redirected to the posts page or 404...
domain.com/myvar/myvalue
domain.com/?page=1354&myvar=myvalue
...
1
vote
1answer
51 views
Adding paged query to custom URL rewrite
I have set up the following to create 'pretty' post type and category permalinks:
function kdev_add_category_rules() {
$post_types = array(
'kdev_photos',
'kdev_videos',
...
0
votes
1answer
33 views
Redirect URL to an existing page with query string or #! added on
I'm trying to make a photo gallery where the individual photos can be shared on Facebook and Twitter, and when you click the link, the photo that was shared will open in a lightbox automatically.
...
0
votes
1answer
25 views
Access $_POST data after redirect
How can I access $_POST data after a page redirect?
I guess there is some way to tell WordPress to pass all $_POST data to the redirected address, like it does with $_GET data, using Rewrite Rules, ...
0
votes
1answer
31 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
...
3
votes
1answer
174 views
CPT Template Not Showing - Getting 404
I'm developing a Custom Post Type plugin, which works fine in dev. Now that I've moved it to production, I'm getting a 404 when I try to display the template for the CPT.
So, two questions:
1- Is ...
0
votes
1answer
40 views
Per Page Permalink Structure for Page Post Type
I am trying to Re-Write Page URL's so that they END with .htm
I was able to do this using...
/* Add .htm extension to Page URL Links */
add_action('init', 'htm_page_permalink', -1);
function ...
0
votes
0answers
60 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
58 views
Custom Post Type Link not working
I have been messing with this problem for 3 weeks already with still no results. I downloaded the Rewrite Rules Inspector and Flushed the rules that are missing.
The server I'm using for hosting uses ...
0
votes
0answers
29 views
standard post with extra parameter brings permalink problem
This problem concerns several rewrite rules, but i'll stick to one, for clarity.
In my theme, i use a parameter "parentid" which gives me the page/post/custom post i've clicked on (the parent).
in ...
0
votes
1answer
36 views
Custom Rewrite Problem
I'm creating some custom rewrites using the code below. Everything works fine, as far as urls such as this:
example.com/reviews/showname
Tells my theme to use the special archive page and passes ...
0
votes
0answers
46 views
rewrite rule, add query var, but it is not in the function.php, it is in the plugin
I tried to create a plugin so that users don't need to edit other files (like function.php, header.php).
I tried to add a rewrite rule in the plugin, all things works fine, but add query var.
My code ...
0
votes
1answer
80 views
Wordpress in “Couch Mode”?
I am trying to setup a "Couch Mode" (distraction free reading) on my WordPress blog as laid out in this article.
The guide in the article follows these steps:
Create a new page in WordPress with ...
3
votes
3answers
176 views
rewrite_rule() not preserving the query string
We have added a custom rewrite_rule to our site to allow for a pretty inbound link to be parsed and handled properly. Links are constructed as domain.com/meetings/faculty/someIDnumber
add_action( ...
0
votes
0answers
49 views
Problem with adding rewrite rules when using permalink redirection
When you change the post_name of a post, WordPress keeps the old post_name in the posts_meta table as wp_old_slug linked to the same post_id so the redirect from the old permalink to the new works ...
0
votes
0answers
81 views
Rewrite and replace url wp-admin/edit.php and wp-admin/post-new.php
everybody
I want to rewrite and replace all url
mydomain.com/wp-admin/edit.php -> mydomain.com/wp-admin/edit/
and
mydomain.com/wp-admin/post-new.php -> mydomain.com/wp-admin/addnewpost/
How i ...
0
votes
2answers
48 views
Paginate yearly archives for a custom post type
Here's the code I'm using to create yearly archives for a custom post type:
function myquery_custom_post_rewrite( $rewrite_rules ) {
$myqueryslug = 'customposttype';
$month_archive = array( ...
0
votes
0answers
24 views
Need help creating custom rewrite rule
My goal is to change
http://mysite.com/store/?city=oslo&store=ferner+jacobsen&id=3721
to
http://mysite.com/store/oslo/ferner+jacobsen/3721
@Jan-fabry have given me an extensive explanation ...
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 ...
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 ...
0
votes
0answers
56 views
Rewrite main domain to subdirectory
I can't find any answers nor questions about this issue. So here goes.
My site is installed in this folder: public_html/SITE then I use .htaccess to make a rewrite rule which looks like this:
...
1
vote
0answers
119 views
Help with multisite redirect issues using Cherokee OR solid nginx config?
A little background:
We've decided to abandon Apache because it can't keep up with the demand we're putting on it. We have a cron script that will create a new post about once every 3 or 4 seconds ...
0
votes
2answers
370 views
nginx + W3 Total Cache: rewrite rules issue
nginx 1.2.7 + WP 3.5.1 + W3TC 0.9.2.8.
Rewrite rules generated by the plugin simply don't work, server returns 404 after including them in nginx server config. Or maybe I'm doing something wrong?
...
0
votes
2answers
47 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
2answers
48 views
Custom rewrites for pages and categories
I am trying to understand how can create custom rewrites for pages/categories. Ex i have example.com/?page_id=178 and for this page have a contact form and i want this: %slug%.php
...
0
votes
2answers
101 views
Custom post type paging 404 error
I've an issue on custom post type,
I've create a custom post type called "Agenda" and the rewrite url for http://example.com/agenda it works correctly, it points to the archive-agenda.php template ...
0
votes
1answer
50 views
Wordpress Rewrite Rule
I have a standard page setup at http://mysite.com/mypage/
I'd like to setup a rewrite rule in my theme functions that takes any URLs such as:
http://mysite.com/mypage/helloworld/ <-- Currently ...
0
votes
1answer
33 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 ...
0
votes
2answers
33 views
Remove .htaccess portion upon plugin deactivation?
I have a plugin that inserts some rewrite rule in the .htaccess file. However, upon deactivating it, doesn't remove said rule. The rule is nested in # BEGIN My plugin and # END My plugin.
I want to ...
3
votes
1answer
139 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:
...
0
votes
3answers
137 views
Pagination: /tags/tag_name/?paged=2 gives a 404 error
I need to paginate an archive page. Pagination works perfectly fine for everything except tag/category archives. Basically if I use /tags/tag_name/?paged=2 it gives me a 404 error. But if I use ...
0
votes
1answer
52 views
Rewrite URL variable to custom path
I am passing to my url some variables to display latest posts, most viewed etc.
http://website.com/?r_sortby=highest_rated
I am wondering how to create a custom path for it instead for SEO purpose ...
0
votes
1answer
92 views
Custom page template query_vars
I created a custom page template movie-page.php and a page movie in WP. The template shows fine when I visit site.com/movie/
I want to add movie_id as a query var. Here's my code:
...
0
votes
1answer
69 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
...
0
votes
1answer
38 views
How to Add Rewrite Ruled Argument Into Permalink Properly
I am using WP rewrite rules for my custem arguments,
But when I am trying to generate permalink like this:
add_query_arg(array(
'type' => 'foo',
'paged' => 2,
),get_permalink($id)) ;
...
0
votes
1answer
33 views
Ideal top-level slug methods
Right now I have a post type that generates a slug, e.g. http://url.com/l/abcd/ for each entry. I have a query in my 404.php that checks for http://url.com/abcd before output and redirects it if found ...
0
votes
2answers
218 views
Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
For a long time I served my blog from http://www.murrayc.com/blog/, with the wordpress installation in /home/murrayc/murrayc.com/blog/. Now I've moved it to http://www.murrayc.com/, without moving the ...
2
votes
0answers
46 views
Page Attachment Permalink Structure based on Menu Order?
I've been on a quest for the past couple of days reading up on Rewrite in WordPress but still can't seem to figure out how to accomplish this.
When using pretty links in WordPress, media attached to ...
0
votes
1answer
42 views
Monkey Man Rewrite Analyzer says my rule will trigger but it doesn't [closed]
I installed Monkey Man Rewrite Analyzer, i got a rule installed, it shows in the list, if i test it with monkey man it says it will fire but it doesn't in reality, whats wrong?
add_action('init', ...
3
votes
2answers
275 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 ...
1
vote
2answers
106 views
External Rewrite Rules
I'm trying to add a rewrite rule to Wordpress. I want to rewrite: "http://www.domain.com/plm_check/var_a/var_b/var_c/" to actually use a file from ...
0
votes
1answer
262 views
Can a custom post type have a Parent Page?
I've seen a lot of posts out there in the Webiverse about assigning a page as a parent of a custom post type. After four hours I can't find a solution and need some help. I've create an "About" page ...
0
votes
2answers
64 views
Rewrite function
I have a wordpress blog. I get url in blog like this,
http://www.domain.com/2013/01/test19/page/2/
But I want my ur like this,
http://www.domain.com/page/2/
So can we rewrite this url. I ...
3
votes
1answer
91 views
WordPress Custom URL Rewrites
I am trying to add a custom rewrite rule with a single variable to a specific page. The 'ugly' version is http://example.com/used-cars/car/?carname=name-of-car and the 'pretty' version I'm going for ...
0
votes
0answers
9 views
Add a Rewrite Rule for Custom Script [duplicate]
Possible Duplicate:
How to Rewrite Wordpress URL for a Plugin
I have a php script in wordpress directory. I want to add a rewrite rule for that script.
It normally works like this; ...
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
0answers
27 views
Custom post_type and custom taxonomy with permalinks like categories [duplicate]
Possible Duplicate:
adding categories to custom post type in permalink
I am trying to achieve separate categories for each custom post type so as not to mix them. The best way I have found ...
