Noticed that a page is not cached when there are GET parameters in the url.
Parameters like utm, etc can be ingored and result in cached pages.
But what about other custom parameters?
In general, why not caching such pages or provide an option to set specific parameters that can be ignored?
eg.
when having example.com/?param=low & example.com/?param=high it could generate 2 static page and serve the next users the right one accordingly.
Thank you!
I use the Shop Sidebar with a lot of widgets of type “Botiga – Filter products by attribute”. Each widget creates links to the shop-page with the filters as URL-parameters of type /shop/?filter_xxx=yyy&query_type=or&filter_zzz=aaa
. With more then ten filterable attributes in the sidebar, the combination leads to thousands of different links.
I solved the issue with a script that adds rel="nofollow"
to all links with url parameters.
Question: Is there any other solution directly integrated in Botiga?
Here is the code I used (credits to perplexity.ai):
function add_nofollow_to_parameterized_links() {
?>
<script>
document.addEventListener('DOMContentLoaded', function() {
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
if (links[i].href.indexOf('?') > -1) {
links[i].classList.add('url-parameter-link');
}
}
});
jQuery(document).ready(function($) {
$('.url-parameter-link').attr('rel', 'nofollow');
});
</script>
<?php
}
add_action('wp_footer', 'add_nofollow_to_parameterized_links');
]]>thanks for your great plugin, it is very convinient to setup and let me build quite complex calculations. But two questions are left open to me:
?choice=premium
would work with cost calculator.It would be nice the documentation would have more content about filters and hooks.
]]>So far so good, but I’ve found that even if I urlencode the special characters, when the checkout fields are filled in, if there are any ‘ (%27) or ” (%22) characters inside the field I find a backslash preceding the \’ or \” character.
I need your help to solve this problem. Thank you.
]]>Is there any workaround?. Thank you.
I have this use case where users are sending a Contact Form 7 form before getting to the payment form. Is there a way to populate a GetPaid payment form through URL parameters, specifically name and email?
Thanks.
]]>I’m new to wordpress development, and I need to rebuild a website with wordpress. No problem building standard pages (using Elementor).
But the current site (developed in plain PHP) has a special page that allows a user to register himself to the website getting some data from an external URL getting two URL parameters (email and role), and asking for a password. This page also check for an existing user (checking user email) and allow to effectively register the password if his email doesn’t exist.
How can I create a new user in wordpress using these two URL parameter?
I would like to create a similar mechanism in wordpress using 3 form fields:
– email (hidden field that gets populated from URL parameter; base64 encoded)
– role (hidden field that gets populated from URL parameter; base64 encoded)
– password: field that allow the user to set his password (or get a wordpress generated/suggested one)
How can I do this in wordpress?
Can someone point me in the right direction?
Thanks in advance.
Tony
]]>