titling plain php pages with variables?
-
Hi. I’m building wp into a ‘static’ site using moshu’s great tutorial at https://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.
WillPS. I’m copping this from a mezzoblue article.
https://mezzoblue.com/archives/2005/06/08/simple_templ/index.php
- The topic ‘titling plain php pages with variables?’ is closed to new replies.