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
0answers
95 views

Get canonical link

Hi I know get_permalink returns the URL. Some of my posts are redirected and at the same time I update the canonical link to the redirected post URL - (normally relates to post updates). Is there a ...
0
votes
0answers
33 views

Select page/template from the permalink url

I use permalinks like example.com/projects/project1 for my project pages. They use all the same template. I want to access another template with more details on the project by adding /details to the ...
0
votes
0answers
44 views

Permalink broken for pages after adding rewrite rule

After adding these rewrite rules: add_rewrite_rule( '([^/]+)/page/([0-9]{1,})?$', 'index.php?author_name=$matches[1]&paged=$matches[2]', 'top' ); add_rewrite_rule( '([^/]+)?$', ...
0
votes
2answers
92 views

Can't get the previous and next posts permalink

I tried to get the next and previous URL, and create a navigation. But it seems to only retrieve the permalink from the two first posts (but not the others recents posts). I have 5 posts (ID = 25, ...
1
vote
1answer
75 views

How to link to “most recent” document in the Media Library?

Our customer wants a "Latest Newsletter" type link on the homepage. I figured there'd be an easy way to specify a document from the media library (perhaps by name or title) but nothing is coming up ...
0
votes
1answer
39 views

Installing Wordpress in another Install?

I'm trying to install one wordpress site in a different directory on the same server as another, and access it as a sub-directory of the site. Maybe this describes better- File structure: ...
0
votes
0answers
13 views

Rewrite rules for changing a custom page permalink with author details

I have the following page with permalink: http://mysite.com/custom_page/custom_var/author_name and I want it like this: http://mysite.com/author_name/custom_page The custom page conatins some ...
0
votes
1answer
60 views

Changing Permalinks for Category Pages Only

I am working to redesign a site and would like to rework the permalink structure for the category pages only. Right now they are using: /category/category-name I would like to switch this to: ...
0
votes
1answer
50 views

Can variables be used to rewrite a Custom Post Type permalink? [duplicate]

Is it possible to use a variable to rewrite a Custom Post Type permalink FROM wp_terms -> slug? WPDB: wp_terms -> slug = healthy-living A1) Current Custom Post Type args: 'rewrite' => array( ...
0
votes
1answer
30 views

Customize category permalinks

How can I generate URLs like http://example.com/blog/category/Test/? Currently, I have http://example.com/category/blog/Test/.
0
votes
0answers
62 views

Learning rewrite rules and custom permalinks. Paging not working

I am just starting to learn rewrite rules and custom wordpress permalinks. I have made a custom endpoint called autor with the following code: function my_query_vars($vars) { $vars[] = "autor"; ...
1
vote
1answer
122 views

How to exclude uncategorized from permalink structure /%category%/%postname%/

I'm using a custom permalink structure: /%category%/%postname%/ So that my posts are listed like: mysite.com/widgets/blue-widget This works fine as long as "blue-widget" exists in one and only ...
0
votes
1answer
56 views

Remove multisite “blog” slug from specific custom post type

I have wordpress multisite, by default multisite has the word "blog" added to all post types excluding "pages" How would i only remove it from a specific custom post type. If I go to setting and ...
0
votes
0answers
141 views

Rewriting custom post type permalinks gives 404

I am using this code in my functions file to be able to include a post ID in my permalinks for a custom post type. But I am getting a 404 error when I attempt to preview view any of the posts of that ...
1
vote
0answers
33 views

Filter categories used with Custom Structure Permalink

I'm using a "Custom Structure" permalink setting: http://mysite.com/%category%/%postname%/ However, when the post belongs to uncategorized, or to more than one category, this produces unwanted URL ...
0
votes
0answers
31 views

Normal page, can select named page template, but page.php used instead

In other words, for some pages, I set the named template and update, and the change carries through to the front-end. For other pages, wp-admin shows the changed template name, but that template is ...
0
votes
2answers
1k views

How to redirect non-logged in users to a specific page?

How to redirect non-logged users requesting for a specific page/URL to another page/URL and display a message like "for members only". I know its quite easy to code using !is_user_logged_in() ...
0
votes
0answers
31 views

Base URL missing from post permalinks

My social media sharing buttons on my site don't work. Finally saw something I've never ever seen in WordPress before and am sure this is the culprit. The base (main) URL is missing from the ...
-1
votes
1answer
22 views

permalinks has -2 with post name structure. why?

I have set permalinks structure in my website as post name, then it supposed to come as: http://example.com/newsite/page-name/ but it is coming as: http://example.com/newsite/page-name-2/ I dont ...
2
votes
0answers
18 views

Migration from Squarespace to WordPress: Remove leading 0 from %monthnum% in permalinks [duplicate]

I need my WP permalinks display months without using any zeros in the URL i.e. /1/ instead of /01/ for January. I'm moving my blog from Squarespace to Wordpress and I obviously want to keep all my ...
-1
votes
1answer
47 views

Remove parent page from url

I would like to remove the parent page name from the permalink. At the moment, I have site.com/parent-page/child-page.php and I would like to have something like that site.com/child-page.php
0
votes
1answer
36 views

using post meta data as permalink tags [duplicate]

I have a client who would like their wordpress permalinks to look like this: /%category%/%state%/%city%/%street%/ I can get this information easily enough with custom meta data in the post editor, ...
0
votes
0answers
38 views

Wordpress Pretty Permalinks redirecting to home page on iis7

I have my WP site on iis7[Windows server 2008 R2];have explored a lot to find the right solution but nothing worked :( ...
0
votes
0answers
40 views

Changing the permalink structure with 'with_front' not redirecting old URL

I'm attempting to change the permalink structure of the default post type with the following code: $args = array( 'rewrite' => array( 'with_front' => true, ...
1
vote
0answers
43 views

Plural Category Base Slug On Category Archive Page

I've got a little problem with the category base slugs. Say I have got a category called 'Resources', with the category slug set to 'resource'. So any post in the category resource will appear with ...
0
votes
2answers
64 views

get_permalink() gives a certain page link only. how to solve this.?

the_title('<a class="" href="' . get_permalink() . '"><h1 class="">', '</h1></a>'); anywhere if I use get_permalink() it's just giving myblog.com/about_us eg: the above code ...
1
vote
0answers
69 views

Relative v.s. absolute URLs: which ones should I use for cross-domain portability?

My question is related to but different from this one I need to make sure that my URLs work across domains like staging.domain.com, localhost:8000 and www.domain.com. I have local, staging and ...
0
votes
1answer
227 views

Redirect & permalink problems after moving multisite to a new server

I just moved my subdomain multisite to a new server and I'm having some trouble with permalinks & redirects. One difference post-move is that I have moved core WP files into it's own directory ...
0
votes
1answer
35 views

Wordpress Permalink

I need to make my wordpress permalink like the following Permalink For Category: www.mydomain.com/category/%category% Permalink For Posts: ...
0
votes
0answers
14 views

Custom taxonomy category slug not being included in permalink [duplicate]

I'm having difficulty implementing a permalink scheme with a custom post type ('widget') and its taxonomy ('widgetscategory'). Visually, this is the permalink structure that I am after: /widgets/ (a ...
0
votes
1answer
28 views

How to setup a permalink structure for a custom post type

I would like to know the correct way to setup the permalink structure for a custom post type. Is there any attribute I am to set when I run a register_post_type() ? e.g. custom post type: product ...
0
votes
1answer
197 views

How to Force HTTPS on a WordPress and remove HTTPS from permalinks

I have recently secured SSL certificates for my website and I would like to force HTTPS for all visitors. And i want to remove HTTPS From permalinks Like this <link rel="canonical" ...
0
votes
0answers
52 views

Taxonomy to WordPress Permalinks of custom post type

I am searching days now for the answer how to add taxonomy to my custom post type permalink. I've found this article which almost exactly gives the answer but it doesn't work for my custom post type. ...
0
votes
1answer
90 views

Changing permalink settings causes 404

I would like to have permalinks of the form http://localhost/mysite/sample-post/. I tried to achieve this by changing the permalink settings in the admin panel to 'Post name' from default. But this ...
0
votes
0answers
57 views

WP No Base Permalink only works with logged user (admin)

(My apologies for my poor English, I'm french) I just want to have a shorty URL for all page of my WP Site: www.example.com/wordpress-answers-is-a-good-site for my posts insteads of ...
0
votes
0answers
44 views

Issue when showing metabox value on post type permalink?

I want to show the custom post type value on permalinks like yourdomain/metabox_value/post_title. By the below code I achieve the goal but after appling this code only this post type permalinks is ...
0
votes
0answers
34 views

Add custom prefix to search URL

I am using Wordpress to manage a site with both a static page structure and a blog under /blog. I've updated my permalinks to use the custom structure /blog/%postname%/ and all seems to be working ...
0
votes
0answers
41 views

Change link to permalink inside post content

Probably this has been answered before several times.But couldn't find so sorry if it sounds duplicate. I have a post content and in that content I have couple of internal links Now inserting those ...
0
votes
0answers
9 views

Permanent names of attached files required

Simple: How to delete uploaded file ? Secondary: How to replace uploaded file and to keep its filename (inclusive the path) and all links (inclusive on the whole internet!!!) the same?
0
votes
1answer
21 views

new page redirect to old page which had the same permalink

I had a page on /features/ and a newer page on /features-2/ I wanted the newer page to get the more pretty slug /features/ So i did the following: /features/ => /features-old/ /features-2/ => ...
1
vote
2answers
133 views

Posts not working on windows after changing permalinks

I recently started learning wordpress. Out to curiosity of changing settings, I changed permalinks to Month and Name. After that all my posts and pages have stopped working and show me a 404 Error. I ...
0
votes
4answers
70 views

I copied my site to another site but all links point to old site

I copied my site: www.old_site.com to a new address: www.new_site.com All links in new_site point to the old site. What do I have to change so that new site points to new site? Thank you.
0
votes
0answers
66 views

Permalinks not working for subsite

I have a Wordpress multisite install on Nginx. Currently I have site1.com as main site. And I added a new site called site2.com as subdirectory. However, I noticed you can actually click on Network ...
0
votes
1answer
35 views

Some Pemalink problems, probably caused by wrong .htaccess configuration?

I have import on my local webserver a backup of a website made using WordPress but I am finding some difficulties with PermaLink configuration The main problem is that if I use the permalink setted ...
0
votes
0answers
79 views

how do i add posts-page slug before posts slug in permalinks

I have a posts page and the page slug is /blog my current permalink structure is /%postname%/ when i click on a blog post. say for example the posts slug is adrenaline-rush the url is ...
2
votes
1answer
64 views

Permalink Settings: optional settings doesn’t apply to editor

In my WordPress 3.8 in my "Permalink Settings" I've chosen the option "Post name". Then I've added "Optional" for "Category" ( %category%/%postname% ), the URLs works like I wanted - ...
-1
votes
2answers
38 views

After the local installation of an old WP website I can see the homepage but I can't access to the articles, why?

I have import on my local webserver a backup of a website made using WordPress but I am finding some difficulties with PermaLink The main problem is that if I use the permalink setted as Article Name ...
3
votes
1answer
102 views

Prepend meta_value to permalink of post

I have 2 custom post types movies (non-hierarchical) and series(hierarchical). Each post from seriestype has a meta field _movie which contains a movie ID. I want to specify a custom permalink ...
0
votes
2answers
172 views

Main blog page works but title says Page not found

Here's a strange one. I've been developing a site, including a custom template that I originally worked up from the functionality of the Naked theme. The site has no public blog at the moment; the use ...
0
votes
1answer
41 views

How to keep the /blog slug even in single post slug

I have a simple website on wordpress (latest version), assume example.org. I wanna have the user posts at something like example.org/blog/username/posttitle. So I need some levels: 1) ...