Questions tagged [permalinks]

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
6 views

How can I get custom post types to recognize pretty permalink variables?

I'm using PODS to create a custom post type called "automobile" on my site. This results in a permalink structure that looks like this: /automobile/automobile-page I want to be able to send ...
0
votes
1answer
9 views

Return value of get_permalink(0) and get_the_title(0)

I'm new to wordpress and I'm following a tutorial right now but I don't understand wordpresses behaviour. I'm trying to change the title of a sidebar which lists the parentpage and it's childpages, ...
0
votes
0answers
13 views

how can custom permalink structure use for specify custom post type

generated url some thing like this http://domain/test/testing-web002/ here test = custom_taxonomy(we can say custom category slug) and testing-web002 = custom post slug its showing 404 error at ...
0
votes
1answer
14 views

Adding parent pages to posts

I want to add a parent page to my blog posts so I can track their traffic together on Analytics. I want to avoid adding extra tracking code in the header to avoid slowing my site down. So what I want ...
0
votes
1answer
19 views

How to edit button permalink inside function.php using a child theme?

I am using a WordPress theme called "business one page" and it has a slider with Learn-more button. Here is a demo of the theme Business-One-Page I am using a child theme and I want to change the ...
0
votes
0answers
10 views

How to change specific primary category name in Yoast Seo? [on hold]

I have more than one category name in the post and I want to change specific primary category name to be normal category and then normal category to be primary category. Let's say I have sponsored ...
0
votes
1answer
46 views

Adding URL prefix for foreign language support

I've done some research to use it for my own complicated system (Using Plugin or Functions.php). In fact, what I want to do is add a prefix at the very beginning of the URL structure of WordPress and ...
0
votes
0answers
20 views

How to make archive of categories subcategories for custom post pages that distinguish between CPT

I have a problem I have 4 different custom post types readymade_public readymade_private collections_public collections_private And the structure is something like this is going to work ...
0
votes
0answers
18 views

WooCommerce Product Permalink using WordPress SEO Primary Category [closed]

I would like to ensure that a product permalink only uses the primary category if one is set via the WordPress SEO plugin. At the moment, a product may appear under Small Appliances example.com/shop/...
0
votes
2answers
15 views

How to stop a permalink redirecting to a page whit same slug but different permalink

I have this CPT that has this permalink http://example.com/area-cliente/colecciones/basicos/ and this other page http://example.com/basicos/ And going to http://example.com/area-cliente/...
0
votes
1answer
19 views

WordPress Sub domain

I installed WordPress on sub domain and I have Permalinks as domain/subdomain.com. In this way this website is working correctly and the main website is accessible via subdomain.domain.com as well ...
0
votes
1answer
27 views

WP posts using index.php instead of single.php

The posts on my custom theme are using the index.php file instead of single.php _ I have looked through at least 10 questions on SO_ although many of them are very old _ Some answers said that if ...
0
votes
0answers
14 views

Get taxonomy link with post type slug prefix

I have changed my post type URL structure to have the taxonomy type in the URL as well by doing this: In register_post_type (Post type: release): 'rewrite' => array('slug' => __('releases/%...
0
votes
1answer
9 views

Changing link format from Calendar widget

I have the Calendar widget in the sidebar of my wordpress site. It currently links to each day's post using the date format such as "/2019/08/01/" instead of the permalink setting (post name). How can ...
0
votes
1answer
20 views

Linking all posts to a specific page [closed]

I am trying to convert a static website to a WordPress theme, I am in localhost. I created a page with the name of (products) and I transferred all the post to display in this page,for example I have ...
0
votes
0answers
17 views

home page slug editor missing from WordPress

the website that I am working has been developed by a web designing company. i see that they disabled the home page slug editor but the rest of the pages has the edit option. Now I am trying to add a ...
0
votes
1answer
122 views

What is the difference between get_permalink vs get_the_permalink?

What is the difference between get_permalink vs get_the_permalink?
1
vote
1answer
20 views

Redirect /%year%/%monthnum%/%day%/%postname% [closed]

Need to redirect to new structure /%year%/%monthnum%/%day%/%category%/%postname% Saw code that helped before but can't seem to find it. Updated theme and lost the code that went into functions.php. ...
0
votes
0answers
13 views

Add directory slug to the post (but not custom post type) permalink structure [duplicate]

I'm having an issue trying to set up the default posts post type to use the permalink structure of /news/%postname%/ - I've tried editing the permalinks but it throws out my other custom post types. ...
0
votes
0answers
17 views

How do I set another domain for WP automatic redirects that is not the default domain?

I just migrated my blog from subdomain to subfolder. Then, I realized some old permalink changes on my blog posts are not redirecting correctly. The thing is, when in WP admin, my domain looks ...
0
votes
2answers
40 views

Passing parameter through permalink structure

I have a WordPress post which is accessible via domain.com/test/ What I want to be able to do is pass in a parameter using the URL - ie going to domain.com/test/ would load the same page as domain....
1
vote
2answers
173 views

Change URL structure of subcategory archive pages

I have my permalink structure for posts set up like this: /%category%/%postname%/ This generates URLs like this: mysite.io/category/sub-category/post-name Thats all fine. However, the archive page ...
1
vote
1answer
34 views

How can i have a custom post type with more slugs for each post?

I have a post type /city/ .. lets say i create a city called toronto with the slug toronto-canada. now i have /city/toronto-canada/ is there a way i can have more paths for each post in the custom ...
0
votes
0answers
36 views

Error 404 when modifying permalink structure of categories

I would like to edit the permalink structure of my site to obtain the following urls : Permalink of articles: /actualites/%year%/%monthnum%/%day%/%postname%/ Permalink of categories: /actualites/<&...
1
vote
0answers
27 views

Assign same parrent Page to pages AND custom post types

I have a page, where I list our current free job positions, let's call it Career. In it's content all custom post types of type job_position are being displayed. For some specific reasons I need to ...
1
vote
1answer
30 views

Remove post type slug of all post types from permalinks

I know similar questions were asked before, but this is new account and I can't comment there. This code remove post type slug from permalink. But I have a lot of post type. How can use this code for ...
0
votes
0answers
14 views

Wrong category in URLs accepted like the correct one

When we type in https://example.com/2019/07/22/news/midcoast/regulate-group-homes-in-residential-neighborhoods/ we can of course view the intended article. Then when I change the category names to ...
0
votes
0answers
12 views

Wordpress page aliases to create one page with two URLs

I have creating a signup sequence on a wordpress based site. Basically www.website.com\signup.php. The business is expanding and now we want to add a parallel set of pages that we can brand ...
0
votes
0answers
7 views

Do post id URLs [somesite.com/?post=123] ever fail?

Our app is tracking remote WordPress post URLs. The current solution tracks full URLs. I think it would be better to track them based on their local ID numbers instead. I can get the postID of a post ...
0
votes
0answers
16 views

Change Tag Permalink Structure

Please i need your help, already i tried to do it via several way but no result, so my problem: In Tags Page i want when i click on a tag the default permalink is /tag/key-word I want change https:...
1
vote
1answer
63 views

Custom template won't load for a custom post type (custom permalinks used)

I created a custom taxonomy for my custom post types. function create_states_hierarchical_taxonomy() { $labels = array( 'name' => _x( 'States', 'taxonomy general name' ), 'singular_name' ...
0
votes
0answers
44 views

Changing permalink stops me from creating webpages

I've just created a new WordPress site. When changing the permalink structure I cannot create or edit pages. I do have mod_rewrite enabled but alas still get errors. How can I fix this? I've had this ...
0
votes
0answers
20 views

Custom rewrite rule help

I am trying to solve a rewriting issue. Basically After quite a bit of research, I came up with this custom rewrite rules: $category = 'category'; $page_slug = 'florida'; $...
0
votes
0answers
25 views

Redirect Permalink of Child Category to Parent Category [duplicate]

I recently changed my permalink structure to /%category/%postname/ and its okay, My site post permalink is now https://example.com/categoryname/postname/ Now the issue is, I am having child category,...
0
votes
0answers
23 views

Redirect Child Category to Parent Category Post Permalink

I changed my permalink structure to /%category/%postname/ and its okay, My site post permalink is now https://example.com/categoryname/postname/ Now the issue is, I am having child category, It ...
0
votes
0answers
19 views

Product Permalink Blank Page

I've been building my website on the wordpress online platform. It was fine for some time until now i notice i couldn't view my product after clicking into the product itself. It shows my web header ...
0
votes
0answers
37 views

How to add a 'News' section to specific posts in WordPress

I have a question regarding the WP post structure. How can I add "News" or "Technology" to specific posts in WordPress? I think this technique is very different from "post category" as categories are ...
0
votes
1answer
45 views

Add word to permalinks does not transform the urls

Let's say I want to add the permalink for the URLs: site.com/section/{postname} and the 'section' matches the name of one post's category (just for one case). After having a moment for study the ...
0
votes
0answers
9 views

Prevent redundant permalink category base and parent category

My permalink category base is mysite.com/news/ and most of my categories are placed underneath a parent category named news so I've got a ton of category list pages that all start with mysite.com/news/...
0
votes
1answer
22 views

How to get child pages and add unique class only to active page?

I have a parent page with child pages. How to get child pages and add unique class only to active page ? I am making a sidebar with children's menu parent page one level up. I can list all child ...
0
votes
1answer
20 views

custom word in custom permalink structure

I can see that there is a custom structure option which has things like %year%, %postname% etc. but how can I put my own one there? I would like something like: https://example.com/latest-news/%...
0
votes
0answers
8 views

WooCommerce product link is different than assigned permalink, frontend does 301 redirect

I'm using the Advanture Tours theme that comes with WooCommerce, and am unable to figure out why my products have one permalink shown when editing the product (the correct one!), but when you hover ...
1
vote
2answers
57 views

Permalink Structure problem with cpt and custom taxonomy

I'm working on a WP website with many CPTs and Custom Taxonomies, but also using the regular "post" post type for the regular blog section of the site. I want the blog posts and archive and ...
0
votes
0answers
14 views

Permalink length

I use Bengali font/language on my site. And its old blog. Now the issue is, my post permalink are this: website.com/blog-post-name As I use benglai, the permalink are looks like this: website.com/...
0
votes
1answer
14 views

How to get post image root URL?

By using below code, I got Image url like "http://localhost..." but I need root path of that image from "var/www/html/.... " $FeaturedImage = wp_get_attachment_image_src( get_post_thumbnail_id( $...
1
vote
1answer
24 views

Can't remove front from permalinks for custom taxonomy category page

I've made a custom post type called 'portfolio' and a custom taxonomy called 'portfolio-categorie'. While I see the new categories in my pages, I have a problem removing the 'front' from the url ...
0
votes
0answers
14 views

i tried to change custom permalink on subdirectory blog, but blog homepage automatically display root homepage content

i tried to change custom permalink on subdirectory blog, but blog homepage automatically display root homepage content, please help if anybody know the issues.. For example I have domain - https://...
0
votes
0answers
19 views

unable to display two post per page in wordpress front-page.php

'posts_per_page' => 2 is not working if assign post_per_page to 1 it will display 2 post per page and if I assign post_per_page to 2 or 3 it will display 3 post and when used 4 it will display 4 ...
0
votes
0answers
38 views

Assign comment author link with profile link

I want to assign comment author link to author profile link (if comment author email is registered). Profile permalink is /user/UserName I've come over this code which is link to author posts url- ...
0
votes
0answers
12 views

Wordpress Multisite Link Problem

I faced some link problem in wordpress multisite. I moved my site form localhost to domain. My site is under sub directory of domain. What I faced is home page is correct and also other links are ...