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
134 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
24 views

Rewriting URLs with query strings and preserving them

straight to the issue - I MUST preserve link structure as follows, otherwise the baby squirrels die: website.com/blog.html?comments=%id% where the %id% stands for ID of post basicaly, that ...
1
vote
0answers
84 views

How to change the Author Slug from Username to Nickname and deal with Special Characters

I need to change the author slug from username to nickname: This is what is set by default: http://domain.tld/author/(username) This is what I need: http://domain.tld/author/(nickname)-(author-ID) ...
3
votes
1answer
179 views

How to stop wordpress to make the default query?

My goal is a redirect to a custom template based on some new rewrite rule, but without having wordpress to make unusefull queries. my code: function add_rewrite_rules() { add_rewrite_rule( ...
1
vote
0answers
89 views

Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)

I have a custom post type named "tours" and a custom taxonomy named "tour_type". "tour-type" taxonomy is hierarchical. In "tour-type" taxonomy, parent terms are limited to "eco-tours", "daily-tours", ...
1
vote
0answers
207 views

Pretty URLs for Custom Post Type & Custom Taxonomy with Duplicate Slugs on WPML

I'm interested getting some help for a rather complex setup. I'm working on a publication and interested in creating a special subsection with a custom taxonomy. Think of this as an editorial ...
0
votes
0answers
29 views

Add custom dynamic string to permalink structure wordpress

I am adding dynamic string to permalink but the problem is all the pages which runs from page.php goes to 404 whereas the detail page of the post is working fine. Code: add_filter('post_link', ...
0
votes
1answer
36 views

URLs unchanged after migration

I have my company's blog at http://blog.analytixsolutions.com and now I've moved it to http://blog.aixsol.com but I have the URLs still pointing to the former address. I used the commonly recommended ...
0
votes
0answers
24 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
23 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 ...
0
votes
1answer
67 views

Rewriting a date hierarchy into a 'yyyy-mm-dd' slug

I am building a magazine website with an issue custom post type. The slugs for each issue follow the format YYYY-MM-DD according to the issue's publish date. Currently the permalinks are set up as ...
1
vote
1answer
98 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
1answer
63 views

How To Rewrite WordPress Pages URL Only?

I have my WordPress pages URL as www.example.com/WP/sample-page and I want to make it like www.example.com/WP/p/sample-page.html For this purpose I used a Plugin name "Pages with extension" and it ...
0
votes
1answer
39 views

Change Admin URL

I changed my Wordpress directory structure quite a bit. Here's what I have: define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wordpress'); define('WP_HOME', 'http://' . ...
0
votes
1answer
77 views

Although rewrite engine is on, I get 404 not found on every page

My wordpress blog has encountered this issue about a week ago. Before that nothing was wrong with it. I got suspicious on web host provider, but they said many times that rewrite engine is on and it ...
0
votes
0answers
24 views

WP Rewrite Rules - insert custom rules

function rewriteRules() { add_filter( 'rewrite_rules_array', array( $this, 'my_insert_rewrite_rules')); add_filter( 'query_vars',array( $this, 'my_insert_query_vars')); ...
0
votes
1answer
83 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
24 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
34 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
59 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
33 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
44 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
9 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
61 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
52 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
33 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
32 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
46 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
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
33 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
62 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
189 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
63 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: ...
1
vote
2answers
110 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
179 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
616 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
243 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
89 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
67 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
47 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
22 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
26 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
95 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
50 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
48 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
285 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
113 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: ...