A permanent link to an item (a blog post, an attachment, ...). The default structure is "?p=123", but WordPress can handle "pretty permalinks" and will rewrite them internally to the former version. If you have a question about special rewrite structures you should use the [url-rewriting] tag.
4
votes
3answers
227 views
Taxonomy term in permalink
I have a big problem. I have been banging my head on this all day long. It seems to be a stupid easy question. Possibly also with a stupid easy answer. But I can't seem to find it.
What I want is ...
4
votes
1answer
1k views
Custom Post Type Archives by Date with Custom Permalink
I'm a bit stuck with getting the custom permalink for custom post type (CPT) archive to work.
I've registered my 'press_release' CPT as following:
add_action('init', 'press_release_post_type_init');
...
4
votes
1answer
425 views
custom post type and custom taxonomy permalink
I have 2 pages.
/client-a/
/client-b/
I have a custom post type, called "case":
$case_type = array(
'labels' => $case_labels,
'public' => true,
'publicly_queryable' => true,
...
4
votes
1answer
123 views
Permalinks so that one custom post type appears to be a child of another, not working
Currently I have two post types, "products" and "products-data" they are separate post types; however, for all intents and purposes products-data is a child post of products. The relation is ...
4
votes
3answers
312 views
How to add a custom URL placeholder to author archives?
I am working with a client who has a directory site that allows users to create accounts, then lists of items from the directory. Right now, whenever a user creates an account, she gets a profile URL ...
4
votes
1answer
539 views
use navigation path from menu for permalink
I now switched to permalinks and defined my own structure
/%postname%. If I click on a menu item it takes the path from the parent page (hierarchy defined directly when editing a page). I want that ...
3
votes
7answers
7k views
How to use relative links on my pages?
In my web pages I want to use relative links instead of absolute links.
However, pages do not allow php code inside them, so i cannot do to from a url in a relative manner.
How does one get ...
3
votes
3answers
338 views
Strange permalink issue: can't rename /company-2/ to /company/
I created a page titled company. But the permalink turned it into /company-2/, trying to change it to just /company/ doesn't work. The website just has 8 pages and none is called company (don't know ...
3
votes
3answers
1k views
Need help with friendly URL's in Wordpress
I'm creating som custom templates in Wordpress and I'm passing some data in the URL's.
Currently my URL looks like this:
http://www.mysite.com/designers/?id=43&name=designer+name
The URL ...
3
votes
2answers
250 views
the_title() and the_permalink() won't work on AJAX calls
I've run into a strange problem.
I have a custom loop built with get_posts that works fine when loading the page normally:
<?php
$rows = get_posts(array(
'post_type' => ...
3
votes
1answer
1k views
How to set permalink structure via functions.php
I'm setting up a Wordpress Network and wanted all new sites to have the same permalink structure (i.e. "/%year%/%monthnum%/%postname%/"). I'm wondering if this is possible to do via hooks or hacks in ...
3
votes
1answer
50 views
Is there an action for when permalinks are rebuilt?
In my plugin, I have a list of titles and permalinks in the options table. It's updated every time my custom post type is saved.
Since I'm saving permalinks the option data can become bad if the ...
3
votes
3answers
452 views
Nested custom post types with permalinks
I am trying to set up a multi-level custom post type structure with permalinks that look like authors/books/chapters, with authors, books, and chapters all set up as their own custom post type. For ...
3
votes
3answers
356 views
How to control which category will be picked for the slug of a post?
I'm using the permalink structure "/%category%/%postname%/".
What bothers me is that I have posts that belong to two categories. And of course, unfortunately, Wordpress always picks the wrong one for ...
3
votes
1answer
1k views
Pretty URL with add_query_var
I'm trying to add a 'sub post' to each post on my site, eg
site.com/product-one/changelog
site.com/product-two/changelog
site.com/product-three/changelog
This is the code I'm using atm, which I ...
3
votes
3answers
435 views
Custom permalinks
We have a custom type music.
/music/
/music/post-name/
Also, we have a tag-like taxonomy genres. Its urls are:
/music-genres/genre-name/
I'm trying to make urls like:
/music/
/music/post-name/
...
3
votes
1answer
256 views
Custom Permalink: /year/month/post-goes-here/?
I'm experimenting with adjusting permalinks (for purely educational experimentation).
What would I need to place in the "Custom Permalink" option to get my post URLs in the form...
...
3
votes
2answers
293 views
Minimal custom permalink structure
I'm aware that there are posts discussing this issue already (e.g. http://wordpress.stackexchange.com/questions/1364/what-is-the-best-permalink-structure-for-seo) but I have a specific set of ...
3
votes
2answers
278 views
How to get the clean permalink in a draft?
When I use the_permalink or get_the_permalink in a draft or scheduled post, the URL provided is not the "final" permalink—it is the unpretty ?p=xxxxx version.
How can I get the final, "clean" ...
3
votes
2answers
403 views
Can /%year%/%monthnum%/%day%/ structure tags be added to custom post type permalinks?
Just wondering if anyone had tried using any of the structure tags available to post permalinks with custom post types... I'm moving my "listings" posts on a site I manage from a category hack under ...
3
votes
1answer
794 views
Changing the URL Structure of a Paginated Custom Post
I have a custom post type for slideshows that creates a paginated post and each slide is a separate page. The data for each slide is saved in the custom fields and each slide has a title set saved in ...
3
votes
2answers
116 views
CPT archive 404ing when using a custom taxonomy name as a variable
So, I'm using a custom post type archive and generating a JavaScript-based filtering interface for sorting through results.
Here's an example: http://www.inverity.org/sermons/
Now, what I'd like to ...
3
votes
2answers
57 views
How to custom change author base without $this->front?
I have a sample code:
function change_author_permalinks() {
global $wp_rewrite;
$wp_rewrite->author_base = 'u';
$wp_rewrite->author_structure = "/" . $wp_rewrite->author_base . ...
3
votes
2answers
150 views
Understanding Permalinks on Custom Post Types
I hate to try to reinvent the wheel here, but none of the suggested post seem to work in answering my question. I am building a system for our 30 Under 30 honorees, which is basically setup as a ...
3
votes
2answers
458 views
where is permalink info stored in database?
I see that I can edit permalink information in wp-admin page > settings > permalinks. However, where is that information actually stored in the database?
3
votes
2answers
157 views
Custom post type 404s with rewriting even after resetting permalinks
I created a custom post type, of which the (simplified) arguments are:
register_post_type(
'Event',
'public' => true,
'rewrite' => array( 'slug' => 'eventy'),
'has_archive' ...
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:
...
3
votes
1answer
92 views
Can't add a Page with Name 2011
I've no idea why i can't add a Page with Name 2011. Wordpress changes the URL Slug to 2011-01.
There is no Post with this Name in my Database. I tried zu flush my rewrite rules but nothing seems to ...
3
votes
2answers
562 views
Why does Wordpress Pagination Remove the Spaces from my GET Variable?
I'm passing a GET variable at the end of my URL's as my search parameter. When I do a regular search, everything works fine:
www.mysite.com/?find=my+search
However, when I click over to the second ...
3
votes
3answers
814 views
Broken wordpress permalinks on pages only
Not sure when it happened but the custom permalinks for pages on my client's Wordpress site have broken. I can fix it by reverting back to the default permalinks and then using the custom permalinks, ...
3
votes
2answers
534 views
Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
(Moderator's note: Title was "Convert into nice URL a shared custom taxonomy URL with a query string value")
I have a custom taxonomy template: taxonomy-country.php used by two (2) Custom Post Types: ...
3
votes
1answer
136 views
Social Media Links on homepage - within posts/post loop
On my WordPress site I've got a social sharing bar that I created myself. Here's a picture of the social sharing bar: http://d.pr/i/ucSG - I have the social sharing links included within 'index.php' ...
3
votes
1answer
157 views
Modify custom post type rewrite rules in a separate function
I want to modify the rewrite rules for a custom post type, tribe_events, which is registered as a post type within "The Events Calendar" core plugin files (the-events-calendar.class line 24):
...
3
votes
1answer
199 views
Limiting the number of words or characters in the slug/permalink
Limiting the number of words or characters in Wordpress slug/permalink. I would like to limit the number to the first 5 words (or 20 characters) even if the post title is longer.
example:
Title: ...
3
votes
1answer
270 views
Dynamic page slug for Custom Taxonomies?
I have a custom page "fine-art", which lists the different types of fine art that we produce based on the custom-taxonomy "fine_art_category". Some of the custom taxonomies are wood, metal, Fine Art ...
3
votes
1answer
310 views
301 Redirects for Changed Permalink Structure & Category Base
I'm redeveloping a site on a fresh WP install. The old site had the following permalink structure:
domain.com/CATEGORY/POSTNAME/
The new site has the following permalink structure:
...
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
...
3
votes
1answer
1k views
How do I set a custom base URL for standard posts?
Currently, permalinks are set to /%postname%/.
I'd like to prefix "blog" before all standard posts.
I'm using several custom post types, each with their own rewrite rules in the setup.
How can I ...
3
votes
1answer
706 views
Non-Latin Characters in permalinks
I was opened this idea 7 months ago:
http://wordpress.org/extend/ideas/topic/non-latin-characters-need-love
Still i couldnt find a solution for it.
Simply what i want?
Want to use "şŞ İı Ğğ Üü Öö ...
3
votes
1answer
49 views
Removing hierarchical pages in the permalink
I have several pages set up in a hierarchy on my site. Currently the site's pages and URLs look like this.
Page name | Current URL | Preferred URL
...
3
votes
1answer
121 views
rewrite get parameter with custom post type
I am trying now for a couple days to solve the following Problem:
I have a custom post type called gallery. I need the URL
http://example.com/gallery/FOOBAR
to be parsed like
...
3
votes
0answers
178 views
Best way to programmatically link to multiple categories (union/intersection)
This question assumes that you know about the various complex taxonomy queries available from the WP_Query API. I know about tax_query as well as about things like category__and, which allow you to ...
3
votes
3answers
315 views
Hierachical Custom post types permalinks not working
Been looking for someone with this same problem for hours now so I decided to post my own thread.
I have a hierachical custom post type called contact-information. Using this I have parentpages ...
3
votes
1answer
268 views
Permalinks all messed up, I am helpless [closed]
Today I tried to make the Permalinks of my Wordpress site more SEO friendly. I got it working for all links, except the ones linking to a custom post type page. I Googled the problem and found out ...
3
votes
0answers
59 views
Add /demo/ slug with rewrite rule [duplicate]
Possible Duplicate:
Add extra parameters after permalink?
I need to add a slug to every post.
Current permalinks
http://www.my-domain.com/2012/01/01/my-post-title/ or
...
3
votes
4answers
3k views
URL Rewrite + Page + Custom Post Type = Unusual Redirect
Yet another URL rewrite issue :)
The Problem
I have a URL rewrite rule that should work, but against all logic it redirects without passing the query var.
The Juicy Details
The site has a page ...
3
votes
1answer
235 views
Help with a TV series Rewrite structure
Not sure if this is possible, but bear with me. I think I am halfway there.
First a little background: I'm using the build in hierarchy in WordPress to form relationships between post types. I ...
3
votes
1answer
83 views
Creating custom permalink structure for languages
I've written a simple multi-language system, whereby clicking on a flag icon sets a one year cookie containing a two letter language code (e.g. nl, de, etc).
I hook into the wp action to read the ...
3
votes
1answer
139 views
Custom taxonomy on permalink
I have a long time problem and look forward for your help.
I have a custom taxonomy of "city" (it is no hierarchical like tags).
I just would like my URLs to look like this:
...
2
votes
4answers
637 views
Is there a user-facing interface to edit an attachment's permalink?
If you use the [gallery] tag at all you know that permalinks for image attachments end up like blog.com/2011/03/18/post-permalink/attachment-permalink.
The URL extension from the post permalink ...
