0
votes
0answers
17 views

I want to add one extra field to my URLs, I'm using Rewrite functions but it doesn't work

I think my question isn't in the right way, I just ask it. I want this routings for my wordpress site (for example in Custom PostType Archive page): example.com/VALUE => ...
0
votes
0answers
15 views

Remove Rewrite Rule

after adding a rule: add_action( 'init', 'wpse26388_rewrites_init' ); function wpse26388_rewrites_init(){ add_rewrite_rule( 'usuario/([0-9]+)/?$', ...
2
votes
1answer
42 views

Permalinks, Rewrites, Get Variables, Oh My!

Ok, so I know it's a silly title, but it's exactly how I feel right now.. I've created some custom rewrites for WordPress and they work great, the only problem is that now I need to add pagination. ...
0
votes
1answer
31 views

Create custom permalinks to show Custom Post Type's relationship?

I'm creating a WordPress site that has 3 custom post types registered: course, chapter, and lesson. All of these post types are inter-connected and share a relationship using custom fields. For ...
0
votes
0answers
25 views

Rewrite Rule Not Working

I am trying to use a rewrite rule to get 3 variables from the URL. Here is my rule: add_action( 'init', 'pe_rewrite' ); function pe_rewrite(){ add_rewrite_rule( ...
0
votes
0answers
64 views

URL rewrite custom taxonomy using add_rewrite_rule() or generate_rewrite_rules()

I'm trying to get my head around amending some URL's for a website I have created. After reading two (very informative) answers (1, 2) but I'm still a little unsure how to approach creating a URL that ...
0
votes
0answers
14 views

how to change some of the rules in the database

I need to add a rewrite rule for a WP page. I noticed that the rule is already part of the existing set, but apparently it is not correct. With the hope some internal mechanism would have replaced ...
0
votes
0answers
20 views

Rewriting URLs with Query Strings

I've been (unsuccessfully) attempting to prettify some URLs in a website I'm building in Wordpress, from something like this - ...
0
votes
0answers
27 views

URL rewriting with custom pagination

I'm using a custom query to display the results with the pagination and rewrite the URLs. The following function works fine and displays the URLs in following pattern: ...
0
votes
1answer
53 views

rewrite rules social share links

Within the Ultimatum's theme childtheme.php I've added rewrite rules to the rewrite rules and it works perfectly fine. However, it does not work if the URL is shared in Facebook or Twitter. The ...
0
votes
0answers
34 views

How can i add a rewrite rule in wordpress

I want to add following rewrite rule in wordpress .htaccess using add_rewrite_rule() function. RewriteRule ^admin-panel/(.*) wp-admin/$1?%{QUERY_STRING} [L] how can i proceed? Thanks advance.
0
votes
0answers
51 views

Changing attachment page Permalink

How can i change the attachment page permalinks to http://domain.com/photos/%attachment_id%/%postname%/%attachmentname% currently my permalinks set to Custom Structure ...
0
votes
1answer
79 views

Rewrite Rule for Post “Subpage”, with pagination

I would like to know if is possible to add a "subpage" to a post and in this "subpage" have paginated content, for example: I Have a Post Lorem Ipsum This post has Videos, Photos and Audios as ...
0
votes
0answers
21 views

add_rewrite_rule is not fired

I need to rewrite some urls: I have a page (id = 61), with slug anunciantes on wich I use a custom template to generate a wp_query to list a custom post_type. I need to be able to filter by two ...
0
votes
0answers
18 views

Register frontend page without access in backend

I'm looking to register a page that can be accessed from the frontend, while not actually having it show up as a "page" in the admin. I had thought about creating the page programatically and then ...
1
vote
1answer
48 views

How do I add a add_rewrite_rule without it redirecting?

I have a custom post type called "locations". I have a location called "starbucks". I can view this by going to "/location/starbucks". I would like to add "coffee-shop" to the URL, so the path ...
0
votes
0answers
32 views

URL Rewrite for CPT single posts

I'm struggling with Wordpress' rewrite function I have the following URL structure http://example.com/album/test-7/ 'album' is the slug for the CPT single page 'test-7' is the slug for the CPT ...
0
votes
1answer
41 views

How to add a Rewrite Rule / Category Structure

I'm currently trying to use add_rewrite_rule() to create a rewrite (duh!), for a custom taxonomy page. I've added the rewrite tag "sort" with the following code: ...
0
votes
0answers
37 views

Why is my rewrite rule refreshing the page and removing my variables?

For some reason, the catch-all page rewrite rule is capturing this rewrite, rather than my own rewrite rule. My rewrite rule is listed at the top when doing a var_dump of the rules, as well as when ...
0
votes
2answers
67 views

add_rewrite_rule not registering on Multisite

I have a multisite install of WordPress. I have installed the plugin Monkeyman Rewrite Analyzer so I can see all the rules I have registered. The code below is how I am registering the rule: ...
0
votes
1answer
88 views

Call to a member function add_rule() on a non-object

I want the page mysite.com/product to be accessed with the URL mysite.com/product/productname instead of mysite.com/product?name=productname I am trying to achieve this with the code in the ...
0
votes
1answer
41 views

Custom URL scheme - paramters on custom post type

I have a custom post type set up as Event. Within this post type I have various bit's of content / custom meta which will be used on two or three different pages. I was wondering lets say I had my ...
0
votes
0answers
38 views

Rewrite rule is not working

I want a custom rewrite rule for my plugin. But for some reason it is not working. I tried flushing url, registered query var. But still it wont work and it gives output like this: ...
2
votes
1answer
190 views

Add specific word to default page permalink

Right now I am working on one of my client's project. Its all about amazon product display. My client wants me to change the permalinks of all posts, pages, serch results, archive pages, ...
0
votes
1answer
109 views

Getting add_rewrite_rule and add_rewrite_tag to work

I am new to using add_rewrite_rule and add_rewrite_tag. I am trying to get a very basic example to work, but nothing I do seems to make it work. I want to access this URL (this works when entering ...
1
vote
1answer
59 views

Custom rewrite_rules - only pass numbers and not alphabetic characters

I'm trying to add a rewrite rule to pass a var to a custom page template. For some weird reason it only excepts numbers in the variables, when I type in characters other then number it directs to ...
1
vote
1answer
551 views

Custom query_vars and parse_request on wp-admin

I've read this post http://wordpress.org/support/topic/query-vars-in-admin and although it's quite an old question, it suits me perfectly. I'm trying to accomplish what I already posted here: ...
0
votes
0answers
53 views

Custom URL in Wordpress with add_rewrite_rules and add_rewrite_endpoints

I have the following URL for a filter functionality that i try to build in wordpress: example.com/offers-type-all-inclusive-from-germany-transportation-airplane.html How can I make the arguments ...
1
vote
1answer
270 views

Rewrite rule for admin-ajax.php

I went through a lot of posts and googled a lot, but still couldn't get this to work. I'm trying to create a rewrite rule for admin-ajax.php, to achieve the same results shown here: Adding ...
0
votes
0answers
52 views

Custom Rewrite Rule with Sub Folders

I need to create a custom rewrite rule for a WordPress plugin. I have read this topic and came up with a working solution using add_rewrite_rule(). However, after testing the plugin, I realized that ...
0
votes
2answers
316 views

add_rewrite_rule not working for me

I have the following rewrite tags defined: // ADD REWRITE TAG FOR 'VEHICLE MAKES' add_rewrite_tag('%make%','([^&]+)'); // ADD REWRITE TAG FOR 'BODY STYLES' ...
0
votes
1answer
85 views

Wordpress URL rewrite problem

blog.com/product/somename In the above URL - how do I tell Wordpress that 'product' is a variable and 'somename' is its value. Then how do I extract that value and use it inside a function I'll ...
0
votes
0answers
43 views

Rewrite rule for custom parameters

Im having rewrite rules like this add_rewrite_tag('%offercode%','([^&]+)'); add_rewrite_tag('%offerdatefrom%','([^&]+)'); add_rewrite_tag('%offerdeparture%','([^&]+)'); ...
1
vote
0answers
82 views

WP Rewrite the last two parts of the URL

I have found quite a lot of post on the subject of WP rewrite but I can't find the right words to describe this problem. I'm trying to accomplish the following: ...
1
vote
1answer
335 views

Custom rewrite rule for backend/admin?

I would like to create a custom rewrite rule that will take the URL: http://domain/submit-project/add but display http://domain/wp/wp-admin/post-new.php?post_type=project Is there any way to do ...
1
vote
1answer
76 views

Is a permastruct possible on pages?

Since a couple of weeks I'm trying to create my own rewritings on pages. I read a lot about rewriting with posts and custom post-types. BUT: I have pages that I call with variables. How is it ...
0
votes
1answer
72 views

Wordpress permalink still not working (error or not understood?)

After hours in understanding wordpress permalinks I'm despairing and hope that somebody can help. I have the following link: www.mysite.com/?page_id=923&bahn=BER After activating the ...
1
vote
1answer
223 views

Multiple Permalinks for Same Post

I'd like to be able to have multiple permalinks for the same underlying post (for i18n reasons) - eg http://www.example.com/my-custom-post-type/this-is-a-cool-article ...
0
votes
1answer
702 views

Rewrite rules not working in WordPress

I'm trying to add the new rewrite rules using the rewrite API: add_rewrite_rule('product/([A-Z0-9]{10})', 'index.php/product/?asin=$1', 'bottom'); add_rewrite_rule('product/(([A-Za-z0-9_])*)', ...
1
vote
1answer
189 views

How to set up Author archives with sub category URL

So i have a site where i have used the authors.php page so that i can display individual user's profile pages.. the url then looks something like: http://mydomain.com/author/test/ What i would like ...
0
votes
1answer
111 views

URL rewrite in theme doesn't seem to be working

so I was asked to create url rewrites for one of the websites we're working on, but the thing is the test rewrite I did, just to try it out, is not really working. here's the code I put in the ...
0
votes
2answers
156 views

URL Rewrite doesn't work for nested pages

I am using URL rewrite like this page: unexpected problem in url rewrite It works without any problem, but when I try to use the same rules for nested page, it doesn't work. Say, I have two pages ...
0
votes
0answers
32 views

Rewrites with options on custom post type

I have a custom post type called 'episodes'. All of my episodes have an audio file associated with them. This file is embedded automatically in the template. Some of my episodes also have a video ...
0
votes
0answers
429 views

add_rewrite_rule and passing variables for custom post types

this is driving me crazy!! Scenario is... Custom post type let's call it "cpt_product" setup with the rewrite "products" Trying to use the add_rewrite_rule to create a friendly URL for meta details ...
0
votes
1answer
139 views

Rewrite url / permalink for default archive - yearly / monthly

I want to change the structure of yearly/monthly archive URL of default post type 'post'. As we know be default the URLs are like: Default: http://wwww.domain.com/2013/09 but want them rewritten, ...
3
votes
1answer
180 views

Why does wordpress still strip my query var?

Im trying to pass a query var to a custom page template with pretty permalinks. So basically i have a page called "albums". And i want to pass a query var to that page called "type". So the ...
0
votes
0answers
80 views

add_rewrite_rule() for an unknown parent page

I am trying to get this rewrite rule to work right. What I have is a plugin that creates a page after the user inserts a page name in the settings that I created for the plugin. The users custom page ...
2
votes
1answer
113 views

Pagination problem

I have two custom rewrite rules: add_rewrite_rule('foo/bar/?', 'index.php?post_type=foo', 'top'); add_rewrite_rule('foo/bar/([a-z]+)/?', 'index.php?post_type=foo&bar=$matches[1]', 'top'); Which ...
0
votes
2answers
319 views

WordPress Rewrite rule is not working

I am trying to create a rewrite rule for one of my custom page and here is the rewrite rule function add_my_rule() { global $wp; $wp->add_query_var('name_state'); ...
0
votes
1answer
85 views

Why is a rewrite rule in wordpress prevent pagination?

I have a custom page that uses a rewrite rule. The "non-pagination" rewrite works fine: add_rewrite_rule( '^brand-list/([^/]*)/([^/]*)/?', ...