Hi again David
is there a way i could divert people away from the default price tapestry page to the homepage or if they dont type a valid search, so say if pto_q equals nothing also if the search turns up no results would it also be possible to divert to the homepage
thanks
Michael
Hi David thanks again for your brilliant support i managed to get that working with a few tweaks it dint work correctly when i placed it inside pto.php somehow affected the title meta so i moved it to my header.php and altered it to work there this is what i did:
<?php
if(isset($_GET['pto_q'])){
if( $_GET['pto_q'] == ""){
print"<meta http-equiv='refresh' content='0;url=".get_bloginfo('wpurl')."' />";
}
}
?>
Hello Michael,
The [pto] shortcode is only invoked after the page header has been output but you should still be able to redirect if no pto provided action using a meta refresh; in pto.php look for the following code around line 429:
if ($pto_q)
...and REPLACE with:
if ($pto_q=="")
{
print "<meta http-equiv='refresh' content='0;url=".get_bloginfo('wpurl')."' />";
}
else
Cheers,
David.
--
PriceTapestry.com