Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"
3
votes
1answer
143 views
Remove unwanted part of permalink custom structure from CPT url?
My site currently has regular posts (in a section called "Trend Watch"), as well as a Custom Taxonomy (called "Region").
My permalink settings have this Custom Structure:
...
12
votes
2answers
5k views
Mixing custom post type and taxonomy rewrite structures?
Basically I want to achieve a glossary using custom post types and have some issues setting up rewrites the way I want them to be. I want it like that:
The main glossary URL:
...
0
votes
2answers
679 views
How do I create a dynamic page?
I want to create something similar to what buddypress does with member pages. For eg;
http://www.example.com/members/foo
http://www.example.com/members/bar
etc.
I tried looking up the buddypress ...
1
vote
1answer
140 views
How to add a variable as a tag base?
I need to add a tag base with the country name to filter content based on that variable.
Something like:
http://base_url/country/page_name or http://base_url/country/post_type/post_name
The content ...
0
votes
1answer
228 views
change url for portfolio image
I am working on champer theme , I add portfolio by guideness of documentation, but when i click on image , its go on another page, but I want to stay in similar page, not changing. how can I do this. ...
-1
votes
1answer
61 views
Generated URLs don't reflect accurate URLs.
Evening,
I'm getting some incorrect links generated by my theme.
WordPress Address (URL): http://localhost/newgameplus/wordpress
Site Address (URL): http://localhost/newgameplus
Clicking on ...
1
vote
0answers
94 views
Having a sub directory with a separate site
Hi I am new to wordpress and I have successful installed my blog wp site. The location of this is on my go daddy hosting server under "\". So WP has installed everything there and I see different ...
1
vote
0answers
55 views
ngnix Url rewrite doesn't work
on my server i have installed magento,which is in my root directory. then I created a sub-folder named blog in my site's server. access the blog url is:
http://example.com/blog ...
3
votes
2answers
353 views
Rewrite custom post type rss feed links
I am looking for a way to rewrite my custom post type feed located at
http://localhost:8888/feed/?post_type=post
to
http://localhost:8888/feed/portfolio
this post suggests using
...
1
vote
0answers
85 views
Evaluating a external rewrite rule before internal wordpress rewrite rule
I am been plucking out my hairs since last few days trying to solve this problem:
I want to convert my urls from format
http://example.com/prodsearch/category/tag1-tag2-tag3-tag4
to
...
3
votes
1answer
44 views
When to use which plugin output method?
I'm a Drupal dev, getting into Wordpress. So far as I can tell there are a few different methods by which a plugin can output content on to a Wordpress site:
Shortcode
Rewrite API
Widget API
...
0
votes
1answer
577 views
Taxonomy with_front causes all
I have a custom taxonomy, which sets the with_front to false to try and get the URLs to look like /%type%/%brand%/%product%/, degrading as we go down. This however is driving me nuts. Everything in ...
3
votes
1answer
136 views
How to create custom URLs for Custom Post Type sub sections?
Not sure how to ask this, because I'm not exactly sure what I'm asking.
I'm looking to use custom URLs (using rewrite rules maybe?) to create 'tabs' for a Custom Post Type. In the past I've used ...
4
votes
1answer
609 views
How to filter custom post type archive by meta value
I have a problem where I'm trying to build a calendar plugin for a client. I'm having trouble getting a date based archive for the custom post type I'm using. I'm not too well versed in how the ...
4
votes
1answer
166 views
How to remove dates from existing permalinks?
After doing some research about dates on blogs, it seems like it is a good idea to remove them from the existing posts.
Consider:
Self-hosted (on Bluehost)
Over 1,000 existing posts
All posts are ...
0
votes
1answer
158 views
wp_rewrite not working on third level url
I have the following code :
global $wp;
$wp->add_query_var('akey');
$wp->add_query_var('sort');
$wp->add_query_var('paged');
...
0
votes
2answers
248 views
custom wordpress rewrite
I am trying custom rewrite for following url...
http://www.domain.com/lp/1
and it would be parsed using
lp.php?p=1
I have tried following...
add_action( 'init', 'aagt_rewrite_add_rewrites' );
...
0
votes
1answer
164 views
Problem with permalinks [closed]
very weird things happening to my permalinks. its showing me 404 error when i switch to permalinks then when i change to default and then back to permalinks its fine until i actually edit url to ...
1
vote
0answers
152 views
IIRF + IIS 6 + Wordpress does not return 404 error
I use IIRF for Wordpress redirects in IIS6, but does not return "Page not found" (404), always redirect to home directory for all missing files.
Permalink Structure:
/%postname%.html
IIRF rewrite:
...
0
votes
2answers
546 views
Subdomains pointing to a permalink URL
I have Wordpress (v3.2.1) set up at domain.org.nz/wordpress with a number of pages set up as domain.org.nz/wordpress/services/example. I want to set up a subdomain, example.domain.org.nz to point to ...
1
vote
1answer
100 views
Get url-friendly version of the_title?
How can I get an url-friendly version of the post_title? I´m using anchor links for my posts on an archive page, and for the moment the posts get the post_ID as a hash tag but I would like to get the ...
1
vote
1answer
1k views
Custom post type's get_permalink returns wrong url
Currently my permalink setting is /paper/%postname%/.
I am developing a plugin, so the following is done during the activation.
I am programatically adding a new custom-post-type called 'meta', like ...
4
votes
2answers
150 views
How to seamlessly redirect between different archive and singular slugs?
I have a CPT with slug function (singular) and archive slug functions (plural).
Permalink structure for:
singular is /function/[postname]/
archive is /functions/[page-x/].
(can poke live at ...
2
votes
2answers
2k views
Making a plugin file accessible via url rewrite?
In my WordPress plugin I have a php file that generates some stats about the blog and outputs it as a simple text file. To access WordPress functions I've included this at the top of the file:
...
0
votes
1answer
383 views
How to manually add permalink base into htaccess file [closed]
And when I use the permalink editor to add a base, it messes up my author links.
My current url structure is www.example.com/123 (123 being post_id)
And my author URL is www.example.com/author-name ...
2
votes
4answers
1k views
Redirect all posts urls from without .html to .html
How can i redirect all posts permalinks to .html ,in Wordpress ? now all my posts url are ending in .html ,but before it was without .html
to be more clear ,for example a post url like this ...
2
votes
3answers
300 views
flexible rewrite 'ramble' URLs with Wordpress
I want to access my post with id 17 like this:
http://localhost/archives/17/moot-bla-foo-ramble
In other words, the id shall decide, everything thereafter may (or may not) be the slug or anything ...
0
votes
1answer
628 views
i want to rewrite my custom plugin url
I am Working on wordpress plugin. and i have a form like this
$action_url = WP_PLUGIN_URL .'/demo-url-rewrite/include/test.php';
<form action="<?php echo $action_url; ?>" ...
0
votes
1answer
255 views
Removing the base “Author” or changing it to something else. is it possible?
Is it possible to remove the AUTHOR base?
Is it possible change it to postedBy so that the urls is site.com/postedBy/joe
And finally, is it possible to remove a custom taxonomy base from the url so ...
0
votes
2answers
141 views
Category URL Management
When you keep the category base ( that is you don't remove it by a plug in) WordPress does allow you to browse to your 2 level deep category in two different ways as the example below would ...
1
vote
1answer
788 views
Rewrite wp-login.php URLS to static pages?
I'm struggling with getting a few things in WP to redirect.
I'm using a front-end profile / profile editor, and I'm also using a front-end login/register.
Naturally I would like to redirect the ...
0
votes
1answer
338 views
Rewrite rules for using the same base slug for multiple content types
I'm not sure if this is possible or not, but here is what I'm trying to achieve. I'm using WooCommerce, and I have it setup to prepend a base slug and the product category to my product permalinks. ...
0
votes
1answer
274 views
Creating /blog subsite on WP multisite network
I've had a site for a few years that till yesterday consisted of two WP 3.2.1 installations- one for the main site and one for the blog, which had a different theme and was located at [site.com]/blog.
...
0
votes
1answer
68 views
Wordpress redirection to get url friendly
I want to get url friendly for pass data to page from other page.
I explain :
I have on i classic wordpress page, url like it : ( example.com/agent/name_agent )
it's url build dynamically. ( ...
5
votes
2answers
424 views
Permalink format: singular or plural
The default is singular, e.g.
http://example.com/category/apple/
But I am wondering if it is better to use the plural form, e.g.
http://example.com/categories/apple/
Are there any guideline on ...
1
vote
1answer
545 views
404 Issue w/ Custom Post Type - using Meta for Permalink rewrite
I'm trying to rewrite my permalinks using meta data from my post. The permalink rewrite works- but I'm getting the 404 issue when I try to view the post.
I've flushed by visiting the permalink ...
4
votes
3answers
499 views
add_rewrite_rule not loading correct page nor getting variables
I've trying to get a showreel title and video id into an URL that can then be accessed by the page.
i have the two in the same URL and it either doesn't work or only one comes in. Currently the page ...
4
votes
2answers
4k views
Custom Post Type URL Rewriting?
I setup a custom post type for my portfolio projects. The main URL for this is located at /projects/
Now I've also setup my blog posts permalink to /articles/*/ for the permalink structure. This ...
0
votes
1answer
94 views
How can i maintain permalink structure and avoid a 404 error when loading external content?
I created a page called Catalog and also a template called page-catalog.php. The url looks like this now:
sitename.com/catalog
So far so good, however i use some custom php stuff to list products ...
0
votes
1answer
49 views
rewrite file to wordpress
I have in my plugin dir a endpoint.php and need to rewrite like this:
http://domain.com/API/endpoint.php
This is the code I've used:
add_rewrite_rule( 'API/endpoint.php', ...
0
votes
1answer
466 views
How to properly prefix blog post URL's
I want to prefix my blog posts with /news/ and changing my Permalinks to /news/%postname% seems to do the trick.
However, I also have a few custom post types and for some reason those URL's are now ...
0
votes
1answer
174 views
Combine 2 different custom post slugs into a single permalink?
Need some help with this URL rewrite.
I have 2 custom posts set up, 'company' and 'job'. I have a single-company page, and a single-job page, which work fine. A company can have many jobs, and I'm ...
1
vote
2answers
4k views
Slug for custom post type archive
I created a new custom post type 'Projects' and want the archive of all posts of this type to be available at mysite.com/projects. At the moment all project single posts are shown with a slug as ...
0
votes
1answer
845 views
add_rewrite_rule: $matches var not replaced by captured value
I want to access a plugin file (when <a> is clicked) without exposing actual path of the file. I am using the following rewrite rule:
add_rewrite_rule( 'continue/([0-9]+)/?$', ...
0
votes
1answer
495 views
Custom Taxonomy Archive URL rewrite
I would like to create an archive page with a list of my custom taxonomies that link to a page that shows posts with that taxonomy relationship.
I registered my taxonomy like this:
...
0
votes
1answer
227 views
Custom Post Type Date Based Archive URL rewrite [duplicate]
Possible Duplicate:
custom post types, wp_get_archives and add_rewrite_rule
I have a custom post type called "course" and I would like to create a date based archive similar to the default ...
0
votes
2answers
186 views
Help with url rewrite
How can I turn a URL like:
http://site.com/?project=5
into:
http://site.com/project/5/
?
I was looking the rewrite doc here:
http://codex.wordpress.org/Class_Reference/WP_Rewrite#Examples
and ...
1
vote
1answer
74 views
Permalinks for custom taxonomy stopped to work
I'm not sure when this happened, I just noticed it. I have custom taxonomies and post types.
For the longest time I was able to go to domain.com/taxonomy/term and it would display the posts related. ...
1
vote
1answer
176 views
How to define a callback for an URI?
I have a function in functions.php like so:
function myplugin_mycallback($id) {
// do something
}
I want this function called whenever a URL like myplugin/mycallback/xxx is accessed.
How/where ...
0
votes
1answer
281 views
add_rewrite_rule() not playing nice with child pages
function my_add_rewrite_rules() {
add_rewrite_rule('testing/([^/]+)?$', 'index.php?pagename=testing&event_slug=$matches[1]', 'top' );
}
add_action( 'init', 'my_add_rewrite_rules' );
function ...
