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

Whole site's pagination not working after rewriting product permalink

I have to rewrite the product's permalink by changing it from the default /product/product-name into /%product-cat%/product-name. %product-cat% is a custom category. But after I rewrite it, the ...
0
votes
2answers
15 views

Custom PHP form needs refresh to load page correctly

I have a single page site with all content on it. The only other page I have is a "thanks for submitting the contact form" page. In this "thankssubmit.php" page I have my PHP form ...
0
votes
1answer
17 views

Load-balanced site frequently losing permalink settings

There's an intermittent issue where the permalinks are suddenly lost on the site. Going in to wp-admin and saving Settings->Permalinks (without changing anything) always fixes it, but I can't ...
0
votes
0answers
16 views

Child-Theme Category View with modified permalinks (%category% removed)

I created a new WP Website and added a child-theme to it. The child-theme contains header.php, footer.php and I also created a category.php, in which I show different headers for each category. I ...
0
votes
1answer
19 views

Duplicated <a> tag in loop

I stuck on this issues, looks simple but can't find resolution to fix it. I have such loop: <div class="features-items__wrapper"> <h2><?php echo $currentTitle; ...
0
votes
0answers
8 views

Exclude “Blog” Page From .HTML Extension Addition in wp_rewrite

I currently have all the permalinks for pages/posts on my site on my site rewritten to add .HTML to the structure. However, in an effort to avoid 301 redirects I would like to exclude the blog page ...
0
votes
0answers
12 views

Add folder to URL path

I have a couple of pages I would like to put in a subfolder and have it appear in the URL without affecting the URL structure for other pages. Example: https://www.example.com/subfolder/abc https://...
0
votes
0answers
12 views

Multiple permalinks for a single custom post with post ID in permalink and post title

I'd like to be able to have multiple permalinks for the same underlying post (so if the post title is modified, the people still will find the page) - So, One URL will work with 3 different options. ...
1
vote
1answer
35 views

Is there anything built into the WordPress core to enable me to get the relative path from the “permalink structure” option

I fear I am going to have to write a bunch of code to get what I need, which is fine, but I want to check to see if there's anything in-built before I embark on that journey. I am working on a plugin ...
0
votes
1answer
16 views

Convert $ _GET to permalink

hi How do I convert links from mysite/tv/title-post?go=seasonsmysite/tv/title-post?go=characters to mysite/tv/title-post/seasonsmysite/tv/title-post/characters This code <?php $post_id =...
0
votes
1answer
76 views

Strange behavior: random HTTP error 500 fixed by visiting Permalinks settings page (htaccess issue with language code)

I’ve got a pretty weird behavior on my site that I’d like to resolve. From time to time (no recognized pattern), my site shows a 500 error, on the front pages or on some admin pages. When this 500 ...
1
vote
2answers
20 views

Permalink in Wordpress loop outputs <A> for each new line

I'm using the following loop to pull my posts, the a is wrapped around the div to make sure it links to the post when clicked. <?php $query = new WP_Query( array( 'post_type' => 'post', ...
0
votes
0answers
16 views

How to set the same base url for two different taxonomies?

I have created two custom taxonomies. function themename_custom_taxonomies() { // Coaching Method $nieruchomosc = array( 'name' => _x( 'Nieruchomość', 'taxonomy general name' ), ...
1
vote
0answers
11 views

How can I turn a custom wordpress page into a product page?

I want to create a custom wordpress template product page using PHP. I don't want to override the default product page, but I want to register my custom template page as a product page. I have created ...
0
votes
0answers
12 views

Add dynamic text in URL on button click

I've a button with URL abc.com/go/. When a user clicks on this button it will open the page. I want to add a random alphanumeric text after abc.com/go/ every time when clicks on this button, so the ...
0
votes
1answer
52 views

WordPress Attachment Page URL Rewrite!

I am creating a gallery site using FooGallery and having the individual images open in the attachment page. I tried a bunch of codes from here to rewrite the attachment urls from ?attachment_id=8184 ...
1
vote
1answer
22 views

Custom permalinks in Wordpress

I have a question about permalinks that has me crazy because I have not found a solution for a long time 🙁 So I turn to the wisdom of the hive mind to see if it sheds some light on me. I have my ...
1
vote
1answer
22 views

next_posts_link URL does not include name of custom post type

Inside my index.php, I have a new WP_Query() for a custom post type that I have named "todo". I am trying to implement pagination for this query, so it only displays three posts, then ...
0
votes
1answer
10 views

Customize URL for specific tags archive

I'm using WooCommerce to create an online shop. Some products are tagged with an "outlet" tag. I'm currently showing them via a menu item linked to the "outlet" product tag archive....
0
votes
1answer
13 views

Permalink blog page (only) not working

WordPress 5.6, WooCommerce version 4.9.2, PHP Version 7.4.14 Dear, I am facing a problem with permalinks. When having 'post name' selected, permalinks work for all pages expect 'blog'. In this case, ...
0
votes
1answer
11 views

Giving a new page an existing URL

Say I want to build a new page which will eventually replace an existing page. Rather then editing the existing page, I want to take my time and get it right, but when the new page is ready, I want it ...
1
vote
0answers
7 views

Is it possible for a custom post type and sub pages of a page with the same slug as the custom post type to share a slug?

Sorry if my question sounds a bit confusing. So I have a page "About" and currently, I also have a Custom post type "Our Team". I've set all the posts under the "Our Team"...
1
vote
1answer
15 views

Media Gallery Images - safe to change permalink?

I am new to blogging and learning as I go. I wrote a few posts with lots of images and now that I am learning about SEO, I realize I need to add alt text and have names that are relevant to the image (...
0
votes
0answers
34 views

How do I open a post in a custom page in wordpress?

I'm new to coding wordpresst themes. I made a whale loop on the index.php page, by clicking on the link I want the post to open on another page.php. Do I need to change anything to Permalink or? The ...
1
vote
1answer
37 views

Wordpress | Convert #038; to &

I need to pass a variable inside the permalink that takes me to my custom post, and then execute the $_GET of this variable inside an input of my cf7. The only problem Wordpress encodes the & in #...
0
votes
0answers
5 views

how can I show product comments in other link like (product-link / comments)

I want to show comments in link like this : sitename.com/product-slug/commnets how can I make this page ??? for more descriptin : I have product page and my prodcut page have to show comments but I ...
1
vote
1answer
50 views

Error updating pages, and linking to pages (permalink error)

There is a chance this has been answered elsewhere - I have searched as thoroughly as I can here and elsewhere. I have the following errors on my site, wonkylogic.co, (hosted on LAMP server on Digital ...
1
vote
1answer
65 views

AddToAny shortcode in the loop

I try to add addtoany shortcode in my custom loop page but the shared link stays always the same for each posts in the loop. <?php global $post; echo do_shortcode('[addtoany url="' . ...
1
vote
1answer
24 views

Wordpress 404 in development area

I have a live WP site, which I have taken a copy of and put onto a new server for testing / development. Once I put the website on the new area I updated the site url and home url in the database, ...
0
votes
0answers
6 views

Dynamic WP Permastructure tag

I have 2 taxonomy registered, Region and Types... I am using the following code to make a permastructure tag for one of the taxonomies: Region. add_filter('post_link', 'region_permalink', 10, 3); ...
1
vote
1answer
14 views

Permalinks for pages

Why can't i edit the permalinks for my pages? I got a 4 layer structure, Home Solutions Machines Steel so I want my URL structure to be www.domein.com/solutions/machines/steel but where can i do this??...
1
vote
1answer
28 views

Why is page/2/ not working?

This is my search page code can anyone help me figure out what is the problem I m having no content in my page 2 ...
0
votes
0answers
17 views

Using Custom taxonomy term as permalinks and archives

So I am a little stumped... I have the custom taxonomies: Region and Type. Now what I am trying to accomplish is to make parent Region terms the main permalink for my posts and use also use Region and ...
0
votes
0answers
14 views

Duplicate value in permalink

I'm using the wpjobmanager plugin. Each time I edit an existing post, it adds the value of the $location to the permalink again. I'm trying to write a function to prevent this from happening. Could ...
0
votes
1answer
73 views

Problems fixing a REST API 404 after Moving my WordPress Directory and updating Permalink Structure

I am running a self-hosted version of WordPress on a Linode VPS running Debian 9. I was previously using WordPress on a /blog directory because I had a basic HTML site that I decided not to keep any ...
0
votes
1answer
19 views

Xampp 7.3.3 fresh install of WordPress 404 pages unless permalink is set to plain

I have been running xampp 7.3.3 for quite a while but i have recently installed 2 fresh installs of wordpress and if the permalinks are set to anything other than plain the pages are showing 404. i ...
0
votes
1answer
20 views

How can I use get_post_meta with add_rewrite_rule to build custom permalinks?

I'm trying to change the url structure of my custom post type posts, but It's not working correctly right now. What I'm trying to do is change the urls of my custom post type (Test) posts via ...
1
vote
0answers
32 views

rewrite URL based on selected taxonomy for post page

I have a taxonomy called "group", and their values like "red", "blue", "green" (these are generating dynamic" no any fixed group value. during post ...
1
vote
0answers
38 views

Allow post/page hierarchy across different post types?

I have two custom post types, one of which I need to be able to select as a parent of the other. Post type A has a url structure www.mydomain.com/posttypeA/posttypeAsingle, and I need to allow post ...
0
votes
1answer
6 views

Make the blog page a child of another page and rewrite the blog url

I am trying to make my WordPress blog page a child of another page and have the url structure reflect that. However, I also have other custom post type archive pages set up that should not be ...
0
votes
2answers
16 views

Wordpress slug confusion

How can I make my page url to be like this in wordpress? Normal link: www.google.com/about What I want: www.google.com/any-slug/about How can I do that?
0
votes
1answer
20 views

Change Image URL on upload to some random number automatically

How to Change Image URL on upload to some random number automatically?
0
votes
1answer
33 views

Edit the output of a filter

I'm trying to edit the output of the filter (below) in the plugin WPJobManager. I want to make sure there isn't a duplicate company_name value in the $job_slug before it is updated. At the moment, its ...
0
votes
0answers
12 views

Link to a page before launch

I have purchased my WordPress blog on BlueHost and it is not launched yet. I would now like to link to the About and Contact pages that I have created from the Home page. When I look at the pages' ...
0
votes
0answers
14 views

Default Post post type and custom post type rewrite slugs

So, currently, my blog page is at /blog/ and I also have 2 custom post types. What I'm trying to get is to have all the posts/archives of the Post post type show under /blog/, and for one of the ...
0
votes
0answers
20 views

How to get pagination to work despite naming conflict?

I have been stomped for the past two days trying to understand wordpress' permalink structure. Right now, I have a a custom post type called venue and I have a custom taxonomy venue-type (e.x. hotels, ...
0
votes
0answers
23 views

where can i see wordpress automatic redirect History

WordPress Redirecting all the permalink changes automatically. for example if i change my post permalinks from : site.com/%postname% to site.com/%post_id%/%postname% wordpress automatically redirects ...
0
votes
0answers
18 views

Subcategories randomly not working after page/post/category edit in wordpress. Fix: saving permalinks twice

We run a custom WP theme with some plugins including Yoast SEO premium and WPML. We also run a version without WPML. In the version WITH WPML subcategories (quite randomly) give back a 404. This seems ...
0
votes
3answers
31 views

How to check if the current page is the permalink page?

Do any of you know a way to check if the current page is the permalink admin page?
1
vote
0answers
15 views

Why the “Permalink” option is not showing in the “Settings”? [closed]

I've just started using Wordpress online and I see that there's no "permalink" option in the settings. If anything is turned off or if I can bring the "Permalink" option with any ...

1
2 3 4 5
60