Unanswered Questions
1,578 questions with no upvoted or accepted answers
3
votes
0
answers
427
views
Post in Multiple Categories to stay in current category (permalink, next previous post link)
I guess this has been mentioned before, but after 2 days of browsing i haven't find a complete solution. Maybe someone has come across this problem before?
I'm building a designer portfolio where ...
3
votes
0
answers
221
views
What add_rewrite_tag()'s RegEx matches against?
I'm trying to figure out wether I can specify the position of the string to match (i.e. immediately after the domain) to reduce the chances of matching something else, but I don't even know what the ...
3
votes
0
answers
401
views
Evaluating a external rewrite rule before internal wordpress rewrite rule
I am been plucking out my hairs since last few days trying to solve this problem:
I want to convert my urls from format
http://example.com/prodsearch/category/tag1-tag2-tag3-tag4
to
http://...
2
votes
0
answers
59
views
@wordpress/env cli doesn't seem to properly update permalink structure until visiting the WP Admin Permalink settings page
I'm using https://www.npmjs.com/package/@wordpress/env to set up a local docker-based WordPress development environment, which has been working great so far. I'm trying to build a script using ...
2
votes
0
answers
23
views
Newbie question: no index.php? in my plain wordpress permalink
I am trying to learn about the Rewrite API and I see people write their plain permalink as "index.php?page_id=", but my local Wordpress site shows "?page_id=" instead. Is there any ...
2
votes
0
answers
138
views
Wordpress auto generates small medium and large of an image on upload, how can we guess their links?
WordPress out of the box has an integrated image sizes system, which creates files ( thumbnail, S, M, L) but in the media library, it only shows one original file size link.
Let's say, I upload a file ...
2
votes
1
answer
187
views
How to write correct add_rewrite_rule in WordPress for more than one taxonomy in one rule?
I have a database of locations and services, made using WordPress , each town / region / county is a custom taxonomy,
I wrote some custom rules to make slug clean but they (site owners) ask to remove ...
2
votes
0
answers
84
views
Disable shortlinks like ?p=1234 to prevent scraping
I have a site with several thousand public pages that use randomly generated slugs for their pretty urls. The content is public in the sense that if someone knows the URL, they can see the content. I'...
2
votes
0
answers
171
views
How do I get WordPress URL rewrites into Sitemap?
Consider the two following custom post types:
Museums
Bakeries
With one shared taxonomy:
Region
I'm using rewrite rules to improve the URL structure, so I can serve pages to visitors such as:
...
2
votes
2
answers
54
views
Permalinks without post type
I use norebo theme
I use it when I open a Portfolio the link is in this format
https://www.hshnorm.com/project/fruit-flavored-powder-juice/
How can I remove the word project
To be the link in this ...
2
votes
0
answers
44
views
How to restore WP 5.4 behaviour where a numeric string could added to each page URL and parsed as "page" in WP 5.5?
In WP 5.4.x, I was able to add a number to the URL for any page, post, etc. (incl. custom post types), which WP interpreted as the 'page' for a multi-page post, even if that page or post didn't ...
2
votes
0
answers
30
views
Mixed unrelated taxonomy in permalink
we have a situation where we want to build permalinks using mixed (unrelated, ie not hierarchical) taxonomies in permalinks on a wordpress site.
and we dont want the taxonomy name in the actual link.
...
2
votes
1
answer
367
views
Custom permalink structure for posts in specific category
Hi I'm trying to rewrite permalink structure for posts in one specific category, the structure should be category name - author name - post title
When I use the code below, there is no author name in ...
2
votes
0
answers
42
views
Change permalink rule if category is called "uncategorized"
My current permalink looks like this
/%category%/%postname%
Basically I want something like this:
If the category of the post is called "Uncategorized" then change the permalink rule from
"/%...
2
votes
1
answer
402
views
How to change the permalink structure of a master page?
Links on the page I use are progressing as follows: http://example.com/image/1
The code I use for Functions.php
add_action( 'init', 'wpse316713_pagination_base_rewrite_rule' );
function ...