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

I can get the permalink or the excerpt to work correctly, but not both

I'm calling the following code from within a filter hook. (I'm using the_ rather than get_the for bugsquashing clarity.) function test_function($output, $format, $link, $post, $adjacent) { ...
2
votes
1answer
58 views

Custom Permalink Tag breaks Pagination

Most the below work stems from a previous question / accepted answer. I'm trying to achieve the following permalink structure: /listings/ /listings/page/2/ /listings/%state%/ ...
0
votes
0answers
30 views

Multiple custom post type and permalink issue

I have to declare two custom post type in my theme. But when declaring the second post type which is overwriting the permalink of first post type and rendering 404 error page :( Please find my ...
0
votes
0answers
52 views

get_permalink returning only URL's containing 'uncategorized' category instead of real category

I'm trying to get a listing of all URL's on a site to create a list of redirects for a migration. I wrote a simple script to go through all posts and call get_permalink, and insert the result in a ...
0
votes
2answers
18 views

Links after changing hosting and domain

I am changing hosting + domain name for my WordPress site. For example now if its hosted on 201.0.0.1/mysite and now I want to upload it to mysite.com. This is what I did exported database from my ...
0
votes
0answers
48 views

Unicode permalink slug are getting tuncated

I'm developing a website which is mainly a Bengali language based website. I'm using the post-name permalink structure. Every time a post name get longer, slug is getting truncated. Is there any way ...
0
votes
1answer
99 views

Redirect category to url with /category

I'm want to redirect every category page to to URL prepended by /category. For example; I want /blog redirecting to /category/blog Why? For some reason /blog gives to same result as /category/blog, ...
0
votes
0answers
20 views

Wordpress permalink issue on AWS

I have a weird issue with my permalinks in wordpress hosted on AWS. In my browser it shows a nice permalink for the first post of: http://civicasoft.com/granicus-acquisition/ (can be reached by going ...
0
votes
0answers
35 views

Update Permalink Settings - from Day and name to Custom Structure - now have 404s

I've just updated Permalink Settings from Day and name to a Custom Structure of /%category%/%year%/%monthnum%/%postname%/ but now certain links give me 404s. It turns out that the links causing ...
0
votes
2answers
92 views

Custom taxonomy in custom post type archive with pagination

I have inmy opinion something simple that needs to be done but I can't get it to work. I have a custom post type adm_project with rewrite => array('slug' => 'projecten') add_action( 'init', ...
1
vote
0answers
54 views

Permalinks and WP RSS Aggregator [closed]

I have small problem with my page. I have two languages - PL and UK. For language I'm using Polylang plugin and for custom post types I using Custom Content Type Manager. Now I want do add plugin WP ...
0
votes
0answers
38 views

Pretty permalinks returning “not found” on localhost and server

I tried to make the title as descriptive as possible. I have a wp site I'm currently building that, if I configure permalinks to be pretty, all pages returns the 404 page. The weird thing is that that ...
0
votes
1answer
67 views

Same permalink structure for all post types?

We have a pretty complicated site that has a lot of different custom post types. Each of the post types has an array of custom fields and stuff like that. Also I have added the ability to organize ...
0
votes
1answer
382 views

Parent Page and Breadcrumb URL's for Custom Post Types Not Working

What I Have Set Up I have three custom post types, they are named "brands", "careers", and "news". I have three page templates, they are named "page-brands", "page-careers", and "page-news". The ...
0
votes
0answers
16 views

Multisite Global Permalink Configuration [duplicate]

I would like all of my multisite blogs (sites) to have the same, default, permalink configuration. However, it looks like the individual blogs (sites) can have their own permalink structure. Is there ...
0
votes
1answer
21 views

Page permalink ending in “-2”

I have a couple of child pages that keeping ending in "-2" on the permalink even if I go in and manually change the permalink. I do not have any pages that are a duplicate title of these so I have no ...
3
votes
1answer
64 views

Custom Posttype Inheritance (and url structure)

After looking at documentation and searching around, I haven't been able to find anything, so here goes: Are there any way of custom-post-type-inheritance, and an url structure like this: ...
1
vote
0answers
183 views

Add hierarchical taxonomy to permalink for custom post type

I've found various questions about this issue, and I still can't get this to work. I have a post type called "product" and a taxonomy called "type". I'd like the URL for a single product post to be: ...
0
votes
0answers
69 views

SEO friendly custom page URL for multi-page posts

Is it possible to use a SEO friendly custom url structure for multi-page (paginated) posts in Wordpress? Example: This is the default url structure for paginated posts: category/post/2 ...
0
votes
0answers
95 views

Removing or hiding slug/permalink from htaccess

I have this slug that i want to hide for SEO matters. My current slug is: homepage.com/company/companyname All i want is to be: homepage.com/companyname I tried lots for plugins and htaccess codes ...
3
votes
1answer
110 views

Post being redirected to attachment post

That's strange issue I have on this one website. Similar to this problem and I am trying to get this fixed from last couple of weeks. This website have latest WordPress installed and /%postname%/ ...
0
votes
1answer
50 views

Permalinks keep reverting to 404 unless I re-save them

I'm running the latest (and constantly updated) version of WordPress on Nginx. Every now and then I wake up to a site full of 404 errors. The fix is to go into the permalinks and just save the ...
0
votes
1answer
48 views

rewrites and custom links in page need help with add_rewrite_rule

I have one page with edited permalink, like, address.com/detail/ I need to send there some values by GET request, so i would like the link looks like /detail/value1/value2/ i added this code in ...
0
votes
0answers
23 views

How to remove custom post type identifier in permalinks? [duplicate]

I've purchased a premium "SEO-fitted" (so I thought) theme, that uses custom post types in the URL. like /cat/ or /item/ But I really need to remove those slugs, and change my URLs so it will be less ...
0
votes
1answer
76 views

How to dynamically alter all the links in menu via function.php

I have been searching and reading for 3 hours and still couldn't find anything that come close to what I needed and I am still trying understand how wp add_filter, rewrite, etc works. Just started ...
0
votes
0answers
119 views

Change permalinks but old should redirect to new permalink

I want to change permalinks from date/postname to category/postname. But I still want old urls to work and redirect to the new url. Is this per auto in wp or do I need to write any code? What ...
0
votes
0answers
16 views

Permalink Custom Structure urls taxonomia

I created a CPT and taxonomy, category and products, the problem is I need my product has the permalink well .com / name-category / name-product the permalink structure is set up /% category% /% ...
0
votes
1answer
19 views

URL links consistent with menus?

I'd like to have a URL links consistent with menus on the page. For example: Menu1: Submenu1 item1 item2 Submenu2 item3 item4 Menu2: Submenu... etc.. The corresponding links ...
0
votes
0answers
49 views

How Do I Include The Tag ID And Tag Name In My WordPress Tag Permalink Structure?

I have been searching forever and have come close to finding the answer, but not quite all the way. I have found this plugin: https://wordpress.org/plugins/permalink-editor/ and it allows me to create ...
0
votes
0answers
136 views

Archive pagination causing 404 with permalinks structure

Somehow my archive.php is causing some problems because I'm using /%category%/%postname%/ as my permalink structure. The next_posts_link() redirects to /category/page/2: which causes an 404 error. ...
0
votes
1answer
53 views

Where is wordpress redirecting wp-admin/admin/dashboard to wp-admin and how to turn it off

I mean when we have subdirectory install and /wp-admin/ is not referencing to directory wp-admin, but wordpress stills redirects and not just for wp-admin slug but also for admin and dashboard and ...
0
votes
1answer
21 views

how to goto specific page number including title with permalink

Several pages are subs of main page account. Example: account\service. How to goto specific page number including page title with permalink? I have tried this: $GLOBALS['create_page_service'] = ...
0
votes
0answers
60 views

Search form using POST and permalink

For security reasons I use post type for my form into my search page. The main problem is I loose all permalink (before I had xxx.xxx/?s=Keyword). But now it logically just redirect my search page in ...
1
vote
1answer
160 views

Trouble with numeric permalinks after 4.3.1

Since updating to 4.3.1 we are having an issue with permalinks. Our usual practice has been to have a unique article number serve as the postname, and that would be used in the permalink - for ...
0
votes
1answer
194 views

How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?

I would like some clarification on how to achieve the following structure: Posts & Categories domain.com/blog/ - Blog index domain.com/blog/%category%/ - Blog category archive ...
0
votes
1answer
47 views

Unabled to Change Permalinks - Even Using the “Edit” (Resets to Original Permalink on “Update”)

I have tried everything in every post I have been able to find about changing permalinks for existing posts and pages. I have gone to settings and change the permalink structure in hopes that it would ...
1
vote
0answers
159 views

change default post archive page link

I can't figure how to change the default post archive link. I've got few custom post types (for instance video_news, slug video), if I type www.blogname.com/video I get the archive.php. And every ...
0
votes
0answers
17 views

geting a string containing all the url's of the main menu

I write a simple plugin. Inside it I need to get a string containing all the url's of the main menu(and submenu) items. On the run time, the code doesn't know any details on the main menu of the site. ...
0
votes
0answers
54 views

wrong home url when using subdirectory

On my server, i installed a wordpress. I installed it in subfolder /wordpress. so i have this structure : / index.php index.html <= "message Under Construction" .htaccess /wordpress ...
0
votes
1answer
101 views

Custom Post Type pages are “not found”

I've created two new Custom Post types using code that I've used successfully on other projects without issue. The first is called top_charts, the other case_studies, and both appear correctly in the ...
1
vote
0answers
12 views

Removing taxonomy slug from URL but keeping post type [duplicate]

As the title says, I want to remove the taxonomy slug from URL. Instead, I want to keep the post type slug. For example: I have a post type called "Books" (rewrite_slug = books) and a taxonomy called ...
0
votes
0answers
49 views

Change permalink structure and keep old one

I have a site with permalink structure "/category/post_id.html" and I would like to change it to a structure "/category/year/month/date/post_id". I know the best practice for permalink is to include ...
0
votes
1answer
46 views

Getting the permalink to the latest post from a category

What's the best way to get the permalink to the latest post of a chosen category? I have a page that I want to have several links to the latest post from different specified categories. Simple ...
0
votes
1answer
73 views

permalink to single page

I have a certain post displayed and each post i click go to single page which shows more details of the post. But i have different templates for the post details which will be shown in single page. ...
0
votes
0answers
42 views

How to make variables in custom page URL look like the permalink structure?

I am using wordpress and in that i am using permalinks post name but in project manager plugin on click of one of one project i get this url which i want to make user friendly as the name of the ...
0
votes
0answers
12 views

Limiting Comments Displayed to posts posted by particular author

I am on Page review. I have introduced custom permalink variable - author_id. Lets say i get the permalink variable in $perm_author_id. I want to compare $perm_author_id and comment_author( ...
-1
votes
2answers
209 views

How to hook into permalink when publishing-saving post?

I want to know how I can change the structure of the permalink to my desired one before saving or publishing my post in Wordpress? For instance, when I add the title like the wordpress blog in my post ...
0
votes
1answer
37 views

“post-name” Renders Using page.php, but “post-name-2” renders with single.php

Page One is rendering using my page.php template. Page Two, set up exactly the same as the previous one, is rendering using my single.php template. I want Page One to render using the single.php ...
0
votes
2answers
174 views

How to solve this custom post type goes to 404 page?

I have a custom post type called dramas /******* DRAMAS BEGIN *****************************************/ register_post_type('dramas', array( 'label' => 'Dramas', 'show_ui' => true, ...
1
vote
1answer
37 views

Do changes to Wordpress permalink custom structure affect old urls?

Will changing WP permalink custom structure affect old posts URL? For example. I have a large group of posts that follow this custom structure: /blog/%category%/%postname%/ I want to change it to ...