Porsche_maniak Active Member 283 2009 0 40 Oct 17, 2010 #2 PHP: $url = "http" . ((!empty($_SERVER['HTTPS'])) ? "s" : "") . "://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; $page->variables = array('title' => "Your title -". substr(strrchr($url, '/'),1)); $url is your current url and the substr gets everything after the last / (slash) You may try to customize it more like using str_replace to replace the "+" with " " and substr ".htm" so the title must be perfect.
PHP: $url = "http" . ((!empty($_SERVER['HTTPS'])) ? "s" : "") . "://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; $page->variables = array('title' => "Your title -". substr(strrchr($url, '/'),1)); $url is your current url and the substr gets everything after the last / (slash) You may try to customize it more like using str_replace to replace the "+" with " " and substr ".htm" so the title must be perfect.
J Jueki Active Member 145 2010 0 0 Oct 17, 2010 #3 Did you declare {post_name} in any of the PHP files? Also, did you make sure that {post_name} is actually being replaced at some point?
Did you declare {post_name} in any of the PHP files? Also, did you make sure that {post_name} is actually being replaced at some point?