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.

learn more… | top users | synonyms (1)

1
vote
1answer
18 views

Exclude / Blacklist Permalinks

I'm building a website and I was wondering if it is possible to exclude certain permalinks from beings used. For example: if my website has a demo of a project running on www.example.com/demo/ and a ...
0
votes
1answer
18 views

How to display post permalinks instead of pages?

I am working on a website for comics, and whenever you go to it, it should open the latest POST. I have no pages, I deleted them all. All the website has, is posts. So I want that whenever people ...
0
votes
1answer
83 views

Improve Custom Post Permalink Structure

I've created a custom post type, with an easy permalink structure. Now I want to enhance this permalink structure with some extra information. public function custom_post_mission() { $labels ...
0
votes
1answer
40 views

Point domain to different webhost's subdirectory wordpress

Now there may seem to be duplicates for this question but nothing concise so I'm going to try: I have a wordpress install setup at mydomain.com/subdir - hosted on fatcow. I went ahead and bought a ...
0
votes
0answers
9 views

Wordpress Multisite - Change Permalinks On Subdomain Posts To Postname [duplicate]

There really aren't any direct questions about Permalinks for the subdomain being the postname, and neither any answers. So as the title says, is there a way to simply setup the permalink structure ...
0
votes
1answer
36 views

How to translate “Permanent link to” text

My theme contains the following to create permalinks: <h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ...
0
votes
0answers
73 views

WooCommerce get query string problem with permalink

i using WooeCommerce for my site. This is my custom loop product in woocommerce.php located in my theme folder: if(isset($_GET['product_cat'])){ // list products by category } When permalink set ...
1
vote
1answer
44 views

Is a permastruct possible on pages?

Since a couple of weeks I'm trying to create my own rewritings on pages. I read a lot about rewriting with posts and custom post-types. BUT: I have pages that I call with variables. How is it ...
1
vote
1answer
170 views

How to get this JavaScript working with get_permalink

I am pretty new to this awesome forum, therefore not sure if this question below belongs here. A little JavaScript, which works perfect when I drop a static url in it but I can't figure out how to do ...
0
votes
1answer
44 views

Redirect Pretty Permalinks to Ugly Permalinks

I want to change the permalinks from /%postname%.html to the default ?p=%post_id% permalink. I know how to change the permalink structure that from WordPress admin panel. However, I have over 30000 ...
0
votes
0answers
23 views

Permalinks not working when bootstrapping from parent directory

I am trying to use WordPress from a subdirectory but access it from its parent. This is on order to try Capistrano deploys. I have the following directory structure index.php .htaccess /wordpress ...
0
votes
1answer
19 views

defining child page permalink

I have written a page whose slug is mypage. I have set it as a child of mymainpage. However, I want that its permalink is www.example.org/mypage in place of www.example.org/mymainpage/mypage. Is it ...
0
votes
1answer
31 views

Latin character conversion

I'm managing a wordpress blog in Spanish for the first time and I'm currently migrating servers (e.g server A and B). The problem is that even though the file names are correctly sanitized or escaped ...
1
vote
0answers
68 views

Hierarchical permalinks for custom post type and taxonomy

I have registered the custom post type "word" and the custom taxonomy "wordcat". Now what I want is proper hierarchical permalinks. So I've been searching the web for quite some time with no result. ...
0
votes
1answer
94 views

How to get category slug link? ( include parent categories)

for example, if main category slug is cars; sub-category slug is: Ford; how to get the permalink of Ford, including its parent categories' slug? ( get_category_link() returns mysite.com/?cat=19 type ...
1
vote
0answers
126 views

How to get pretty URLs with add_query_arg in permalinks

With add_query_arg() it is nice to add additional parameters to an URL and it is also easy to create a rewrite rule. So far so good. But the problem is the URL replacement done by wordpress. When I ...
0
votes
1answer
70 views

Wordpress permalink still not working (error or not understood?)

After hours in understanding wordpress permalinks I'm despairing and hope that somebody can help. I have the following link: www.mysite.com/?page_id=923&bahn=BER After activating the ...
0
votes
1answer
48 views

Best way to add internal link in widget

I'm looking for a way to transform a static piece of code into a widget to display in different sidebars containing a simple internal link. The basic code is: <div class="my-link-box"> <a ...
1
vote
2answers
50 views

Changing Permalinks for Default Post type to reflect navigation

I have a particular issue with setting the permalink structure for "posts" on my website. Right now, I have the default "posts" page living under www.mywebsite.com/news-events/current-news/ I'd like ...
2
votes
1answer
60 views

Multisite wordpress and subdomain URL collisions

I have a multisite WordPress installed on a server using a domain, site.com and I have a subdomain setup in WordPress, so subsites are at sub1.site.com, sub2.site.com etc. In addition to this, the ...
1
vote
1answer
22 views

How to 301 all posts

I am currently using domain/%postname%/ but I am looking to change it to domain/folder/%postname%/ - I unsure how to 301 all posts. If I was to use something like Redirect 301 /$ domain/folder/$ I ...
0
votes
1answer
33 views

Using a taxonomy value as part of a post URL

I'm working on a Real Estate site using the following permalink format for properties: http://www.site.com/property/1330-5th-avenue (property is a custom post type for listings) How can I ...
0
votes
1answer
32 views

Editing the variables in a custom URL

I have an existing page in a custom theme that expects a URL in this form: /story?user=1 but I'd like to be able to use better URLs as well, eg: /story/username. I've tried to add a rewrite rule in ...
0
votes
1answer
32 views

Slug adding -2 even though the other posts with the same name is in a separate post type

This is annoying, and because of this I separated their post types. Now, I have two post types: motogp-2013 motogp-2014 In my post type motogp-2013 I had an event called 'Grand Prix de France' ...
0
votes
2answers
48 views

Permalink Trouble with Custom Post Type

I have a custom post type called "work" and it has a taxonomy called "categories". Currently "/work" and "/work/category_slug/work_slug" works great. However "/work/category_slug" does not. I get a ...
0
votes
0answers
51 views

Edit permalink before publishing a post

How can I check and edit permalink of a post before it publishes. Using permalink is not enough customized, because I want my permalink to be like: ...
0
votes
0answers
31 views

Rewrite CPT permalinks with 'Post 2 Posts' connection

I have 2 CPTs titled 'Songs' & 'Artists' that are connected (Artists → Songs) via Posts to Posts Currently, the permalink structure for 'Songs' is www.my-site.com/songs/%postname% What I would ...
0
votes
0answers
42 views

exec JavaScript using add_action when publish_post

How can I execute some Javascript code when an user publish a post I want to do something like this before publish a post: add_action ( 'publish_post', 'custom_links' ); function custom_links() { ...
0
votes
0answers
36 views

how to force CUSTOM POST TYPES to use default permalink

my custom post type sample link is : mysite.com/custom-type-name/post_slug i want that my custom post types used the permalink structure, which i have set in Options>Permalinks (exactly, i want ...
0
votes
0answers
53 views

Change permalink based on post category

I am looking for a way to change the permalink structure based on the category a post is in. If the post is in the "blog" category I would like the permalink to be /blog/%postname%/ and if it is any ...
0
votes
1answer
169 views

Hide permalink and preview button and link on custom post

anyone know how to custom box that contain "Publish,save draft,and preview button" ? i'll hide all button except Publish button. and same as "change permalink" also "view,delete,edit" link inside post ...
0
votes
3answers
186 views

How to get url of a post from admin panel

I want to get post url from the back end edit post page, the edit post url is : www.ddd.com/wp-admin/post.php?post=1&action=edit the real post is: www.ddd.com/wp/?p=1 since the user can edit ...
1
vote
1answer
54 views

Using WP Rewrite, but just not “getting it”

I'm trying to use WP Rewrite to avoid having to enter anything into an htaccess file. So far, I have this one working just fine (it loads a post from a Custom Post Type): $leader_structure = ...
0
votes
0answers
33 views

Automatic redirect on change of permalink not working if child page

When changing the name of a permalink on a per post basis wordpress will automatically redirect the old URL to the new URL, but not if the page is a child page. e.g: Changing ...
0
votes
1answer
67 views

replacing post ID by custom post name in url

I am stuck in replacing post ID by custom post name in url. link is as shown below: href="'.$url.'/'.$options['applyp'].'/?pos='.$post[$i]->ID.'" i need to replace ?pos='.$post[$i]->ID.' by custom ...
0
votes
1answer
48 views

Permalinks with custom taxonomies and regular categories

I have created a few custom taxonmies in Wordpress (e.g. author, book, comic..). I also have a few categories using the built-in category system (e.g. news, review,...). I try to get a permalink ...
0
votes
1answer
38 views

Custom Taxonomy List links being re-written

I am trying to show a list of terms from my Job Category. I tried the following: function job_listing_taxonomy_list( $taxonomy,$hide ) { $args = array('order'=>'ASC','hide_empty'=>$hide); ...
1
vote
0answers
26 views

Change Permalink of attachment page

How to change permalink of attachment page. Current: domain.com/post-url/attachment-url/ What I want : domain.com/attachment-url/ Also, How to redirect old pages with new slug.
0
votes
0answers
15 views

Endpoints help with permalinks

I'm trying to do the following, and I believe its done with endpoints, but I'm not entirely sure. I have 2 different CPTs. Let's call them "Movies" and "Music." The music is always from movies, but I ...
0
votes
0answers
70 views

get_permalink() with wp_rewrite giving wrong permalink?

I have two custom post types: news and special, each would require ID within the url, like example.com/news/ID or example.com/special/ID. Since wordpress's custom post type always have post title in ...
0
votes
0answers
51 views

Custom Post Type Permalinks Problem

looking for some help with a permalink structure problem. I am using this code here http://pastebin.com/QfgAMkfV as a plugin with hopes of creating a structure like so /films/ /films/film-name/ ...
0
votes
1answer
33 views

Permalink for pages

As you know we can change the post permalink as we want /%postname%.htm -->/mypostname.htm Can we do the same for the pages also? /%pagename%.htm -->/mypagename.htm permalink for the pages ...
0
votes
0answers
38 views

Changing wordpress permalinks for new posts only

I currently have many posts using the default permalink structure, domain.com/?p=123 I would like my new posts only to use a different permalink structure, domain.com/year/month/post/ The problem is ...
0
votes
0answers
62 views

?posts_type=xxx not rewritten

After some more testing and tweaks my main problem seems to be the order rewrite rules are applied, and the second is canonicalization. I'm using this in function.php makes year archives work: /** ...
0
votes
0answers
38 views

Rewrite permalinks using custom taxonomy or category

I have a blog I'm making for sporting events and I have categories (News, Commentary, etc.) and a custom taxonomy called "events" (100m sprint, long-jump, etc.) I'm trying to set up a permalink ...
4
votes
1answer
108 views

Making %author% the rewrite slug for custom post type causes 404s on non CPTs

This has been driving me absolutely mad. I created a custom post type which I plan to use to create pretty affiliate/redirect links throughout my site. Here is my register_post_type(): ...
0
votes
0answers
29 views

Custom post types and categories for my unique permalink situation

recently I've taken on a project that is a bit overwhelming due to the fact I have never made a website this big before. It's a travel website that features reviews, photos, user articles, etc. ...
0
votes
0answers
66 views

custom post type post sub page

I have a CPT and my permalink format is like this: http://animup.net/anime/attack-on-titan/ I want to be able to have a sub page like http://animup.net/anime/attack-on-titan/download My code looks ...
0
votes
0answers
31 views

Custom Permalinks Structure with particular word

I have some headache trying to customizing my permalinks... So here is what I need : 1) "mysite.com/news/" has to display all the posts. 2) "mysite.com/news/firstcat/" has to display all the posts of ...
0
votes
0answers
43 views

Capital letter in URL

How can I make all of my page names in URL begin with capital letter? I need this to maintain PAGERANK. Example http://www.example.com/page ---> http://www.example.com/Page