Link to home
Start Free TrialLog in
Avatar of HelpNearMe
HelpNearMeFlag for Afghanistan

asked on

Wordpress page question

Hi Experts,

I'd like to test for a particular page i.e. www.helloworld.com/thankyou  so I can execute a particular script if that page is being rendered.

Something like this: <?php if(is_front_page()) { ?>
except it's testing for a particular page

Any ideas?

Thanks,

HNM

Avatar of xterm
xterm

How about:

if ("$_SERVER["HTTP_HOST"]/$_SERVER["REQUEST_URI"]" = "www.helloworld.com/thankyou") {
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HelpNearMe

ASKER

worked thanks!