Support » Fixing WordPress » newbie php question

  • macmiller


    newbie php? i have a simple file out there on as follows
    /* 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 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 ( 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • mike


    How many times have you asked this?



    i’m not sure how many time i asked it…. us Alzheimer’s patients get confused easily. anyway, thanks for the help all.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘newbie php question’ is closed to new replies.