Title: wp-config path
Last modified: August 18, 2016

---

# wp-config path

 *  [certain](https://wordpress.org/support/users/certain/)
 * (@certain)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/wp-config-path/)
 * Can someone clear this up for me? I’m trying to learn how to use the mini-loop.
   What does this mean?
 * “$how_many=2; //How many posts do you want to show
    require_once(“blog/wp-config.
   php”); // Change this for your path to wp-config.php file “
 * Specifically, how do I know where the path to the wp-config is? My WP install
   is in the root directory.

Viewing 1 replies (of 1 total)

 *  [Pizdin Dim](https://wordpress.org/support/users/pizdin_dim/)
 * (@pizdin_dim)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/wp-config-path/#post-517668)
 * Unless you’ve moved the files outside their normal hierachy, it doesn’t matter.
   The path to “wp-config.php” is relative to the file the require statement is 
   in.

Viewing 1 replies (of 1 total)

The topic ‘wp-config path’ is closed to new replies.

## Tags

 * [path](https://wordpress.org/support/topic-tag/path/)
 * [wp-config](https://wordpress.org/support/topic-tag/wp-config/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Pizdin Dim](https://wordpress.org/support/users/pizdin_dim/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/wp-config-path/#post-517668)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
