Hi. I’m building wp into a ‘static’ site using moshu’s great tutorial at http://www.transycan.net/blogtest/2005/07/05/integrate/2/
I have WP installed in a subfolder of my root. All the ‘static’ pages are wp aware via the require(blogpath). I’m using get_header for the static pages as well and I’m trying to have the page titles be dynamic. so in my theme’s header.php I have this line:
<title><?php echo $pageTitle; ?></title>
and in the body of the individual pages I have:
<?php require('./writing/wp-blog-header.php'); ?>
<?php $pageTitle = "TITLE HERE"; ?>
<?php get_header(); ?> ...
but no title is showing up. can I not pass a variable like that?
Thanks for any help.
PS. I’m copping this from a mezzoblue article.
- The topic ‘titling plain php pages with variables?’ is closed to new replies.