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)

-1
votes
0answers
10 views

Get posts from taxonomy category

I'm trying to get posts from taxonomy category/term and display them into a category without using tax/term url query. I have created a custom taxonomy called 'seasons' in 'posts' post type, created ...
0
votes
0answers
10 views

Include language variable in url

I have been developing a language plugin for wordpress which works completely. The only thing that is missing now is the url-rewriting. I have been looking at a lot of websites, sources and other ...
0
votes
0answers
12 views

ModRewrite not working properly

I am experiencing issues with modrewrite and RewriteRule. Have a look at my .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond ...
0
votes
1answer
16 views

How to rewrite URL and get the values?

I created a shortcode by add_shortcode. where the shortcode placed in a wordpress page to display dynamic content. The dynamic content is based on the URL value. Example If URL is ...
0
votes
0answers
12 views

How to list posts of a given format

I want to create new urls in my wordpress that list posts of a given format and category. I thought the url structure would make sense to be like this: /[post-format]/[category], i.e.: ...
0
votes
0answers
13 views

Custom URL Rewriting by Year, Custom post type and Custom taxonomy

I am trying to create a custom rewrite url, but is not so clear for me unfortunately... So my problem is: I have a Media-Resources custom post type and Media Type custom taxonomy. This taxonomy is ...
0
votes
0answers
18 views

Wordpress 4.2.1 Rewrite issue

i'm working on Wordpress 4.2.1 with custom Template. Webserver: IIS 7.5 with Helicon Isapi_Rewrite. It's a multilanguage website but i have 2 issue that i can't solve. My first problem is about Url ...
0
votes
1answer
18 views

Need help with custom rewrite rule

I have a CPT called presskit, and I need to add a custom query var named welcome_box. I have this code right now: function my_new_url_querystring(){ add_rewrite_tag( '%welcome_box%','([^&]+)' ...
0
votes
1answer
13 views

Custom slug in front of search URL

I'll try explain this the best I can... I have a search form on my homepage: <form role="search" method="get" id="searchform" class="form" action="<?php echo esc_url( home_url( '/' ) ); ...
0
votes
1answer
19 views

Custom URLs in Custom Search Results

I need your help with Custom URLs in Custom Search Results (Wordpress). I have this URL http://domain.com/?s=&categories=489&locations=310 which get me search results. I can replace IDs with ...
0
votes
0answers
24 views

How does the WordPress URL Routing work?

I would like to try and mimic how WordPress has their URL routing system designed, only a much more simplistic level. Can someone help me understand how they have their routing system designed so that ...
-2
votes
0answers
12 views

How to rewrite author URLs?

I have a URL http://example.com/author/{username}/?page=following Now I want to rewrite it like below http://example.com/author/{username}/following How can I do that?
0
votes
2answers
49 views

Rewriting URLs with a query string

I am running into a headache trying to get some url rewriting working on a wordpress website, running Centos 6 for operating system. This is what I am trying to achieve. Current URL = ...
0
votes
1answer
21 views

Using page as front page, why does /page/### work?

So I've experimented with different themes and have determined this is a WordPress thing and not a theme thing. Say I create a page titled "The Front Page", then set it as the front page on reading ...
4
votes
2answers
53 views

Adding rewrite endpoint breaks static front page

I have static front page for my WP installation set from settings > reading. Then I have added a URL endpoint using. add_rewrite_endpoint('foo', EP_ALL); So, the front page should be accessible ...
2
votes
1answer
19 views

Single Redirection Rule for Pages and Archive links

I am trying to find pretty URL solution for url parameters. Consider this url set http://example.com?token=foo http://example.com/pagename?token=foo http://example.com/parent/childpage?token=foo ...
0
votes
1answer
18 views

Custom taxonomy Rewrite Rule

I want my taxonomy url to be like this: site.com/page/taxonomy_term How will I be able to achieve this? I have written a wordpress rewrite rule code in my functions.php like this: function ...
0
votes
0answers
14 views

Rewrite URL of a page which is child of a Custom Post Type

With the plugin Types I've created a hierarchical custom post type "journeys", and then I set that normal "pages" are child of "journeys". I've created a "journeys" post called "My First Journey". ...
0
votes
0answers
33 views

Remove trailing slash

I need to revert from "pretty prmalinks" to query string just for the pagination urls. (so that example.com/page/2 becomes example.com/?paged=2). It could possibly be done via a hook in to redirect ...
0
votes
0answers
31 views

Remove one part from the Permalink automatically

I have a bit of a messed up situation. The client wanted to have static landing pages like website.com/state/city but also create custom post types like restaurant. So I setup regular pages with the ...
0
votes
1answer
25 views

configuration of .htaccess for add_rewrite_rule to make sense

I am trying this code from codex wordpress site function custom_rewrite_basic() { add_rewrite_rule('^leaf/([0-9]+)/?', 'index.php?page_id=$matches[1]', 'top'); } add_action('init', ...
0
votes
0answers
13 views

Add Archive suffix on permalink structure

My permalink structure is /%category%/%postname%/ Where the posts can have one category and one subcategory, having its permalink: /category/subcategory/postname The homepage of all the ...
-1
votes
0answers
20 views

Wordpress URL - Sessions, Cookies or GET using different Custom Post Types

Projetct of Advertisement System Custom Post Types: States/Cities - localhost/category/state/city Coupons - localhost/site/coupons/post-name Ads - localhost/site/ads/post-name Enterprises - ...
0
votes
0answers
31 views

Nginx WP permalink 404 .html

Moving a site over from Apache to Nginx. The permalink structure is using: /%category%/%postname%.html Getting 404's for all links that use .html, I have been searching for hours and cannot find a ...
1
vote
2answers
16 views

Get rewrite result

Quick simple question. How would I get the result of a rewrite in wordpress? For example I have: www.some.website.com/some/parameter How would I get the end result that WP processes? Aka, the ...
0
votes
1answer
19 views

Problem with add_rewrite_tag

I tried to rewrite my URl with a custom query string. Here is the code : add_action( 'init', 'wpse12065_init' ); function wpse12065_init() { add_rewrite_rule( ...
0
votes
0answers
14 views

using two different urls for same post

I want to use two different permalinks for same post for some reasons the permalink structure i need are http://www.example.com/category-name/post-name http://www.example.com/post-name please help ...
0
votes
1answer
17 views

How Do I get the author's page id?

I need to assign comments a user makes to the author's page where the user is posting the comment. So, I need to get the author's page id. I have already tried functions like: url_to_postid() and ...
0
votes
0answers
19 views

I am trying to add a mode rewerite rule that seems to fail

I am trying to redirect everything from /app/.... to a certain page Will use that later for angular js. This is what i came up with : add_rewrite_rule('/app/.*', 'index.php?page_id=11', 'top'); ...
0
votes
1answer
25 views

Capturing /page-name/[0-99999] in both template and number

Apologies if this has been answered already - I have singularly failed to word my question in a way that Google can help. I'm trying to create a page that acts as a base URL for a range of items with ...
0
votes
2answers
48 views

How to get page_id for url rewrite or how to use page slug for calling a page?

I would like to simply create an url rewrite that takes the third argument and matches it to its corresponding pages, ignoring the other two arguments. domain.com/argument1/argument2/page-slug = ...
0
votes
0answers
45 views

CPT's with landing page instead of archive - Url Rewrite?

I am building a directory website which has various Custom post Types like Tours, Food, etc. The client would like to see landing Pages for each of the categories which can be edited manually (think ...
0
votes
0answers
19 views

Add parameter to custom post permalink

I have created custom posts which have permalink structure as http://example.com/custompost/pagetitle I also want to access the same post with URL like ...
0
votes
0answers
13 views

how to add prefix to post url structor only

I need to add "item/" prefix to post url only I went to Settings -> Permalinks and set this : /item/%postname%/ and for category and tag set this: category tag But other post_type and ...
0
votes
0answers
20 views

Moving URLs in search results

Since I am a layman, but now have some understanding about 301 redirects,302 redirects, and how URLs from page 1 can be moved to let's say page 2 by doing what the following author wrote: "At the ...
2
votes
2answers
191 views

Rewriting 'rewrite' slug for custom post type used by plugin

quick question: I'm using a plugin that creates a custom-post-type with the rewrite slug /projects/ So myurl.com/projects/single-project I want to to rewrite `projects/ with 'rewrite' => ...
1
vote
0answers
40 views

Mirror content based on URL slug

I have a training site that manages the same content across several branded versions. examples: .com/product-name-a .com/re-brand1/product-name-a .com/re-brand2/product-name-a Where all 3 are ...
0
votes
0answers
52 views

Custom post type with parent page? Possible?

I'm having trouble getting my url structure the way I want. I have a page with two sections: private company Let's take private as an example. In this area, I wan't to have a url structure like ...
0
votes
0answers
23 views

Make custom post url accept anything after the event slug - for use as url parameters

I want to parse url parameters to my custom page code within a custom post type by simply appending folder values to the end of the valid custom post type. So instead of: www.test.com/tests/post1/ ...
1
vote
0answers
57 views

Nginx — Wordpress multisite with root folder in own directory

I have my Wordpress files in a directory called wed. I also have the following rewrite rules in my Nginx config: if (!-e $request_filename){ rewrite /wp-admin$ $scheme://$host$uri/ last; ...
0
votes
1answer
35 views

Change permalink to attachment

Hello i found this code and I modified a litle, but i have a problem with it. I want the link of the attachment page to be something like this [post-permalink]/[gallery]/[postid] 1234/ .. /1253/ ...
0
votes
1answer
38 views

Direct Dynamic URL in root to a location within template

I needed to have dynamic URLs created once a user (say Organization) submitted a registration form where the URL would be domain.com/organizations/organization-name/dashboard/ The "organization-name" ...
0
votes
0answers
22 views

URL Rewrite Rules & Get Method

I have three dropdowns on my blog which allows you to filter by custom taxonomies. I'm using the following function to create the dropdowns: function get_terms_dropdown_risk_category($taxonomies, ...
0
votes
0answers
62 views

Remove Custom Post Type slug from url, two CPT

I have 2 custom post types hilp-a and hilp-b. I want to remove custom post type slug from the url. e.g: test.com/hilp-a/test to be test.com/test and test.com/hilp-b/btest to be test.com/btest I ...
1
vote
0answers
36 views

Add word to permalink when custom field has a value

I would like to change the default permalink structure of posts (and all other types) that have a specfic post meta value. So when it doesn't have that value it just stays: ...
0
votes
0answers
14 views

WP Rewrite - some rewrite rules are ignored and instead a redirect is served

I am trying to allow any URI that's prefixed with pf/ to show a page without redirection. I do this by filtering rewrite_rules_array and simply duplicating the rules with a pf/ prefix public function ...
4
votes
1answer
77 views

Handle category name URL rewrite before different post type slugs

I went over a hundred similar topics here which were close to what I need, but unfortunately I wasn't able to fine tune this so apologies if it's a duplicate. I have a several post types (such as ...
1
vote
1answer
33 views

How to building pretty URLs to reflect category hierarchy?

At the moment, this is how I access brands (custom post type) on my page: http://example.com/<base>/<brand> I would like to access brands like this: ...
0
votes
2answers
65 views

Show post content in two different places without redirect

How to get the same post content for in (the default) domain.com/year/month/post-slug and domain.com/custom/post-slug (without redirect). Can I do this with some kind of rewrite or do I need a custom ...
0
votes
1answer
22 views

How to create cutom link for page

I am newbie in WordPress, and my question may be duplicated, but I cant get this, help please. I have page with this URL: example.com/?page_id=49, but I want to make it as example.com/test_page. ...