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)

0
votes
1answer
473 views

Problem with special character WordPress

I have a WordPress and everything seems perfectly fine but I have this page that has title 77% and it shows error 404 page. How can I fix this? I am kind of sure it is because of the % in the 77%. ...
0
votes
1answer
1k views

Post will not load via ajax

I have inherited a WP 3.2.1 site which uses prettyPhoto to load content via ajax. This was working before I enabled permalinks on the site. The Custom Post Type UI plugin is installed. I can browse to ...
0
votes
1answer
1k views

Rewrite on custom post type permalink not working?

My theme has a custom post type called 'portfolio'. I want the url to display 'projects' instead. I've change the rewrite on the register_post_type function to 'projects' but it doesn't change the ...
0
votes
1answer
5k views

Sub-category and category in permalink structure

Is there any way (plugin or function), to include the sub-category and the category automatically in the permalink structure? I want an URL structure like this: category/subcategory/posttitle/
0
votes
2answers
792 views

rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked

thanks to Roman for pointing me in the right direction my plugin is almost ready. The only problem i am now facing is that i cannot get the rewrite_rules applying on activation they only work after i ...
0
votes
1answer
213 views

Page Name and Permalinks

I am using WordPress 3.2.1 and just added a page to my site called "Centre Management", which in turn created a permalink: http://localhost:8888/mysite/centre-management/ for that page I just ...
0
votes
2answers
1k views

Remove “attachment/” from the URL of attachment pages

Currently, the media for a page on /hello-world/ is shown on /hello-world/attachment/image-name/. Is it possible to remove attachment from this URL, and make it /hello-world/image-name/?
0
votes
2answers
196 views

Multiple permalinks

My blog uses the /?p=378 permalink structure for some years. This isn't very helpful with Google Analytics, and I would like to change it to the YEAR/MONTH/DAY/post-title structure. Is there a way to ...
0
votes
2answers
3k views

get_query_var() and permalinks

I have a permalink structure that looks like this, %category%/%postname% I have a category.php template coded up and and trying to pull of the post of a certain category, so for example my URL may ...
0
votes
1answer
346 views

rename 'page' URL fragment in pretty permalinks

i would like my WP URLs to be fully in my language so instead of: site.com/page/2/ i would like to have: site.com/pagina/2/ (in spanish) how can i accomplish this? i tried to do simple str_replace ...
0
votes
1answer
2k views

Link to Particular Page Within Template PHP Code

I want to simply create a link to a page that I know the title (or ID), but I want to make sure it works on any Wordpress install. What is the best way to do this?
0
votes
2answers
130 views

Permalinks set to /%postname%/ but still have links being indexed in the form ?p=x

I have a site that has pages being indexed in Google in the form... site.com/?p=1 site.com/?category_name=uncategorized site.com/?author=1 site.com/?m=201103 And since the permalinks of the site ...
0
votes
1answer
519 views

Can't get permalinks working!

I can't get WordPress pretty permalinks to work on my Fedora LAMP server. If I set them and click a page/post link I'll get a ""Oops! This link appears to be broken." The .htaccess file is writable ...
0
votes
6answers
4k views

How do I change the permalink structure without getting 404s?

after updating the permalinks from the default /?p=N to another setting (e.g. /%year%/%monthnum%/%postname%/) all my old links are broken and also the archive, catgories etc. side bars get 404 errors. ...
0
votes
2answers
169 views

Possible to make a subdirectory that loops through a single category?

I'm trying to separate the main part of my blog (the informational portion) from more commercial parts. WHen you load my homepage, I purposely exclude a category because I don't want my normal ...
0
votes
2answers
5k views

Strange behavior with a redirect loop - involves WPML multi-language plugin

I have a (client) site located at http://internationalgateway.us/. We are using the WPML Multilingual CMS plugin. When choosing another language from the homepage (in this case French, since that's ...
0
votes
2answers
3k views

Changing the category permalink structure

Hopefully another simple one, I have some nested categories, like this: - category-a - category-b -category-c The permalink for category-c is as follows: ...
0
votes
1answer
372 views

Permalink of a page that has already been deleted

I had a page.. and I by mistake added another one, so the permalink got appended by "-2" at the end. I had to delete one of the pages, so I happened to delete the one without the -2 attached. Now I'm ...
0
votes
1answer
369 views

RSS feed link on archives page not working

I am trying to add a RSS link on my website archive-pages, which means, Suppose I am on page http://mbas.in/location/mba-in-usa/ then on this page, I will be having a RSS LINK named link, when I click ...
0
votes
3answers
365 views

Use Regular Expression to get tag from permalink url during wp_rewrite in generate_rewrite_rules

I'm messing with wp_rewrite and have spent the past few hours trying to figure regular expressions out again (i seem to have forgotten.) This is probably extremely easy for someone. Basically I'd ...
0
votes
2answers
1k views

Custom URL rewrites for templates

I need to rewrite some URLs to custom templates. For example, I have a page at domain.com/page, and when a user clicks 'remove' on an element, it goes to domain.com/page/?remove=54. I'd like it to ...
0
votes
2answers
629 views

WordPress author.php template does not work with custom permalink structure! Help!

I just discovered a weird problem in my WP. The author archive (author.php) returns 404 error ONLY if i use custom permalink structure like /%postname%/ it shows up fine when I use the Default ...
0
votes
1answer
2k views

Writing Custom Rewrite Rules that Incorporate Category for Custom Post Types?

I'm registering a Custom Post Type and in the rewrite array I am trying to do something like this: 'rewrite' => array('slug' => "explore/resources/".$CATEGORY, 'with_front' => false) I ...
0
votes
2answers
13 views

Move Wordpress to subdirectory, keep ALL URLs

I currently have a website at site.com and have WordPress installed in me website's root folder. My website includes pages like: site.com site.com/page site.com/2015/10/01/post.... site.com/login ...
0
votes
1answer
17 views

Custom Post Type with Configurable Sidebar via ACF

I am using a custom post type (CPT) trainings on one of my client's sites. I've also added a CPT called sidebars, which can get linked into trainings or pages via the "relation" field type. To get an ...
0
votes
1answer
16 views

Add %taxonmy in worpress custom permalink structure

In default wordpress support %category% tags in custom permalink structure. I need to use %taxonomy in permalink structure .How to do that ? is there any filter are available. Please help.
0
votes
1answer
27 views

how to edit a specific post slug using a php code?

I want a php code by which i can show a modified link to the post. when using <?php get_post_permalink(); ?> it shows e.g.: (www.mysite.com/post-name-one). what i need is something like ...
0
votes
1answer
33 views

Custom Post Types,Permalink and Heirarchy

Basicly I want to indroduce a custom heirarchy with custom post types. I Would like it to be like this. The Main Brands URL : http://localhost/brands/ which lists different types of Brands. The ...
0
votes
1answer
14 views

cannot link a external url, present page url acting as parent url

please help some one cannot link a external link, my present page link is acting as parent link, if iam linking facebook.com , then my page url opens as www.mysite.com/facebook.com please solve it. ...
0
votes
1answer
51 views

Get the post permalink within the loop but without additional DB query

I am looking to create a custom 'directory' page which will link to several thousands of posts. Because of the large number I am trying to limit the number of DB queries. I notice that to link to each ...
0
votes
3answers
40 views

Permalinks - .htaccess

According to the official WordPress docs, when you save your Permalinks it updates your .htaccess file (https://codex.wordpress.org/Settings_Permalinks_Screen). However, when I make Permalink changes ...
0
votes
1answer
23 views

How do I keep multiple domain for my wordpress site

I want category ID 1,2,3,4,5 to be DomainB.com category ID 6,7,8,9,10 DomainC.com and homepage to be DomainA.com I thought of using 302 redirect or edit htaccess, but what is the best way ...
0
votes
1answer
52 views

the_permalink displays post ID URL for future posts

I use a WP template to generate an email newsletter. I display future posts and until recently using the_permalink displayed the full human-readable URL (e.g. /this-is-a-page). Now it displays the ...
0
votes
1answer
54 views

optional parameter in permalink structure

Im currently facing an issue with the relationship between pretty permalink and my themes templates. I have a post type called 'performance', and with pretty permalinks enabled the URLs for the ...
0
votes
1answer
63 views

Load custom PHP on a custom URL via a plugin

I am looking into having a plugin developed that loads a PHP script (myscript.php) on a custom URL. It's very important to achieve this functionality with a plugin. Example: example.com/myscript - ...
0
votes
1answer
27 views

Get a link to paged(<!--nextpage-->) part?

I want to get a link (like get_permalink($id) ) to it's specific page of a post (created by <!--nexpage--> tag).. how to achieve this?
0
votes
1answer
28 views

Should there be a trailing slash in the permalink

So which is better ?? /%post_id%/%postname% or /%post_id%/%postname%/ from a wordpress point of view in terms of performance and SEO. Does it matter. Google has big discussion here. But its not ...
0
votes
1answer
95 views

Modify get_permalink with a specific filter

I'm trying to modify the get_permalink function to return a custom url, as: function my_function( $permalink, $postID ) { $external_link = get_post_meta( $postID, 'external_link', true ); if( ...
0
votes
1answer
35 views

how to find duplicated permalinks?

I've got a duplicated permalink somewhere, so I can't name the new one like that. Normally, I simply check the other posts, categories, media, even on the thrash. But this time I can't find any ...
0
votes
1answer
65 views

Custom permalink structure with %postname% in front of domain name

We are running a software review website, and we have a very large amount of reviews currently done, and we would like to restructure if its at all possible. I would like to know if there's a chance ...
0
votes
2answers
36 views

Configuring Home Page Address

I though this was a simple issue. When i type in the browser: www.example.com it changes to: www.example.com/home/ This delivers the proper contents from the Home page, but i wish to stay showing ...
0
votes
1answer
22 views

How Can I Use a Custom AccessFileName?

I have a need to have a custom AccessFileName setting in my virtual hosts, however it appears that save_mod_rewrite_rules function assumes that .htaccess is the name for everyone. How can I override ...
0
votes
1answer
21 views

Would it be wrong to save the permalinks as a postmeta and regenerate it on save post? [closed]

I was wondering about the permalinks. They are built on the fly but they are pretty much always the same. It seems like a waste of processing time and databse queries on every request. Why not store ...
0
votes
1answer
44 views

How to: change permalink by category?

i'm have 2 category: News & Games How to change permalink by category as: if is category News permalink as: domain.com/news-%postname% if is category Game permalink as: ...
0
votes
2answers
116 views

Page and Category With Same Slug - Looking To Silo Website

Not sure how to do this, I want to silo structure my site and I have created a category and put all my posts under that category. I want to now create a page that has the same slug as the category ...
0
votes
1answer
21 views

How can you create a Permalink structure on a WordPress site?

Let's say I want to create a wordpress site that has a folder structure such as: http://www.example.com/cars/ http://www.example.com/cars/red-cars/ Yet I want people to be able to comment on both ...
0
votes
2answers
66 views

Only the latest post shows up on post page?

disclaimer: this is my first foray into wordpress I'm creating a custom theme and in the single.php file, i have the main loop, however if i navigate to different posts, all that shows up is the ...
0
votes
2answers
52 views

Custom permalink structure for remote content pages

I'm trying to create a WordPress site that integrates with a very specific CRM in a remote server. The CRM holds a number of entries that should be displayed on the site, but if possible I'd like to ...
0
votes
1answer
58 views

Custom Post Type Pretty Structure

I am customizing a wordpress installation with a custom post type and have a problem with the permalink structure. I added a team_member CPT, and the contents should be visible in a specific URL: ...
0
votes
2answers
41 views

How to stop permalink redirects for a particular slug

I have a large number of posts that each represent a very specific type of data. Each post title is the SKU for the data & information. Folks have become pretty savvy on the URL structure and ...