Questions tagged [url-rewriting]
Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"
2,051
questions
0
votes
0
answers
21
views
Is it possible to change getbloginfo('url') inside a single post? [closed]
I have a blog that's available in two languages using Polylang. I have a taxonomy called artists under which several artist names serve as terms. When writing, the practice is to hyperlink the artist'...
0
votes
0
answers
16
views
Remove date rewrite rule for custom post type archive page
I'm building a website with an archive page where I can filter posts by date (year and month) and by term.
I'm using wordpress url params to display filtered posts. The filtered url looks like that :
...
0
votes
1
answer
13
views
CPT with URL rewrite showing as 404
I have a unique issue with URL structures on a custom post type.
I'm using CPTUI plugin to create a "product" post type. This works well enough on it's own. But in order to follow site ...
0
votes
1
answer
19
views
How to make such a structure for cpt?
How to make such a structure for cpt?
'/slug/%category%/%category2%/%postname%/' for post
'/slug/%category1%/%category2%/' for taxonomy
There will be a maximum of 2 levels of categories.
If a post has ...
0
votes
2
answers
22
views
How to customize the url structure?
The problem is complex. When ACF and YAST SEO are activated, and custom taxonomy does not have a slug, the code is below. However, regular pages display a 404 error. I tested it on pure WordPress. ACF ...
0
votes
1
answer
13
views
Custom taxonomy still using query URL after fixing error
I made a mistake when creating a new custom taxonomy and custom post type. Here's the line in the custom taxonomy with the error...
register_taxonomy('resource-category', ['qp_resource'], $args);
The ...
0
votes
1
answer
14
views
Trying to Find the PHP File/Function that Handles a Specific Form Action URL
I am using a specific plugin that enables basic e-commerce functionality, and am attempting to extend the plugin functionality to include payment processing on the checkout page. The plugin itself has ...
0
votes
0
answers
19
views
Display A Post At A URL without Redirecting
I want to have a single post show up for multiple URLs. The post would be at "category/post-name/" and I want all URLs like "category/post-name/asdfa" to show the post, but keep ...
1
vote
0
answers
19
views
How to Dynamically Change the author_base URL Slug by Language in WordPress?
I am working on a multilingual WordPress site using WPML and I am trying to adjust the author_base URL slug based on the user's language. My goal is to have different slugs for each supported language ...
0
votes
1
answer
31
views
Redirect OLD/Path to NEWURL/Path
I am using wordpress with woocommerce and I just got a new domain and I have already migrated the old website to the new domain. My issue is am trying to redirect any one who visited any content on ...
0
votes
0
answers
19
views
Unable to register rewrite rule using add_rewrite_rule
I am trying to add a rewrite rule to my plugin but somehow I can not get it to work in any way I find online. Right now I simplified it (to start debugging and moving it to the correct place later) by ...
0
votes
2
answers
31
views
Is there a way to create a single rewrite rule to handle multiple variables depending on what is present?
I have the following rewrite rule to handle when all arguments are present:
add_action('init', 'ebd_custom_rewrite_rules');
function ebd_custom_rewrite_rules() {
add_rewrite_rule('^shop-region/(.*)...
1
vote
1
answer
44
views
How to add random prefix (based on related page slug) to custom post type?
I want to create some specific url structure for my website. My Pages will be Inner Home pages that will combine articles and reviews.
Articles and reviews are 2 separate custom post types.
I would ...
1
vote
0
answers
33
views
WordPress pagination error when using ACF CPT rewrite slug & Polylang CPT slug translation
I use WordPress with Polylang PRO and ACF PRO plugins.
Using ACF PRO I've created CPT with post_type 'aktualnosc', with rewrite slug 'aktualnosci' (same slug as page name (with posts list)).
I also ...
0
votes
0
answers
26
views
How to use Rewrite Tag Parameters in URL-rewritten Page's Titles (META & H1)?
I'm developing a plugin which creates a page and inserts shortcodes as content upon plugin activation.
My goal is to have dynamic page URLs such as the following with data/content pulled from custom ...