Using PHP code in wordpress pages???
-
Hi, What i am trying to do is pull a variable from a url, ie.
https://www.example.com/index.php?Key=hello
I’m able to do this on a normal php page with the following php code
<?php echo str_replace('-', ' ', $_GET['Key'])?>
But i can’t seem to get it to function in wordpress.
How would i go about doing this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using PHP code in wordpress pages???’ is closed to new replies.