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
1answer
173 views

How do I fix permalink and media library issues on a LEMP stack?

So, I'm setting up a wordpress site on Digital Ocean's IaaS. I'm using nginx as a proxy and web server (instead of apache), so a LEMP stack. I was able to get my site up and running, though there are ...
0
votes
0answers
20 views

Rewriting permalinks in specific way for two pages

I wish to rewrite permalink in th efollowing way (just for two specific Pages): 1) there are two pages: mypage.com/byindustry & mypage.com/bystyle 2) I wish those to be rewritten (or if not ...
0
votes
1answer
45 views

Add variables to all permalinks in site

I need to add variables to all links in my site based on a condition. So all permalink in a page that met my condition (in specific category or whatever) : www.domain.com/exemple-page or ...
0
votes
1answer
132 views

Removing rel=“nofollow” from links posted in Post Content

I am running wordpress for my blog EasyPadhai. I am writing a posts and I have included links to my Android app EasyPadhai for my users. But all links to app are turning in nofollow links. Also ...
0
votes
0answers
27 views

Custom permalink parameter isn't enforced

I'm trying to create a custom permalink for my posts based on a custom field. I'm most of the way there but I'm struggling with the last part. My goal permalink structure is as follows: ...
0
votes
1answer
94 views

Using two permalinks for one post

Using two permalinks for one post I am developing a wordpress website for a client, the client want to show 2 separate templaes for post details the scenario will be. user clicks on post and our ...
0
votes
1answer
60 views

Custom Post Type with modified permalink structure results in 404

I've defined a custom post type, 'Review', that I'd like to utilize with a custom permalink: /reviews/year/postname. The below code correctly creates the CPT and the custom permalink appears correctly ...
0
votes
2answers
58 views

Only the latest post shows up on post page?

disclaimer: this is my first foray into wordpress I'm creating a custom theme and in the single.php file, i have the main loop, however if i navigate to different posts, all that shows up is the ...
0
votes
2answers
43 views

Custom permalink structure for remote content pages

I'm trying to create a WordPress site that integrates with a very specific CRM in a remote server. The CRM holds a number of entries that should be displayed on the site, but if possible I'd like to ...
0
votes
1answer
87 views

xammp server permalink by postname not working

I am able to access main page on localhost but not able to access page that I have added it display 404 error. my question is same as : ...
0
votes
1answer
25 views

WordPress Archives Cause Looping

I am attempting to create an archives page that would have links to authors, categories, tags, etc. I would like it so that when the author, for example, is clicked, all their posts are displayed. ...
0
votes
1answer
82 views

Does a parent page's post_title have to appear in a child page permalink?

If I have a page called Home and then a child page with Home as the parent, is there a way to avoid 'home' appearing in the permalink for the child page? I've noticed this with a one-page scrolling ...
2
votes
1answer
222 views

Custom permalink structure leads to be 404 on pagination

I have a permalink issue. For your information, there are a few different categories within a website and there are many posts in a single category. My permalink setting is: Custom Stucture: ...
0
votes
1answer
46 views

Custom Post Type Pretty Structure

I am customizing a wordpress installation with a custom post type and have a problem with the permalink structure. I added a team_member CPT, and the contents should be visible in a specific URL: ...
0
votes
2answers
74 views

Change Image depending on page path

In my header.php I have the typical header code - this is for woocommerce but the coding has nothing to do with it: <h1 class="page_title"><?php woocommerce_page_title(); ?></h1> ...
0
votes
2answers
31 views

Custom Taxonomy Breaks Pages

I have a custom taxonomy called 'industry' that I want to use on custom post type 'website-design'. It works on the intended post type, but other pages are broken. I changed the 404 template as per ...
0
votes
2answers
34 views

How to stop permalink redirects for a particular slug

I have a large number of posts that each represent a very specific type of data. Each post title is the SKU for the data & information. Folks have become pretty savvy on the URL structure and ...
0
votes
0answers
28 views

Page with children of different post types

I want to have a Page post_type: page as the Parent of my structure. It should be possible to access post_type: page and post type customfrom the secionts slug: example.com/structure_parent Should ...
1
vote
2answers
151 views

Custom Taxonomy breaking pages permalinks

I'm stuck for some days with this problem and I don't know what else to do. With %somethingHere% on slug rewrite, pages permalinks are broken (CPT AND CT OK). Without, I don't have my desired Post ...
0
votes
0answers
59 views

Wordpress Pagination Not Working After Transfer from Localhost

I have the following code for wordpress pagination: function sds_pagination(){ global $wp_query; $big = 99999999999999; echo paginate_links(array( 'base'=> str_replace($big,'%#%', ...
0
votes
2answers
430 views

Is there a way to regenerate page permalinks without a plugin?

I'm working on a site which has some incorrect permalinks contains 'home-2' e.g. http://example.com/home-2/pagetitle/. I have no way of knowing where home-2 came from and manually editing the ...
0
votes
1answer
24 views

Page_link change

I'm trying to change default pages post type permalink, I'd like to add a '.php' to its end for example: home_url() . post_name . '.php' I can't use WordPress permalinks page because I'm using it ...
1
vote
1answer
36 views

Link to external URL

Only information I found on this were hacks 6+ years ago or plugins. Quite simply, I want to grab a URL (www.google.com) from a custom post type and make a link that links to that URL. Currently, my ...
0
votes
1answer
47 views

Add Custom Pagination Permalink

I'm trying to create a page with multiple loops on it and as such also need multiple pagination. This is proving to be a touch difficult, I've managed to get the links to show correctly by using the ...
0
votes
0answers
28 views

Htaccess https 301 problem

Since 2 weeks I have installed an SSL certificate on my domain. I have changed my base urls to https so my canonical url is https now. But now I need to force to https. I did this with the below ...
0
votes
1answer
39 views

Accidentally changed the permalink structure

I've changed the permalink setup on our webpage and now none of the links to the blogs are working. To be honest, I didn't really need to do it, but I was really trying to add a bit more of a ...
0
votes
0answers
6 views

WordPress menu link redirecting

I have a WordPress menu item that I want to link to http://forum.secdefus.com. I have set the menu up as such. Mousing over the link on the site displays "forum.secdefus.com" in the bottom left hand ...
0
votes
1answer
52 views

Wordpress Permalinks 404 error

Using Default Permalink Settings '/?p=123' works fine for me for every single page and it shows website urls like " ://mywebsite/solutions/?page_id=580" but When i changed it to /%postname%/ or to ...
0
votes
0answers
78 views

Custom post type and shared custom taxonomy ..permalink structure

hope someone can help me since I'm fighting with this issue since weeks without a solution. Scenario: ~ 15 different post types (hotel, bed-and-breakfast, etc) -> reason to use the post_type ...
1
vote
1answer
29 views

Custom post type permalink returns 404

Mates, I've created a custom post type. Created some posts of that type, but when I try to access to any of them, I get 404 error. Also created single theme (single-pb_progproy.php). Here's the ...
0
votes
1answer
127 views

Can't edit Custom Post Type slug/permalink

I have a custom post type and the permalink shows up but I am unable to modify it like I can with Pages and Posts. Is there a way to enable this? I have a few conflicts with some pages and I'd like to ...
-1
votes
1answer
77 views

Create monthly archive for parent category

Part of the website I'm working on is meant to function like a monthly magazine, with a few different departments. So I have 'Magazine' set as the parent category, and say 'Art' and 'Music' as child ...
0
votes
1answer
33 views

unwanted redirect

Built a custom theme for a client, everything has been working great for the last month. Today I noticed the "Aircraft" page was redirecting to the front page. Checked everything, refreshed ...
0
votes
0answers
40 views

PHP Rewrite Wordpress Folder to act as query string variable throughout site

I'm hoping in this is a possibility with Wordpress and I have been researching this for hours online and I'm not find a definitive or simple working example of how to achieve my goal. I need ...
0
votes
1answer
70 views

permastruct for custom post type not working in one of four cases

I've created custom permalinks for various custom post types on a website. They all worked. Until recently I added another one, which I cannot get to work 8-o. The "company" struct is not working and ...
0
votes
1answer
46 views

add_rewrite_rule with 3 or fewer matches?

I've been reading around a lot on here and Google to do with custom rewrite rules in WordPress and add_rewrite_rule. I found Jan Fabry's answer particularly helpful, but I'm now a bit stuck. I am ...
0
votes
0answers
49 views

Search page Paginations not working

This is what I use in all my other pages that require a pagination. <?php endwhile; ?> <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ($total_pages > 1){ ...
8
votes
2answers
308 views

Get default permalink structure from pretty URL's

When a single post is clicked on from a category page or for that matter any page, you can get the URL of that referrer and parse it to get the query string. But this only works with the default ...
0
votes
1answer
73 views

Custom taxonomy rewrite in permalinks for posts gives 404 on pages

So I've got a custom taxonomy (called "version") for just posts wich works fine.. My Problem is that i want to use this tax in my permalinks eg URL.com/12-3/cat/postname.. which works also fine for ...
1
vote
2answers
226 views

How to generate random numeric slugs for a custom post type?

I have this PHP code to generate a random numeric string: function generateRandomString($length = 12) { global $generatedStrings; $characters = '0123456789'; $randomString = ''; for ...
0
votes
1answer
27 views

Multiple Custom Post Type permalink issue

I have 2 Custom Post Type(Our Works and Case Study) in a WordPress site. If I add same postname(Pepsi) at my 2 Custom Post Type(Our Works and Case Study) the permalink will show given below: 1) ...
0
votes
0answers
30 views

Get the post URL from wordpress posts

I am not able to get the actual wordpress URL from the blogs in my multisite wordpress Here is my code: <?php $args = array( 'network_id' => $wpdb->siteid, 'public' => ...
0
votes
2answers
474 views

Custom Post Type Permalink Page Not Found

I've been wasting hours and hours trying to solve a permalink issue with custom post types. It keeps returning page not found (404). When I use the default permalinks, it works, but when I switch to ...
1
vote
1answer
80 views

Override category permalink to match old non-WordPress links?

I am migrating a currently static website to WordPress. The pages (I am using pages, not posts and categories) have the following structure: Products (parent page) - Product 1 (child-page) - ...
0
votes
1answer
22 views

How wp maps urls into files

I am trying to understand how wordpress works. I have found this line of code in my theme: <?php echo get_permalink(get_option('Theme_search_page_id')) ?> If I get the that option from mysql ...
0
votes
0answers
18 views

I need to change my wordpress permalink structure to mysite.com/taxonomy/post_type/post_title

I have three post types like post_type1, post_type2, post_type3, which are having same taxonomy "region" now i need my permalink structure like mysite.com/region_name ...
0
votes
2answers
98 views

Echo title with permalink

I was creating a wordpress sidebar widget that will display recent posts. For, this i've created a custom widget(popular_posts_widget.php) and included in my theme functions.php. I was trying to ...
0
votes
0answers
10 views

blog directory created under the root

Scenario: Wordpress is installed in the root; I created 2 pages Home and Blog; I set Home page as static page for root (http://www.mysite.com/) and Blog page for static page for blog article ...
1
vote
0answers
25 views

Add more structure tag to permalink?

I'm new in wordpress .I wondering is there anyway to get the category id in permalink ? My current permalink is : http:///example.com/%category%/%post_id%-%postname%.html ...
0
votes
1answer
45 views

Conditional Permalink based on category?

There have been unanswered questions about this here and in the WordPress support forum. Is it possible to have a conditional Permalink structure for all posts in a category? for example, ...