1,798 questions
0
votes
0
answers
60
views
Is there a way to disable permalinks conditionally in sphinx?
I know there is an option in Sphinx called html_permalinks which can be set to False in the conf.py file. But this disables permalinks completely.
I'm looking for a way to exclude certain levels of ...
0
votes
1
answer
71
views
How to create a Wordpress custom post type without "base" (post type name) permalink [duplicate]
I have a site with a plugin that creates a custom post type with the name "Event". In permalink settings I have it set to /%postname%/. So for a post named "birthday-party", the ...
0
votes
0
answers
61
views
Permalinks stop working after short period - Wordpress
I have a Wordpress site running a store via woo commerce. I need to set my permalinks to postname to enable importing data from suppliers via REST API. However, when I set my permalinks to postname ...
0
votes
0
answers
53
views
Custom Post Type Permalinks to Support Multiple URL Structures in WordPress
I have the following requirements for url patterns:
.com/CPT/ (archive of custom post type)
.com/CPT/post-name (single post in custom post type)
.com/CPT/category-name (archive of cpt category)
.com/...
0
votes
1
answer
171
views
404 Errors After Switching to Post Name Permalinks in WordPress (Nginx on MAMP)
I'm running a local development environment on macOS using MAMP, with Nginx as the web server, PHP 8.3.14, and MySQL. My WordPress site is set up in a subdirectory (/wordpress_site) inside the MAMP ...
0
votes
1
answer
89
views
Can WordPress handle tens of thousands of pages/posts on a single site?
I am a beginner trying to learn how to turn a WordPress site into a digital archive. I will need to create permalinks for potentially tens of thousands of documents in this archive. I'm hoping someone ...
1
vote
1
answer
63
views
WordPress post_link produces permalink that cannot be visited
I write the following codes to change the permalinks of posts with some specific categories, as below:
/* 2024-12-04: Define custom permalinks for some specific posts */
function post_custom_permalink(...
0
votes
1
answer
62
views
Any way to make multiple slug for wp post
I want to create a custom post type and display it using different templates based on the URL structure. Specifically, I want to show different pages depending on the template in the URL, such as:
...
0
votes
1
answer
147
views
How to disable the link from product title in WooCommerce Archives
I would like to develop wooCommerce custom plugin. For the project requirement product title hyperlink will be disable.For this simple task i define the following script.Please give me the solution ...
0
votes
1
answer
64
views
How to obtain a "permalink" to files on a personal hard-drive
Background: I write a lot of personal notes on all sorts of topics for work, life and hobbies. In my notes I often want to refer to personal files on my harddrive. I can do this by referencing the ...
0
votes
0
answers
52
views
WooCommerce My account additional sections permalinks issue
I have a WordPress website with Woocommerece and Jet plugins and I purchased a theme,
I'm trying to enable multiple segments in my website but it doesn't work, and I think it's an issue related to the ...
0
votes
2
answers
651
views
Showing custom empty cart page . WooCommerce and Divi Theme
I’m working on an e-commerce site based on WooCommerce and the Divi theme. Specifically, when the cart is empty, I get a blank page (though the header and footer are present). I’d like to know if ...
1
vote
0
answers
112
views
Is there a way to automatically flush permalinks in Word Press?
I need to save the permalinks on a site a few times daily, and want to know if it's possible to have this done automatically.
The Word Press function to flush permalinks is flush_rewrite_rules(). Is ...
0
votes
1
answer
167
views
I need to change the post type slug in URL to "city" custom field
I have a listing post type that works great. I even have a rewrite rule that takes a URL like "/chesapeake/user-x-llc" and redirects to the "/listings/user-x-llc". However, I want ...
0
votes
1
answer
16
views
Wordpress symlinks works but not as I was expected
I moved my working wordpress website from server A to server B. On new web server I open home page without any problems, but when I try to open other pages - posts (subpages) I get message
The ...
2
votes
1
answer
415
views
Display on the Primary Category in the WordPress Permalink
I am working on a recipe blog which uses the permalink slug (Dashboard > Settings > Permalinks) as
domain/%category%/%postname%/
this blog has multiple (8+) child-categories under almost all ...
0
votes
2
answers
897
views
Can I add utm URL parameters to third party link tracking to improve the stats in Google Analytics?
I have these links that are built by a third party company, like this:
<a class="button" href="https://thirdparty.com/redirect/&utm_campaign=hosted" target="_blank"...
-3
votes
1
answer
151
views
Old wordpress permalinks still active
I have updated permalinks for product categories on my wordpress website but the old permalinks are still active as well. Is there someway to permanently delete the old permalinks so they show a 404 ...
1
vote
1
answer
120
views
How to change the post permalink from title plus custom field value
I'm creating streaming website, I have custom post type (watch) and custom field inside the post page(eps_num).
When I create new post (title = Super Natural) the post permalink looks like this www....
0
votes
1
answer
55
views
Same Permalink for Different WordPress Objects with add_rewrite_rule
Is it possible to use the same permalink structure for different types of WordPress objects, such as posts, pages, or custom post types, using the add_rewrite_rule function? How can this be ...
0
votes
1
answer
182
views
GITLAB - Permalink for download latest AppImage Release from a repository
Somehow a follow up questions to:
GITLAB - Permalink for download latest Release form my repository
(I wanted to comment below, but this is only allowed after 50 posts or so)
Is there a way to put ...
0
votes
0
answers
319
views
How to Access WordPress Posts as Subdomains Instead of Subdirectories?
I'm trying to configure my WordPress website to allow access to posts in subdomains format instead of the default permalinks structure. For example:
The current permalink structure for the website is:
...
0
votes
1
answer
110
views
WooCommerce product permalink structure using add_rewrite_rule() with parent/child/ page
I'm attempting to customize the permalink structure for WooCommerce products.
I've tried implementing a solution using add_rewrite_rule() but haven't been successful. Currently, the links are ...
1
vote
0
answers
538
views
How to Remove slug from Custom Post type created from Custom Post Type UI WordPress plugin?
I have created a custom post type called "product" using 'Custom Post Type UI' WordPress plugin and have created few pages using "product CPT" with assigning a parent.
Existing url ...
0
votes
0
answers
37
views
Wordpress: Problems with CPT, category and nice permalinks
I set up a Custom Post Type called "projects" and have an archive-projects.php and single-projects.php that work fine.
$args = array(
'label' => 'Projects',
'...
0
votes
1
answer
500
views
How to remove parent slugs from child pages permalinks in Wordpress?
I remove them all right, but when I actually try to go to a page, there is a 404 error.
The code I have used ( variation of https://wordpress.stackexchange.com/questions/182006/removing-parent-pages-...
0
votes
2
answers
228
views
Permalinks and redirects
I would like to change the permalink from /%category%/%postname%/ to /%category%/%postname%-%post_id%/
How to set up a redirect correctly?
Tried setting it up through the Redirection plugin, but I don'...
0
votes
0
answers
28
views
how to remove some items in cart permalink [duplicate]
i'm trying to remove some Variation from product permalink in cart :
Its like this:
Product xxxx-105x25-left-side
Dimension: xxx
Direction : left-side
product x (title only)
Dimension: xxx
Direction : ...
0
votes
1
answer
640
views
Eleventy permalink output conflict when more than 2 pages added to collection
I'm having the strangest issue with permalinks and could use some help.
Windows 11
Eleventy 2.0.1
Nunjucks engine
Repo: https://github.com/wcDogg/eleventy-test
npm run build - No errors
Move test-c....
1
vote
1
answer
1k
views
Prefixing WordPress permalinks with blog and category name
I am really struggling with WordPress permalinks and wondering if what I'm trying to do is not possible.
I would like the following permalink structure:
domain.com/blog/ <-- blog index
domain.com/...
0
votes
1
answer
77
views
Wordpress - Convert query string as slash based URL
Is there a way to convert these query strings of a search result page template to pretty url?
my url structure is below:
https://example.com/properties/condos/?paged=0&listing_page_id=25884&...
0
votes
1
answer
25
views
Recently i upgraded my hosting to cloud and my Post urls are not working anymore, my permalink setting is as below
Permalink setting
However urls with https://sitename.com//%category%/ are working fine
all urls having postname not working
I have already changed and restore permalink settings, done cache flushing
...
0
votes
0
answers
29
views
WordPress core Category/Sub-Category Permalink issue?
I'm seeing an issue (or feature?) within WordPress core that I'm wondering about.
My permalink structure is set to /%category%/%postname%/ with category base being empty.
I have a main category called ...
0
votes
2
answers
185
views
How to use anchor in Wordpress permalinks
I'll try to explain my need as best I can. When I create a new post in WordPress, the permalink is automatically generated. The permalink is also present within the post and can be modified manually ...
1
vote
0
answers
58
views
Render README Snippet from Relative Link
Background
I am creating the README.md for my GitHub repo ("MyRepo"), which provides certain VBA functionality. Here I wish to display a code snippet, which the user should paste into their ...
1
vote
0
answers
35
views
Every pages are shown 404 page on WordPress
Now, I am building a WordPress site.
After creating a new page, click preview button, the 404 page are shown.
I 'am working on WordPress 5.9.7 and using a child theme of Twenty Twenty-Two.
And I set ...
0
votes
0
answers
109
views
WordPress Permalink - GCP Load Balancer - 503
Everything works fine until I sent permalink to %postname%.
I have tried everything like AllowOverride All in /etc/apache2/apache2.conf and /etc/apache2/sites-available/000-default.conf.
Nothing works ...
0
votes
2
answers
2k
views
Changing permalinks via functions.php
I have designed a wordpress theme where I have designed a separate page for users to log in and this page will be accessible if permalinks are selected as %pagename% %category%.
For this, I know that ...
0
votes
0
answers
138
views
How to resolve redirection issue with "/" URL in wordpress website
We are facing a page with a Redirection issue with the "/" URL. Our website structure is "https://www.example.com/tableau-consulting-services.html" But some all our landing page ...
0
votes
1
answer
50
views
Use the same permalink structure for multiple taxonomies
I have a WP site where there are 3 taxonomies, the main categories, companies and regions. I'm looking for them to all use the same permalink structure like:
site.com/{category-slug} site.com/{company-...
-1
votes
1
answer
251
views
WordPress Admin Panel Problems
Currently I’m using WordPress Version 6.3 and whenever I log into my admin panel dashboard it seems fine until I click on any option. It redirects me to my home page but has a different url at the top....
1
vote
2
answers
602
views
Set custom post type permalink to root in WordPress
I created a custom post type to organize a certain type of pages, but since my WordPress permalinks settings are set to /blog/%postname%/ this new custom post type permalink is /blog/new-post-type. I ...
-2
votes
1
answer
293
views
Change WooCommerce Product Permalink Structure
According to my suppliers they want the local site and the international site to have the same product URL's just different domain. However my site is built on WooCommerce and there's is a custom PHP ...
0
votes
1
answer
58
views
How to solve WordPress permalinks issue?
I've faced a problem with the permalinks structure in WordPress
I need a link that looks like: https://example.com/?lang=en
But WordPress automatically does this link like https://example.com/langen
...
1
vote
2
answers
1k
views
my WordPress website is adding the domain URL to the end of each permalink,
I'm currently facing an issue with my WordPress website where the domain URL is being appended to the end of each permalink. This results in broken links and a poor user experience. I'm seeking ...
0
votes
0
answers
299
views
How to remove the category from the url only for a specific category of articles on wordpress
I'm using a permalink structure like this on a wordpress : /%category%/%postname%
But i'd like a category of articles to appear without the prefix /%category%/
ex : right now it's appearing like that :...
0
votes
1
answer
528
views
Can I use a REST API with permalink setting, "plain"?
I want to post articles to a WP site without permalinks, meaning the permalinks are set to "plain" in the permalink setting, from my application. I know that if I access "https://site-...
-1
votes
1
answer
384
views
Remove product-tag in url for Woocommerce
i need function for Woocommerce to remove "product-tag" in url of product tag.
I search more solutions but dont work and i dont like install plugin for this feature.
Tnks
Regards
I test code ...
0
votes
0
answers
125
views
Limit the size of existing permalink slugs only on specific custom post type in Wordpress for SEO
Below are the codes i found on: Limit the size of the existing and new permalink slugs in Wordpress for SEO which were very helpful but i still need a little further help please.
CODE 1 below: Help ...
1
vote
1
answer
423
views
Permalinks Auto Re-Save after every 5 sec
I am new to coding and trying to fix a problem on a wordpress website.
Problem:
Getting 404 error on most pages randomly. If refresh the page, It may load fine but 404 most of the time.
I am trying to ...