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

WP_Query Attachment adds additional attachment count and need to link attachment to post url

I just wonder why WP_Query adding one more additional attachment with the defined number or posts. Also need to link attachment (thumbnail) to the post url. Here is my code <?php $query = new ...
1
vote
0answers
318 views

How to display only the parent category in the permalink

How it is possible to display only the parent category of the post. It contains two sub categories and I want to eliminate it. Example: myblog.com/parent_category/post_name This is only what I want. ...
1
vote
0answers
78 views

Slugs Disappeared Leaving 404s - Quick way to repopulate?

I've got roughly 3000 pages in WordPress w/ permalinks on. I recently cleaned up the database which appears to have deleted a fair amount of slugs for many of the pages. Obviously, with no slug, ...
1
vote
0answers
11 views

File access different with permalinks on and off

I have a page with a link to a file in a password protected folder. When I have permalinks turned off, clicking on the link starts the file download. When I have permalinks turned on, clicking on ...
1
vote
0answers
37 views

Path to Pages Resolves to Archive instead of Actual Content

When I upgraded to 3.4.1, the root level pages (ones that I had before, and any page I have afterwards) do not resolve to the actual page. No matter the name (so i don't think there is a slug issue), ...
1
vote
0answers
46 views

What can cause intermittent permalink issue with posts and pages, but custom posts work fine?

Ok, we had this issue in previous version of WP, there was a bug about rewrite issue. Bug: http://core.trac.wordpress.org/ticket/21020 We reverted back to previous version, and all was good. We were ...
1
vote
0answers
875 views

How to change “attachment_id” in attachment permarlink?

I changed attachment permalink by add_filter('attachment_link','my_media_url'); from http://domain.com/?attachment_id=123 to: http://domain.com/?media=123 The change is successful. But, with the ...
0
votes
0answers
19 views

How to remove custom post type and add category and post name

I have a custom post type called listing and taxonomy for this listing is called listing_cat. At the moment my wordpress permalinks appear in this format ...
0
votes
0answers
6 views

changing permalink “next link” to navigate the next page not working

Why on earth if i change my permalink structure, like this! /%category%/%postname% the next link to navigate the next page, is not working! it display the error page not found but if add some text ...
0
votes
0answers
5 views

Link to most recent child page

in the header of a website I am trying to link to the most recent child page of a particular parent page. I can't seem to wrap my head around how to accomplish this. Does anyone have any input on ...
0
votes
0answers
7 views

Random post slugs cut off from original and underscores not converted to hyphens

I am having a serious problem right now. Our business website just crashed and almost every single page has stopped working. I am in the process of restoring the backup right now but would like any ...
0
votes
0answers
20 views

URL/Permalink customization for Taxonomy/Term archive & post

I have a CPT called "Provider", taxonomy called "State" and a term called "Alabama". Is it possible to change the following URL structure from: 1. http://localhost/state/alabama (to view all the ...
0
votes
0answers
8 views

Problem with multiple tags in URL

I used the link mydomain.com/tags/tag1,tag2/ on my Wordpress website with no problems whatsoever. But it doesn’t work from a certain moment. It displays error 403: Forbidden. I noticed that links with ...
0
votes
0answers
5 views

Permalinks that start with same string as blog's directory not working

I have a blog in a directory called "press". Permalinks are set to post-title and work in most cases, but if a post/page-title starts with the string of the directory, in this case "press", the ...
0
votes
0answers
13 views

Template for Taxonomy and all its Terms

Hy! I've searched high and low, up and down, left and right to find an answer. I've tried all that I have found, even the ones that are suggest for the title I wrote. I am working on a theme under a ...
0
votes
0answers
10 views

Parent (ID from meta box) not showing in permalink, only Grandparent

I'm working on a site inherited from a previous developer and I've run into a issue that's really confusing. There's a custom post type for Locations. The hierarchy for Location posts would look ...
0
votes
0answers
20 views

Permalink sending user to featured image media page rather than the post?

I'm working on a site and, on a particular category archive page, the permalink to the individual post is instead sending me to a media page for the thumbnail file. What's weird is that it's only ...
0
votes
0answers
8 views

permalink is only showing relative path in dashboard

Permalink: /blog/blog/ My permalinks are only showing as relative. In the database for each post and image they are stored as relative urls as well. When a user tries to share an article to social ...
0
votes
0answers
15 views

Subdomains to pages

Hi I have a website on wordpress which have 2 pages which I meant to convert it to subdomain. Eg: Let my website at be http://www.domain.com there are two pages http://www.domain.com/page1 and ...
0
votes
0answers
15 views

Custom permalinks with custom taxonomy children show 404 error

I'm having the following problem. I've made a custom post type which is called Products. Products has a slug of "products". I've also created two custom taxonomies. One is Product Category (which acts ...
0
votes
0answers
50 views

Custom Permalinks for CPT causing 404 errors for 'normal' single post pages

I'm having a problem with the permalink structure of a Custom Post Type which is conflicting against the normal single posts (in the 'posts' post type which comes as standard with WordPress). Heres ...
0
votes
0answers
21 views

WordPress 4.0 beta - how to change the link URL in RSS feeds

I am using WP 4 beta and have a site at blah.com/blog but I display the posts on my site at blah.com/articles I want all of the URLs in my RSS feed to use my site URL. Following what was mentioned ...
0
votes
0answers
33 views

Perform internal redirect in WordPress?

Let say I have an existing page named "bar", e.g. http://www.example.com/bar I want to write a plugin, which when called, will load the content exactly same as bar (not just post_content, but the ...
0
votes
0answers
8 views

Renaming CPT slug when the user access a page from one specific taxonomy

How do I rename a registered CPT slug when the user access a page from one specific taxonomy? I have a custom post type called /package/ and it taxonomies /america/ /europe/ /asia/ /hotel/ An ...
0
votes
0answers
9 views

Global change of permalink structure across multisite

Is there a way to update the permalinks across an entire multisite without having to update them one by one?
0
votes
0answers
50 views

wordpress permalinks error 404

i am new to word-press, i have made my own theme in wordpress but the problem that i am facing is the permalinks which are not working and showing me error 404 when my permalinks settings are at ...
0
votes
0answers
12 views

Automatic -1 suffix being added to the permalinks of a page when the page does not exist

I have a really strange problem with a -1 suffix being added to a permalink on a page im trying to create which is getting very frustrating. Its specifically a page titled event, each time i try to ...
0
votes
0answers
28 views

Current state to a button when on a single page

I am having trouble figuring out how to keep the current state active once on a single page of the post. For example: Recipes displays a list of all my post that are under a specific category. Once ...
0
votes
0answers
32 views

Help with add_rewrite_rule solution

In my Wordpress blog, I configured permalinks > Category base to "magazine" with links having this format: http://www.mydomain.com/magazine/news/europe/france The above link opens the France ...
0
votes
0answers
8 views

Rewrite rules for subterms in custom taxonomies

I am using a large number of custom taxonomies. My post type is called "location" and there is a parent term "Asia" and a subterm "Thailand". Now I created the taxonomy archive template files ...
0
votes
0answers
35 views

change precedence of permalink for post_types?

I have a series of pages with the heirarchy: /albums /name1 /name2 /name3 ie. all these pages have a parent page with the slug 'albums'. If I have a permalink /name2 it shows the page ...
0
votes
0answers
15 views

Hierarchy of Subcategories on Permalink

I'm new to Wordpress. My current permalink is set to /%category%/%postname%/ and a "." (dot) in the Category base. My categorys ID are bigger than the subcats IDs. So the URL looks like this: ...
0
votes
0answers
30 views

set new link as permalink

i have external link stored in a variable $extlink which is generated based on different selections in the post. how do i set the permalink to be this $extlink so that when i click on the post it ...
0
votes
0answers
21 views

How to build new WP_Query using url

How to build a WP_Query using a url in wp_ajax_nopriv action. I have a following url for example: "http://example.com?paged=2 so I need to build a WP_Query which will retrieve a second page of posts. ...
0
votes
0answers
41 views

Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks

I have a problem currently that is related to permalinks. I have a custom Post type "workshop" and two taxonomies named "manufacturer" and "models". What i want to get and tried is this URL pattern. ...
0
votes
0answers
10 views

Adding custom URL rewrite rules

I want to use 2 custom post queries on the author profile page, both of the queries uses pagination. With the following pagination function, I get this URLs structure: ...
0
votes
0answers
26 views

Can't seem to replicate permalink structure for localhost development site

I'm helping a friend migrate her WordPress powered shop. I'm to the part where I manually re enter all of her products on WooCommerce. On her current live site the link looks like: ...
0
votes
0answers
30 views

Custom Post Type and Custom Taxonomy - Same rewrite/permalink

I may be attempting the impossible here, I'd like a custom post type and a custom taxonomy to share the same rewrite. The rewrite being "/", with the intention of not having the custom post or taxo ...
0
votes
0answers
36 views

Wordpress permalinks on subfolder in iis7 not working

I have IIS 7.5. mod rewrite active. Currently, my wp site is inside subfolder. Here is web.config in my root folder : <rewrite> <rules> <rule name="site2.com" stopProcessing="true"> ...
0
votes
0answers
19 views

Permalink settings not saving

I just started a new WP installation and my permalink settings are not saving. I have chosen the 'Month and name' option (/2014/06/sample-post/), but when I create a new post, the text shows up as ...
0
votes
0answers
17 views

Search working only on default permalink structure

my custom theme is using a search form which works fine with default permalink structuresite-url/?p=id. however after i changed my permalink structure to post name, the search returns NOTHING FOUND. ...
0
votes
0answers
31 views

How to extract URLs from wordpress taxonomies

I am in quite a trouble. I need to extract all possible url from my wordpress blog be it of post, tag, category or anything else after domian-name.tld/*. I tried my hand on few available codes and ...
0
votes
0answers
34 views

How to configure a child-post of a parent-post to have hierarchical sub-posts?

Question: What plugin or coding configuration needs to be implemented to create this child-post to parent-post hierarchical, many-to-many post relationship? Goal: To be able to create sub-posts of a ...
0
votes
0answers
41 views

How do I generate a alphanumeric hash for a custom post type in wordpress?

I have a wordpress website that uses a custom post type, video. I want my permalink for the video posts to generate unique alphanumeric ID like this, http://example.com/video/ha3unq04X similar to ...
0
votes
0answers
34 views

Changing attachment page Permalink

How can i change the attachment page permalinks to http://domain.com/photos/%attachment_id%/%postname%/%attachmentname% currently my permalinks set to Custom Structure ...
0
votes
0answers
32 views

Problem with tags after changing custom post type permalinks

I've follow this post to create a permalink structure for my custom post type and custom taxonomy and it works great. I'm using the Portfolio Post Type plugin to register the custom post type, and ...
0
votes
0answers
19 views

How to add the scheduled posts in existing content link in hyperlink

I am blogging with scheduled publication. Say, I have content "1" (complete and saved already) scheduled to be published tomorrow Now I have another content "2" (complete and saved already) ...
0
votes
0answers
19 views

Add custom dynamic string to permalink structure wordpress

I am adding dynamic string to permalink but the problem is all the pages which runs from page.php goes to 404 whereas the detail page of the post is working fine. Code: add_filter('post_link', ...
0
votes
0answers
34 views

Permalinks not working for post IDs as slug

I inherited a site that has a lot of posts without a title, thus the permalink defaults to the post ID, with pretty permalinks turned on. IE - http://mysite.com/1200 When the permalinks are reset to ...
0
votes
0answers
42 views

Exclude javascript in certain page url and all following url's after forward slash

I'm trying to exclude javascript from a couple of pages. But I want to target all the pages after the forward slash. So I want to to target: www.website.com/page-name/.. So the page-name itself, ...