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
0answers
31 views

Is it possible to change %post_id% in permalink by a constant?

I had an assignment of moving Joomla 1.0 content, categories and other stuff to the latest WordPress. Everything went fine, a few PHP scripts, a bit of fiddling with MySQL. But then, unexpected ...
0
votes
0answers
53 views

URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647

I've got a javascript implented on my Wordpress site with the purpose to the substring of the URL and if it matches some criteria, it'll load a specific piece of content. So, if you input this URL ...
2
votes
1answer
116 views

Apostrophe in permalink results in page not found

I'm working through a migration from Drupal to a WP multisite network, I've got a post meta field that contains the URL of the old post (mostly to maintain social counts and such) that I'm using for ...
0
votes
0answers
21 views

URL rewrite results in a 404, but everything should work!

So I modified this code that I found elsewhere and stuck it in a plugin. The plugin works; I can see the .htaccess file updated when I hit save on the permalinks page. add_action( 'init', ...
0
votes
1answer
57 views

custom url with custom post

I want to change my custom post URL. I want to remove "item" from URL. With the below code and with custom post type url plugin http://wordpress.org/plugins/custom-post-type-permalinks/ my URL is: ...
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
98 views

Add Custom Values to Permalinks Through Custom Fields and Posts

I have two custom post types 1 called melon-parties and another called party-categories. for posts in melon-parties i create a metabox which gets populated from all posts from parties-categories. I ...
0
votes
1answer
174 views

WP Rewrite Rules - Custom post type & taxonomy

I've been beating my head against the wall for a few days trying to figure this out. I have a custom post type and custom taxonomy and I'm trying to get my URL's to work. Here is the URL structure ...
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 ...
1
vote
1answer
78 views

Custom Post Type and Custom Taxonomy Permalinks

I'm currently working with a client's Wordpress blog that has a permalink structure set in the admin settings as "/speaks/%postname%/". This is so that all actual blog posts (post_type=>posts) have ...
0
votes
2answers
57 views

Multiple URL from Custom post name

I would like to do something special for a website in Wordpress. I have a "custom post type" whose data are all "post custom fields" except the name of the post. I need to create multiple urls for ...
2
votes
1answer
29 views

How can I modify the permalink via a filter?

I would like to make a change to the URL's in my href attribute across my while site when the_permalink is called. For example: <h2><a href="<?php the_permalink()?>" Can I use my ...
0
votes
1answer
19 views

Why isn't my custom function kicking in from my functions.php file?

We'd like to clean some of our WordPress URL's up and have some rewrites in place in the following format: Actual URL: product-one/product-one-guides/ Actual URL: product-two/product-two-guides/ ...
0
votes
0answers
15 views

multisite to root

I have this configuration : http://domaine.com/ with an old wp (be removed soon) http://domaine.com/bob with a new wordpress multisite (the main) http://domaine.com/bob/site2 with a wordpress ...
0
votes
0answers
21 views

How to disable tag url rewriting on homepage (on others it works)?

Wordpress is able to handle posts selection by multiple tags: This url shows all posts from category fruit AND (with tags apple OR orange) http://www.example.com/category/fruits/?tag=apple,orange ...
0
votes
1answer
62 views

Redirect if string found in URL

I'm trying to redirect non-logged in users to the login page when viewing any pages relating to a plugin. My code is working fine when I specify which pages they can't view, but I'm trying to pull in ...
0
votes
1answer
42 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
34 views

Unable to manipulate rewrite rules without calling flush_rewrite_rules() each time

I am trying to make a small portfolio website in multiple languages. Just a few pages (the actual blog doesn't need to be in multiple languages), mainly pages that are generated by a own-made plugin. ...
0
votes
2answers
140 views

Add rel=canonical to only one page

I'm trying to add the rel="canonical" tag to only one page, the home page. In order to add the tag, I need to add it to the <head> part of the template, in the header.php file. This will add the ...
-1
votes
1answer
84 views

Hide / rewrite download link

I want to hide the actual path of my downloads that look like this http://my.wordpresssite.com/wp-content/uploads/2012/12/example.pdf and instead get something like this: ...
0
votes
0answers
18 views

pretty permalink for filtered posts

I am working on a personal book store. I have made CPT "Book" and Author as it’s custom Taxonomy, Author. Its just like another book site with usual categories like like Suspense , Horror, Comic etc ...
0
votes
1answer
8 views

How to remove post redirects

I recently installed a plugin called "Q and A FAQ and Knowledge Base for WordPress" Turns out it was lacking in the features I needed so I trashed every faq I had created and then deactivated the ...
0
votes
1answer
32 views

Rewrite rule is catching pages not posts

I am trying to implement a wordpress site where there possibly is a name generated in the format firstname.lastname at the front of the url. I have the following rule $wp_rewrite->rules = ...
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: ...
0
votes
0answers
16 views

Change only the attachment permalinks to %post_id%

My permalinks are set to /%category%/%postname%/ but I would like attachments to live at photo/%post_id%/ I already have a rewrite function to change the attachment slug from attachment/ to photo/, ...
0
votes
1answer
30 views

Custom mod rewrite function not responding

My url is http://domain.com/author/john/?posts=pending What I want is http://oyecow.com/author/john/pending My function add_rewrite_rule('^(author)/([A-Za-z0-9_- ]+$*)/?', ...
1
vote
1answer
26 views

Checking that the Rewrite API is available

WordPress supports URL rewriting through the Rewrite API. It relies on underlying HTTP server mechanisms to get the job done. It is not always possible for WordPress to enforce the Rewrite rules. For ...
0
votes
2answers
42 views

Post-Archive like a page in a specific subdirectory

I have a webpage with posts which belong to specific categories (eg projects). I want to show the archive of a specific category like a page. Status quo The site structure is similar to this: / ...
0
votes
0answers
9 views

rewrite url for a single custom post on a multisite [duplicate]

I have a custom post type named 'itineraries' and its slug is being rewritten to 'destination' My urls to a single itinerary post look like this: /destination/%post-name%/ I have a custom taxonomy ...
0
votes
0answers
27 views

Network created blogs URL

I'm building a blog network where people can register their blogs. As default if my domain is domain.com and if user creates a blog, the URL will be domain.com/mynewblog/ Now I would like that all ...
1
vote
1answer
521 views

How to add custom rewrite rule to .htaccess?

I want to add a custom rewrite rule to my .htaccess file using a function inside functions.php The rewrite rule I want to add is as follows: RedirectMatch 301 ^/author/(.+)$ http://name-blog.com/$1 ...
0
votes
0answers
41 views

permalink overwriting after save post

I'm developing a plugin to sell tickets for live courses. Using a shortcode [ticketform] I show a form that takes customer data and if everything is ok --> go to paypal --> thank you page. Within ...
3
votes
1answer
107 views

Rewrite category slug

I have some categories like so: /europe/postname /usa/postname For various reasons I would like to rewrite these to be: /news/view/postname I've tried a few re-direct plugins but not had any ...
0
votes
1answer
42 views

How to get raw unwritten querystring

Without permalink enabled, the urls look like ?p=1 and when permalink is activated it's the postname that appears... question .. isn't this a rewritten version of ?p=1 .. When I use $_GET['p'], ...
1
vote
0answers
71 views

Add .htm extention to a custom taxonomy

I need to add '.htm' to all my urls on a new site - client requires that, as I am converting a old static site into WP. (I use Remove Taxonomy Base Slug to hide the slug of my custom taxonomy "topic" ...
2
votes
1answer
194 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, ...
1
vote
1answer
24 views

Why do Wordpress rewriites seem to work differently for posts vs pages?

I am creating some simple rewrites in my functions.php file in my WordPress installation: add_rewrite_rule('product1/faqs/?', 'index.php?name=product1-faqs', 'top'); I've noticed that if you hit ...
1
vote
1answer
48 views

Performance impact of rewriting WordPress URLs

I'm currently rewriting author URLs in WordPress. I've removed the author base slug /author/. Please note I have total control over page slugs so can guarantee there will be no conflicts. I've added ...
1
vote
1answer
60 views

Why did installing wordpress in url root jack up underlying WP sites?

I have a server (w2008 with iis7.5) and domain with a lot of different WP installs. All of the following represent WP installations. x.com/stuff x.com/programs/recent ...
1
vote
1answer
53 views

Rewrite Page with a slug before page name

I am using $wp_rewrite->non_wp_rules I have the following code that works: 'name/(.*)' => 'index.php?post_type=post'; Im able to use a url like http://mysite.com/custom_name/post_name using ...
0
votes
1answer
160 views

Adding a date archive to Custom Post Type

Having a little problem with URL rewrites. Trying to get the following URL to display all the sermons in 2014 http://example.com/sermons/2014 Currently it is looking for a sermon called 2014 ...
1
vote
1answer
70 views

IIS 7 Rewrite with parent categories

I have seen quite a few questions on here asking around the same thing but either have been unanswered or slightly different! I have tested the following on a linux machine and all works fine, when I ...
0
votes
1answer
111 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 ...
0
votes
0answers
62 views

How to include in a child page url the parent slug?

I have this page structure: Auto (parent) with child pages: Ford, Audi, Opel, etc. Normally accessing the opel page the url is example.com/auto/opel and I want to obtain ...
0
votes
0answers
27 views

Create permalink for my custom URL

I am trying to redirect all requests with "somestring" in the URL to a specific template. That means: http://mysite.local/mysitename/somestring to a specific template in file somefile.php below is my ...
1
vote
1answer
61 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 ...
0
votes
1answer
41 views

Is it possible to rewrite a page url Without setting the permalinks to Post Name?

Is it possible to rewrite the page url if your page link is for example localhost/wordpress/?p=123 ? Instead of post_name.php?.... (So the first option of permalinks and not post_name.
0
votes
1answer
223 views

Taxonomy rewrite pagination 404

I have rewritten my taxonomy url to the name of my posts type 'filter'. Because I have done this, my pagination does not work anymore on the url: http://www.website.com/filter/term-name/ So if I ...
0
votes
0answers
13 views

Wordpress double post name distinguish by term [duplicate]

I am working on a store locating Wordpress template where I have 5 categories for services. In each category I have 500 cities. I have rewritten my url from: http://www.website.com/post-type/post ...
0
votes
1answer
37 views

Adding pretty query parameters

A custom post type named shooting has a field (with ACF) with plenty of images. Those are listed on the single.php of the CPT and one of those images is displayed in full-ish size. I currently have ...