Title: Outside the loop?
Last modified: August 18, 2016

---

# Outside the loop?

 *  Resolved [fireworkszone](https://wordpress.org/support/users/fireworkszone/)
 * (@fireworkszone)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/outside-the-loop-2/)
 * I’m not a blogger, I just wanted an easy way to post news updates on my site 
   and it seems like wordpress is the answer.
    Anyway, onto my question. I removed
   the header and footer as my aim to incorporate the wp posts into my own site 
   design.
 * Inside my website’s index page I included a root.php file like this:
 * > switch ($root) {
   >  case”1″: include(“tuts_en.php”); break; case”2″: etc…
   > default: include(“central.php”);
 * So, I included inside the central.php file:
 * > <?php
   > define(‘WP_USE_THEMES’, true);
   >  require(‘./wp-blog-header.php’); ?>
 * And I get error messages:
 * > Warning: Cannot use a scalar value as an array in locale.php on line 38
   > Warning: Cannot use a scalar value as an array in locale.php on line 39
   > Warning: Cannot use a scalar value as an array in locale.php on line 40
   > Warning: Cannot use a scalar value as an array in locale.php on line 41
   > Warning: Cannot use a scalar value as an array in locale.php on line 42
   > Warning: Cannot use a scalar value as an array in locale.php on line 43
   > Warning: Cannot use a scalar value as an array in locale.php on line 44
   > Warning: Cannot use a scalar value as an array in locale.php on line 45
   > Warning: Cannot use a scalar value as an array in locale.php on line 46
   > Warning: Cannot use a scalar value as an array in locale.php on line 47
   > Warning: Cannot use a scalar value as an array in locale.php on line 48
   > Warning: Cannot use a scalar value as an array in locale.php on line 49
   > Sorry, no posts matched your criteria.
 * To see what I mean, check my website: [http://www.fireworkszone.com](http://www.fireworkszone.com).
   You can see the error messages at the bottom of the home page.
 * From the error message it seems I am out of the loop?

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

 *  [Austin Matzko](https://wordpress.org/support/users/filosofo/)
 * (@filosofo)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/outside-the-loop-2/#post-446753)
 * Those lines in locale.php use the global variable `$month` to return for example“
   January” for `$month[01]`. Probably something in your custom PHP “tuts_en.php”
   that you’re including, also uses a scalar variable named $month, hence the error
   message.
 *  Thread Starter [fireworkszone](https://wordpress.org/support/users/fireworkszone/)
 * (@fireworkszone)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/outside-the-loop-2/#post-446911)
 * Great filosofo I removed my old calendar and I can see my posts now

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

The topic ‘Outside the loop?’ is closed to new replies.

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [fireworkszone](https://wordpress.org/support/users/fireworkszone/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/outside-the-loop-2/#post-446911)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
