Wordpress URL append
I'm trying to pass the keyword that it used to land on my wordpress site to my form but can't seem to get it to work.
Here is a string I need to insert after page names
?keyword=<?php echo ($_GET['keyword']); ?>
If I change site url in general setting to
site . com?keyword=?phpecho($_GET'keyword');? -
it works only for index page but all other pages hyperlinks are like that
site . com/?keyword=?phpecho($_GET'keyword');?/faqs/ - where ideally I need faqs in front of my string.
Any suggestions would be appreciated.