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

Custom post type permalink: only use %post_id% and remove %postname%

I have created a custom post type in Wordpress which is working great. The only thing I need to solve are the permalinks created by this CTP. I currently have: ...
0
votes
0answers
20 views

Permalinks setting raises 500.0 error

We were changing our wordpress site to use pretty links, but discovered that it broke old links. We tried to revert our changes, but whenever we open up /wp-admin/options-permalink.php (and only that ...
0
votes
1answer
46 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 ...
1
vote
1answer
75 views

Adding anchor to paginate_links + Safari anchor bug

I don't quite understand how the rewriting of pagination_links() works. Here is my pagination function : $big = 999999999; $translated = __( 'Page ', 'epc' ); echo paginate_links( array( 'base' ...
0
votes
0answers
26 views

Custom Post type and Taxonomy in post URL error

I have added a custom post type and assigned taxonomy to it by following this tutorial: Custom Post Type / Taxonomy Slug / Post Title with post type archive I have two terms in custom taxonomy . ...
0
votes
1answer
41 views

Pagination of custom post type leads to 404 error

This seems to be common issue, and there exist a lot of posts about this issue but none of them works for me. I have a custom post type (portfolio) with a page pagination. $paged = ...
0
votes
0answers
43 views

How to rewrite a URL for a domain resolving to a sub-folder containing a WordPress install?

I'm having the following dilemma with WordPress: We are hosting several sites under one hosting plan (GoDaddy Deluxe Hosting) and using the "Hosted Domain" feature, which makes domains resolve to an ...
0
votes
1answer
9 views

Permalinks - Archives

The WordPress docs say: WordPress offers you the ability to create a custom URL structure for your permalinks and archives. https://codex.wordpress.org/Settings_Permalinks_Screen I see how this ...
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
0answers
39 views

Custom post type archive pagination 404

EDIT. I found the culprit causing my issue. I had the following code to change the pagination slug to "sida" to reflect the site language. It works well for blog posts, but it does not work for custom ...
-1
votes
1answer
27 views

I want to filter my products with attributes [closed]

I have ebook store, where all the books are listed, everything is done.. In products, publisher and author added as a custom attributes. Now I want to filter the products on the basis of ...
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
51 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
2answers
16 views

Permalinks stopped working - NO update, mod_rewrite enabled, .htaccess not touched

At first, my permalinks and all worked. My permalinks were in /year/month/post/ format. Today I found out when I try to open an Anspress question, I get a 404. (that worked too, last time I checked) ...
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
78 views

Add prefix to link url

I want to add image link on wordpress site which redirect the user to the another page of same url but with different prefix. for example page url is mydomain.com/post1234 when user click the image on ...
0
votes
0answers
29 views

Best way to change category base permalink

I am trying to change the base url for a posts category to /%category%/%postname%/, I have changed this in the permalinks and it works, but wordpress then ignore all my page links thinking they are ...
0
votes
0answers
41 views

Dynamically populate permalinks

I'm using a fairly standard permalink structure in wordpress e.g. example.com/custom-name/post-title However, I wish to prepend the 'custom-post-type' with a location name from my database. So the ...
0
votes
0answers
7 views

Support permalinks with either id or post_name

On my site, I use the default permalink format http://example.com/?p=123, where 123 is the post ID. Now, I need to import some posts from a different platform, where links look quite similar: ...
0
votes
1answer
30 views

WordPress Permalink feature alternative

I'm trying to prefix my permalinks for some backend logic to emulate posts on Multisite. I have used the post_link filter but unfortunately it didn't meet my needs as it doesn't prefix the permalink ...
0
votes
0answers
14 views

wp_rewrite page 404

wp_rewrite gives me an 404, don't know what i'm doing wrong. function ftc_flush_rewrites() { global $wp_rewrite; $wp_rewrite->flush_rules(); } function ftc_add_rewrites() { global $wp_rewrite; ...
0
votes
0answers
12 views

whats the best practice to make specific links accessible in theme?

I have a bunch of links I need to reference in my custom theme. Since it should be flexible and the page is also translated (using WPML) hard-coded links are not an option. Right now I use registered ...
0
votes
1answer
77 views

Include language variable in url

I have been developing a language plugin for wordpress which works completely. The only thing that is missing now is the url-rewriting. I have been looking at a lot of websites, sources and other ...
0
votes
1answer
25 views

Two urls for one website

I have a customer that started his small business using an url called "firstname-lastname.ch". Since he was lucky enough to grow and now wants a proper URL, he would like to have another URL for his ...
0
votes
0answers
36 views

Pagination not working for custom category template and custom permalinks

I am using following code in category-20.php, for the pagination through ajax, which is working fine for the defaults permalinks. But when i change the permalinks to custom, then pagination doesn't ...
1
vote
1answer
30 views

Get new Wordpress slug from old wordpress slug

I have implemented a shortcode called post which contains an attribute src which has link of an of page [post src="http://www.listenmoneymatters.com/the-betterment-experiment/"] Currently, this ...
0
votes
0answers
20 views

CPT Rewrite Rules by date

I'm having issues with date categorized posts for my CPT. I have permalinks not on the default. I created a CPT with register_post_type and setup rewrite rule as follows. 'rewrite' => array( ...
0
votes
0answers
26 views

How to properly make a blog roll?

I know that there's a home.php for the blog roll. However, I've been seeing a lot of WordPress sites lately and their blog rolls are under "articles" or "writing" like "somone.com/articles" or ...
2
votes
0answers
37 views

Make Category Base Appear in Posts Permalink (but not tags)

I have a slight problem with WP permalink structure. My aim is to make posts permalink appear with a specific category and it's base, for example: domain.com/custom-base/%category%/%postname% And ...
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 - ...
1
vote
1answer
121 views

Change slug of registered custom post type in child theme

I successfully renamed a custom post type registered by my parent theme in my child theme using this method. The problem is, my permalinks haven't changed. So when I change portfolio to homepage and ...
0
votes
0answers
18 views

Using Tag name in link to post

I have 2 Tags one is named 'The Guardian' and the other is named 'New York Times' assigned to some posts. Right now my link to those posts on my home and category page says 'Read Full Article' and ...
0
votes
0answers
13 views

Link Post Titles to External URLS

I have a site full of 1000s of newsfeeds. When user clicks on the title, it takes the user to the article page, then the user must click 'read full article' to go to the external url. Is it possible ...
0
votes
0answers
37 views

Adding %subcategory% to permalink structure: either subcategory or single-post outputs 404

I've had this problem before but never actually found a solution. Let's say i have a portfolio category, a drawings subcategory and a my-new-drawing single post, which belongs to portfolio/drawings/. ...
0
votes
1answer
46 views

What is the action or filter for changing permalink in Edit Post/Page?

I know about edit_form_after_title hook but what about changing the permalink. How does WordPress creates permalink because that permalink and the one that get_the_permalink returns doesn't match? ...
1
vote
1answer
19 views

Moved page (new parent) loads properly using obsolete URI. Why?

I hope someone can explain how WordPress knows to properly serve up a page that has been moved - even when using the "pre-move" URI. I would expect to get a "404". Instead, WordPress redirects to the ...
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
0answers
39 views

redirect post_id urls to full post url

I am having a site where I am using permalink like site.com/%post_id%/%postname%/. If a person visit site.com/%post_id%/ it does not redirect to full post url.
0
votes
1answer
46 views

Permalink for specific page name

I create a new page with post name is 'my-page'. I also have 2 custom query strings. So, the URL will be like: http://domain.com/my-page/?qst1=aaa&qst2=bbb I want the URL like: ...
0
votes
0answers
17 views

Custom Permalink with Custom user meta mapped to posts published by user

I want to map a custom user Meta to the permalink in the form of http://localhost/%user_meta%/posts. The user_metais a custom user meta whose id=brand. The URL http://localhost/%brand%/posts should ...
0
votes
0answers
22 views

/page/2/ not showing

I am having a weird issue where when clicking on the pagination links the page just refreshes. The links are pointing to the proper pages(/page/2/) but when clicked, they do not show in the url. This ...
0
votes
1answer
17 views

permalinks of subcategory and posts

I need to list subcategories and the posts that in it, for example: <h3><a href="#">subcategory</a></h3> <ul> <li><a ...
0
votes
0answers
19 views

Added incorrect rewrite rule now getting an error

I have made a mistake using add_rewrite_rule() function and now my site is throwing a 500 "internal server error" normally I would just edit/fix the issue in my .htaccess but since this is not how ...
0
votes
4answers
182 views

Change permalink only on new posts

Is it possible to change permalinks on all posts created after a certain date? This because we don't want old URLs to break. Now we have /%year%/%month%/%postname% We want to have /%postname
0
votes
0answers
46 views

Remove one part from the Permalink automatically

I have a bit of a messed up situation. The client wanted to have static landing pages like website.com/state/city but also create custom post types like restaurant. So I setup regular pages with the ...
0
votes
0answers
29 views

Wordpress Permalink Custom Post type

For the Permalink on wordpress setting I have /%category%/%postname%/ This will show Post in different category like /blog/post_title_1/ or /event/post_title_1/ but now I have some Custom Post ...
0
votes
0answers
34 views

Pagination returning 404 on Page 2 (/page/2) and up

The pagination on my website is not working. I can see the following rule in place Rule (.?.+?)/page/?([0-9]{1,})/?$ Rewrite index.php?pagename=$matches[1]&paged=$matches[2] But for some ...
0
votes
0answers
20 views

Add Archive suffix on permalink structure

My permalink structure is /%category%/%postname%/ Where the posts can have one category and one subcategory, having its permalink: /category/subcategory/postname The homepage of all the ...
1
vote
2answers
92 views

nginx - permalinks with .php in url not working

I'm moving a site from an Apache server to a nginx server. A lot of the pages have a .php extension at the end of the permalink. Trying to view those pages results in a nginx 404 Not Found. However ...
2
votes
2answers
61 views

Why Wordpress Can't Handle site.com/%postname%/someword ? Gives 404

I have noticed I get an advantage using /%post_id%/%postname% since any mistake etc after sitename.com/123/wrong-words?some=params&etc=etc gets redirected to the correct post. But for ...