WordPress.org

Ready to get started?Download WordPress

Forums

wp-config path (2 posts)

  1. certain
    Member
    Posted 7 years ago #

    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.

  2. pizdin_dim
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic