newbie php question
-
newbie php? i have a simple file out there on coolthaihouse.com/blog/wptest.php as follows
<?php
/* Don’t remove this line. */
require(‘./wp-blog-header.php’); ?>
<?php bloginfo(‘info’); ?>
where it works fine. i also have placed the same file in coolthaihouse.com/wptest.php where it returns the following:
Fatal error: Call to undefined function: get_posts() in /home/coolth3/public_html/wptest.php on line 3
i want to integrate some wp calls on the non blog pages. can you tell me how to set up this file so I can use it on the non blog side (coolthaihouse.com) as a test?
I did try <?php
/* Don’t remove this line. */
require(‘home/coolth3/public_html/blog/wp-blog-header.php’); ?>
but this didn’t seem to help.
thanks. and blessings to all you code gods.
The topic ‘newbie php question’ is closed to new replies.