Hi Caridad,
Thanks for the suggestion. I've removed the code I had from the theme's header.php file and changed the code in the ad.php to
<?php echo get_query_var('pagename'); ?>
But it seems to be doing the same thing. Is it at your end? Maybe there is another php echo I could use?
Thanks
Nick