I have a price list in an external file for easy site-wide updating. I’ve included the document into my theme’s header.php and know it’s working because I can echo out a price variable just under the body tag (did it just for testing, of course).
I also have “Allow PHP in Posts and Pages” plugin installed and know it’s working because I can echo a string into a page.
But, for some reason, the combination of the two are not working. I cannot echo a price variable from the included price list into a WordPress-generated page.
Does anyone have any ideas as to what I might be doing wrong?
- The topic ‘Echoing content in a post or page from a PHP-included external document.’ is closed to new replies.