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
126 views

page slug and taxonomy slug in custom post type url

I have a strange situation here. I want the taxonomy of a custom post type to be after a page slug, for example I have a taxonomy term "shareholders", i want the url to be ...
0
votes
0answers
312 views

Parent cpt/child custom post type URL permalink relationship

I am attempting to set up a relationship in Wordpress between two custom post types I’ve created and display that relationship within each post type’s permalink URL structure. I have created two ...
0
votes
1answer
26 views

Forward an old url rewrite scheme to a new one?

I have the following url rewrite for custom post type: add_rewrite_rule( 'event/([0-9]+)', 'index.php?post_type=event&p=$matches[1]', 'top' ); Due to a site structure change, I'll ...
1
vote
3answers
65 views

How to tranform Headlines into linkable permalinks?

My Wordpress site has fairly long entries and includes many data visualisations. I want to make it easier for visitors to refer to a specific part of a page and therefore would like to make it easy to ...
1
vote
2answers
101 views

Custom post type and taxonomy permalinks

I have a custom post type 'news' and a taxonomy 'category-news'. I would like to get this permalinks: www.domain.com/news -------------> list of all news www.domain.com/news/sport ...
0
votes
1answer
20 views

Custom post type using standard post categories results in 404 when viewing /cpt/category

The CPT has been registered fine, with the name 'qna' and slug 'advice'. Viewing domain.com/advice correctly displays the archive-qna.php template. Viewing domain.com/advice/custom-post-title also ...
-1
votes
1answer
42 views

Why is wordpress permalink path wrong for single blog posts?

I'm developing my site with MAMP and my homepage is at localhost:8888/wordpress When I click on the link to my blog page (home.php) the url looks like this: localhost:8888/wordpress/blog All good ...
0
votes
1answer
51 views

Wordpress theme showing blank page

Something is wrong to my installed theme, because when I am clicking on Visit Site than its showing blank page. No error and no content, no navigation nothing to display. There is link below :- ...
0
votes
0answers
61 views

Deep Nested Custom Rewrite and Custom Taxonomy

I'm trying to get my custom taxonomy to nest deep categories, and then also pull up the post. Each post always needs to be three categories deep: example.com/thinger/cat_1/cat_2/cat_3/post_name_here ...
0
votes
3answers
235 views

How to have permalink like domain.com/term/postname?

I'm trying without success to have a URL structure like domain.com/term/postname, but I just get 404 for all non-CPT pages. function add_video_post_type() { $labels = array( 'name' ...
0
votes
0answers
12 views

How would one go about adding a category name to the url of multisite subsite?

How would one go about adding a "category" name to the url of multisite subsite? eg. http://mainsite.com/categoryname/subsite Simply editing site info settings doesnt help. I am trying to make a ...
0
votes
0answers
11 views

How to Change the WordPress Permalinks for some posts

i have this permalinks structure: /%category%/%postname%/%post_id%/ is it possible to apply /%category%/%postname%/ for some categories? Thanks
0
votes
0answers
22 views

Blogger To WordPress Permalink Redirection

Is there any way to redirect following or anything permalink like this: http://www.example.com/2014/02/post-title.html to http://www.example.com/2014/02/post-title/ Any link with a .html in the ...
2
votes
2answers
746 views

Resolve a custom post type name vs. page permalink conflict (same slug)

I have a custom post type called "visningshus", and also a Page with that slug. This is as it should (must) be. Currently, "http://my-site.com/visningshus" lists all posts of that type. I want to ...
1
vote
5answers
309 views

Pagination for blog posts reloading same page

Symptoms Visiting /blog/ loads the first 10 posts, as expected. Visiting /blog/page/2/ (and onward) loads the new URL but with the same 10 posts. Nothing changes but the URL. Setup Details Custom ...
0
votes
1answer
88 views

Remove index.php from WP 8.0 install migrated to IIS from Apache (still detecting Apache server)?

I was developing this WP site using WAMP at work, and now suddenly we're switching it up and putting it on a Windows server (2003). I can tell from the Permalinks Settings page in wp-admin that it ...
0
votes
1answer
30 views

Permalink Issue - Funny & Weird

I am having an issue where the permalink for my blog posts shows www.example.com/blog/_______. The /blog doesn't just seem to go. Please see screenshots. So then I went here, and changed the ...
0
votes
1answer
52 views

My posts section for logged in user

I would like to create a page that shows only posts written by the user logged in and get a link (such as www.example.com/AuthorPostsID) to put on the menu. I'm trying for two days. Does anyone know ...
0
votes
0answers
11 views

Why do all my custom post types return a 404, even after resetting the permalink? [duplicate]

I have two custom post types setup like this: add_action( 'init', 'create_post_type_News' ); function create_post_type_News() { register_post_type( 'news', array( 'labels' ...
0
votes
0answers
36 views

Do pingbacks work with ?p=123 permalinks?

From what I've seen wp_extract_urls in pingback() function wp-includes/comments.php does NOT include query vars (ex: ?p=123) with the returned urls. But later in the function wordpress tests if there ...
0
votes
0answers
35 views

Changing Post Permalink redirect

I am curious about something. Recently I changed my post permalink structure in wordpress. It used to be category/postname. I have changed it to postname. It seems that if I type ...
0
votes
0answers
66 views

How to maintain WordPress permalink structure with custom content with URL parameters?

Lets say I have posts, pages, plugins and navigation etc. from WordPress. Then I have a Video on Demand Archive now I want use WordPress (core, plugins, theme) to process and display this content. ...
0
votes
1answer
35 views

Custom WP permalink structure

I've been struggling trying to wrap my brain around this problem for a few hours. I'm basically trying to achieve this URL structure for a coupon site I run. ...
6
votes
2answers
158 views

Mapping Domains to Permalinks (not multisite)

I am trying to do this on a standalone WP installation (not multisite). What I am trying to achieve is: User saves domain.com on usermeta. (done) User creates a new CPT, say company. Which is ...
0
votes
0answers
168 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
35 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
45 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
115 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
78 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
41 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
64 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
67 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
33 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
74 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
189 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
77 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
207 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
35 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
35 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
2k 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
36 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
26 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
65 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
54 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
63 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
50 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, ...
2
votes
0answers
48 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
82 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 ...