Tagged Questions

Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"

learn more… | top users | synonyms (1)

0
votes
1answer
66 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 ...
5
votes
1answer
248 views

Date based URLs for custom posts and pagination

I have created a custom permalink structure for a custom post type (events) using the code below: $GLOBALS["wp"]->add_query_var("event_year"); $GLOBALS["wp"]->add_query_var("event_monthnum"); ...
2
votes
1answer
234 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
1answer
63 views

Overwrite URL on blog posts

I would like to overwrite my URL on single blog posts. At the moment my posts are displaying as www.mydomain.co.uk/post-title, however I would like them to be as www.mydomain.co.uk/blog/post-title ...
9
votes
1answer
1k 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
235 views

Creating a folder structure

My WP site has a members area which they pay to get access to. I want that area to be a subfolder, so something like site.com/premium/nameofpage. I am aware of url rewriting, htaccess etc. Is that ...
0
votes
1answer
86 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
2answers
119 views

subdirectory install breaking existing links

I've had this issue several times now. While building a site, including some content, I keep wordpress in a subdirectory (say, /wordpress/). When putting it live, I move/copy 3 files out of the dir ...
3
votes
2answers
995 views

Rewrite the base-url for single posts

I want to append the URL when viewing a single post. For example when im on a post I want the url to be something like: example.com/mypage/mypage/single-post-article The default url is ...
1
vote
0answers
113 views

Incorrect 404 for pages when using permalink, a static front page, and posts page

I am having an issue with my permalink setup, which I think has to do with my setup, rewrite rules, and more. Under Settings->Reading, we have a static Front Page set as well as a Posts page (Home ...
0
votes
1answer
93 views

How to solve this without flushing the rewrite rules for each post query the visitor triggers?

Actually I have the problem that I provide a menu link (predefined in theme) to the latest post of a specific custom post type. I achieve this by the following function … function ...
0
votes
1answer
85 views

How to Detect That WP is Using Mod Rewrite or $_GET variables?

I am trying to get WP is using Mod_Write or $_GET for URLs, Because by it, I can generate my own links like: mysite.com/val1/val2 or in a conventional way; mysite.com/?var1=val1&var2=val2 ...
0
votes
2answers
79 views

Is Wordpress API visible from PHP file called in htaccess

I'm trying to add some rewriterules in the .htaccess file to deal with hotlinked images - specifically I want to add the URL from the post where the image appeared to the header location information ...
1
vote
0answers
128 views

Changing URL scheme, mod_rewrite not helping

We're trying to move away from the /YYYY/MM/DD/Post-Title URL structure without breaking links that are floating around on the internet. The mod_rewrite rule is fairly straight forward - RewriteRule ...
0
votes
1answer
74 views

URL Variables in a Certain Page

I have a product loop in a certain page, and I want to filter its categories via URL such as: mysite.com/products // Shows all products mysite.com/products/sculptures // Shows only sculptures ...
1
vote
0answers
71 views

Rewrite permalink for specific posts

A client wants certain posts to have a custom permalink structure. Client is running WordPress 2.8.5 and upgrade is not currently an option, so I can't use a custom post type. That being the case, it ...
2
votes
3answers
440 views

Defining a default page for custom post type

Let's say I create a custom post type called 'new projects', with capability type = page and slug = 'projects'. Let's then say that I create a new page of type 'new projects' and name it 'my new ...
3
votes
1answer
939 views

Add rewrite rule in plugin: with .htaccess in plugin folder or using WordPress functions

I need add a rewrite rule in my plugin, and distribute it with my code. All works fine if I put the rule in the .htaccess in the WordPress root folder, but I need distribute the plugin with my rule. ...
5
votes
1answer
2k views

Custom post type yearly/ monthly archive permalinks

I have a custom post type "news" in my Wordpress site. I am using Advanced Custom Fields plugin to add meta data to each post. I want to create an array of news items as an archive: [2013] ...
2
votes
2answers
130 views

Rewrite numeric ID parameter for hierarchical custom post type

I've been banging my head against a wall on this one for a while but I'm not quite sure from all the tutorials I read how to see why this isn't doing what I expect. I have a page called ...
1
vote
1answer
118 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
1answer
314 views

How to change ?lang=cn into /cn/

I'm trying to add languages to my wordpress driven website and i installed xili-languages plugin. Unfortunately it uses lang param to differentiate between languages and i rather have seen something ...
0
votes
1answer
193 views

Make Author Archive Page URL be a Subdirectory of a Custom Post Type URL

I have a custom post type with a custom URL structure so it works like: http://domain.com/custom-post-type/post1 http://domain.com/custom-post-type/post2 http://domain.com/custom-post-type/post3 etc. ...
2
votes
1answer
210 views

add new permalink structure from dynamic page

I created page "play" url: http://localhost/myweb/play and inside of page "play" I include PHP code to make the new search from outside Wordpress. And all worked, if I search from my page "play" the ...
0
votes
1answer
685 views

How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?

I created a thread (How to make www. and no www. Go to same site, for all sites?) in the support forums for the WordPress plugin: WordPress MU Domain Mapping. Everything is fine and dandy. I have a ...
4
votes
2answers
523 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 ...
0
votes
1answer
225 views

How to create download links based on Custom Fields with Rewrite API

For me this is quite hard to do, but I guess that this could be easily done by an expert. :) Let's suppose I have a post, which is a custom post type resources, with the following data: Post Slug: ...
1
vote
0answers
73 views

Flat category URLs but retaining hierarchy?

I have the categories as follows: - Beauty -- Hair -- Makeup WP expects the URLs to be: /beauty /beauty/hair /beauty/makeup Is it possible to have the following links while still keeping the ...
0
votes
1answer
56 views

How to show one page with two different templates

I have a page template that I want to be able to show in two different modes: a regular mode and a bare-bones mode, where there is no header, footer, sidebar, etc. My hope is that I can get this done ...
0
votes
1answer
78 views

Creating a page for custom taxonomy archive

I have a custom taxonomy called 'news'. Inside it I have two categories called 'news-releases' and 'competition-news'. Going to 'mydomain.com/news/competition-news' gives the expected result and ...
3
votes
2answers
493 views

How to custom change author base without $this->front?

I have a sample code: function change_author_permalinks() { global $wp_rewrite; $wp_rewrite->author_base = 'u'; $wp_rewrite->author_structure = "/" . $wp_rewrite->author_base . ...
0
votes
2answers
3k views

How to remove the index.php in the url?

I have installed wordpress in a subdirectory (blog). In the root directory I have installed Magento. Now the file directory is as following: app downloader includes media .... blog/wp-admin My ...
2
votes
1answer
228 views

Members area with externally-managed htaccess / htpasswd authentication?

I am looking at the feasibility of converting a client's site from countless hand-built web pages to a WordPress installation. The challenge is that we have a free area and a members-only area. The ...
0
votes
2answers
137 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 ...
0
votes
1answer
36 views

How can you preserve URLs when moving posts to a custom post type?

I am working on a site where they want to break up the content into custom post types (right now everything is broken up by post categories) but they want to be able to save their URLs to preserve ...
1
vote
0answers
72 views

URL endpoint with html

I'm using wordpress endpoints for render another template on a post page. How can i add '.html' end of the url that using endpoint? Example; Normal URL: example.com/angry-birds Normal URL with ...
1
vote
0answers
96 views

Custom post type's permalink adds the name of the post type before the post name

So I've create a custom post type which seem to work. however the permalinks of the create posts has the name of the custom post type in-front of the post name. I am getting addresses like: ...
0
votes
1answer
33 views

My wordpress site must be being affected by outside sources [duplicate]

Possible Duplicate: Error 310 too many redirects after switching domains Some of my pages are resulting in 310 errors. We recently switched domains from kgstiles.com to ...
3
votes
2answers
231 views

How do i change the search permanent links

I have 3 custom searches created using different templates. The search results page loads different results depending on the referrer: <? /* Template Name: Search Results */ $search_refer = ...
-1
votes
1answer
400 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 ...
1
vote
1answer
59 views

Organizing Your Pages

I'm having problems creating sub pages. So far I've followed the proper directions: Go to a new page, click the "Page Parent" drop-down menu. Select the appropriate parent Page from the drop-down ...
0
votes
2answers
123 views

Generating custom URL before post is published

I have implemented a post_type_link filter for my custom post and this is working great. However, the only downside is that the final URL only seems to be created when the post is published. What I'd ...
1
vote
0answers
31 views

URL Rewrite fires when retrieving a custom value?

I'm working on an old WP Multisite instalation (3.0.1) and something weird is happening. The guy who built the site made a decision to store direct URLs instead of Post IDs to a Custom Field. And ...
2
votes
0answers
77 views

Use single-site install and map entities to subdomains

Not sure if this is a pipe-dream, but I am interested in the URL rewriting capabilities (and DNS mapping) of a single-site WordPress install. Typically in a WordPress MU setup, we'd use WordPress Mu ...
4
votes
5answers
4k views

Relative URLs and hide /wp-content/themes/

in my header and other sections I would like to use <script src="/incs/js/script.js"></script> While maintaining the default theme folder structure in server as below ...
2
votes
1answer
256 views

Custom user profile URLs

I have created a page "profile" that when visited with get variable of user id like: http://example.com/profile/?uid=1 Then it will display the profile details of user id 1. Now I want to rewrite … ...
0
votes
1answer
136 views

Virtual Page with Registration form

Working on a plugin, which is intended to provide a registration on front-end, to let users register. I am trying to create a Virtual page, which would display the form. Trying to create URL like ...
3
votes
2answers
463 views

Make post slug have priority over category slug

I have a wordpress site where the category base is stripped from the url. Now, when a category has a certain slug that's similar to a post slug, the category is shown. I would like to show the post ...
0
votes
1answer
91 views

URL problem: www.sitename.com/blog and www.sitename.com/learn using same WP installation

I'm sure there has to be some way to make this with single wordpress instalation. Posts for "learn" page are tagged with "learn" and I built a custom template that has loop that prints only posts from ...
1
vote
1answer
173 views

How to rewrite custom post type URL for multiple depths instead of one specific depth

I got this code that rewrite the url's for custom posttypes. It works but only for a depth where the posttitle is on the 5th segment. How can i adjust it so it accepts multiple depths? e.g.: ...