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
20 views

Remove child category from URL

I am moving a custom website with a WP blog to WP in one install The old URL was: domain.co.uk/blog/post-name The New URL is currently (while using a Category URL rewrite of /%category%/%postname%/ ...
0
votes
0answers
9 views

How can I merge this rewrite rule into Wordpress so that it does not generate 404's or 500's?

I've been trying to accomplish a simple url rewrite (really I want to move a multisite to a different url) as I explained here I did get advice on the url rewrite here in a way I understand, but now ...
0
votes
0answers
16 views

URL-parameters and RewriteRule gives 404

In Wordpress I have a template (lets call it template.php) that has content on the following page: example.com/template This page should be able to handle URL-parameters like. I got this to work. ...
0
votes
1answer
38 views

How can I write a rewrite rule to appear to move a multisite?

As we concluded in my question about trying to change the url of a multisite the simplest solution might be to add a rewrite rule, since it is infact only the end result that I'm concerned about here. ...
0
votes
0answers
28 views

How can I send an id over the url?

I need to send an id that I am going to collect and use in a plugin. Plugin will collect it in a page where I use plugins shortcode. The url I am trying to get is like ...
0
votes
0answers
27 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
0answers
7 views

Can I rewrite URLs for tags to be children of the CPT they refer to?

I'm creating a site with multiple custom post types and taxonomies, and I need to restructure the URLs for the taxonomies so that they appear "beneath" the urls for the CPT archives. For example, I ...
0
votes
0answers
42 views

Where should I insert code to dynamically generate page content?

I would like to generate dynamic pages based on a third-party API. However, I'm not sure where in the WP loop to capture the request and generate the content. For example, if a user is requesting a ...
0
votes
0answers
15 views

URL Rewrite Inconsistency Between WP Installs

My plugin registers multiple custom post types which are grouped under different types of business objects. URLs are rewritten in the form: nebfm/busines_object/post_slug/post_name. On my local WAMP ...
0
votes
1answer
35 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
1answer
30 views

Best way to specify “article type” in URL

I'm helping a small blog out that posts a few different "types" of articles. These article types are shared across categories. We want to put the article type in the URL. So the structure would look ...
1
vote
1answer
27 views

expecting 404 but redirecting to post with url subdirectory in post title

I'm seeing something unexpected, although I'm not sure whether it's a feature I can disable or whether it is something introduced by the custom theme I'm using that I need to track down. If I enter a ...
0
votes
0answers
26 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
1answer
53 views

how to add parameters to URL based on users input

I'm not sure if posting this here is correct and I apologize if it does not. I am using Gravity Forms for users to fill out to refer a friend. Once completed I am trying to figure out whether it's a ...
0
votes
1answer
21 views

Blog posts are not appearing as subs of Blog Page

I'm trying to set up a new blog on my company website and blog posts are not showing up as subpages to the blog page. I would like for the url to all blog posts to read: ...
0
votes
0answers
27 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
43 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
80 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
51 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
47 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
62 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
88 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
38 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
64 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
53 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
25 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
18 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
19 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
51 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
36 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
24 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
80 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
55 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
16 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
29 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
36 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
14 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
24 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
24 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
33 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
26 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
153 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
33 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 ...
2
votes
0answers
61 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
38 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
62 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" ...