How to Get querystring

Posted in: Newspaper
Post count: 71

Hello
I have this problem.

I need to keep track of the query string “DA”

I edited the file td_misc_shortcodes.php line 65

from
$ link = ‘href = “‘. $ link. ‘”‘;
to
$ link = ‘href = “‘. $ link. ”. $ _GET [‘da’]. ‘”‘;

Now in the post, I have some URLs so constructed like this:

https://www.mysite.com/booking.php?a=https://www.affiliteparter.com/hotel/-rooms.it.html?aid=11225566&label=where-dormire-1a

I would like them to append the query string “DA” and become:

https://www.mysite.com/booking.php?a=https://www.affiliteparter.com/hotel/-rooms.it.html?aid=11225566&label=where-dormire-1a+querystringDA

For example: if I type in my browser this URL http://www.mysite.com/urlmypost.html?da=test12

I would like to see the URL inside the post like this:

https://www.mysite.com/booking.php?a=https://www.affiliteparter.com/hotel/-rooms.it.html?aid=11225566&label=where-dormire-1a+test12

I know you do not give support about PHP, but if is possible I need to help. thank you

Massimo

Post count: 21065

Hi,

Please make a full backup, send an email at contact@tagdiv.com and provide wp-admin and Cpanel access, so we can investigate this issue and let you know what can be done. Also paste a link to this topic so we can easily identify you.

Thanks!

Post count: 71

thank you for the support but I’ve resolved the problem with this plugin https://wordpress.org/plugins/url-params (it can be useful someone) so you can track all your querystring in the URL

thank you
Massimo

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.