WordPress directory structure

WordPress Basics, Wordpress Tutorials

WordPress directory structure

wordpress directory structure

What is WordPress?

WordPress is a web-based content management system. It is the most popular CMS framework that can allow a user to create a website fast and easy.

What is Directory Structure of WordPress?

The WordPress package contains lots of files and folder so, before the downloading WordPress package from WordPress directory, we need to know about directory structure and files of WordPress.

The directory structure is the organization of files into a hierarchy of folders. It describes how files are arranged for an application. A hierarchy is similar to a tree structure.

The WordPress Directory Structure

The default WordPress files and directories are listed below.

wordpress directory structure 2

These are the core WordPress directories and files. Now, let’s see some of the important files and folders in detail. Keep in mind that the first three are folders and rest are files.

The WordPress Directory Structure

The core WordPress files and directories are listed below.

wp-admin

wp-content

wp-includes

index.php

license.txt

readme.html

wp-activate.php

wp-blog-header.php

wp-comments-post.php

wp-config-sample.php

wp-cron.php

wp-links-opml.php

wp-load.php

wp-login.php

wp-mail.php

wp-settings.php

wp-signup.php

wp-trackback.php

xmlrpc.php

.htaccess

wp-config.php

These are the core WordPress directories and files. Now, let’s see some of the important files and folders in detail. Keep in mind that the first three are folders and rest are files.

wp-admin

As names such as wp-admin folder provide WordPress administrator module from where load a WordPress admin dashboard and all the core handing things done by that folder.

wp-content

That is the most familiar folder to all the developer. Inside that folder having the most usable folder is plugin and theme folder mostly developer needed to work inside that two directories.

Plugin

That folder is located inside a wp-content directory and that folder contains all the plugin exist in WordPress. Is the directory where store all the plugins files.

Themes

This folder contains a list of them installed on WordPress in that folder  WordPress providing three default plugins. Below is the screenshot that contains that directory folders list.

wordpress directory structure 1

wp-includes

The wp-includes is the final top-level folder and is large in size. As we have seen earlier, the wp-admin includes all the files necessary to power said admin functions, wp-content stores all your themes and plugins, and wp-includes is what enables the site to run.

These subfolders aren’t important as the files included in the main folder, such as functions.php. This file is part of WordPress’ core, and it comes with a lot of the functions that enable the WordPress installation to work. As an example, some lines of code will be seen when you open the file on a text editor, and they’re just a regular function meant to transform dates into different formats.

This folder is where most of the WordPress core files are stored. A fresh WordPress install will include over 140 different files in the main directory, and fourteen different folders including certificates, fonts, js, theme-compact, and widgets.

index.php

That is the main WordPress files that load the WordPress as we always know first always run default index file.

license.txt

This is the WordPress license file. The WordPress is a free software and is licensed under the GNU General Public License as published by the Free Software Foundation.

readme.html

This file contains all the instructions can follow for installation and other information also display in this file.

.htaccess

A server configuration file, WordPress uses it to manage permalinks and redirects.

wp-config.php

This file is called hart of WordPress.

That files contain all the configuration related setting like database settings sites URL and any other global information also stored in that file. If we want global variables in a website then we can declare on that file so that will accessible on an entire website.

wp-load.php

This file is the called WordPress run file that file will execute or load a WordPress, So in case if in any independent PHP file you want to call WordPress and it’s library and all the WordPress database function with connection then you need to simple include that file on the top of that PHP file that will run WordPress smoothly after then you can use any of the WordPress function. Manley that file uses when we want to create an API based file.

Other all the files are the common files and above listed all the files are the default files it is contained with WordPress any version.

That’s all the default file of WordPress but in case of installing new plugins and themes in WordPress then that plugin will create own folder so that folder is extra.

That’s all, we hope this article helped you understand WordPress file and directory structure.

 

Here you can see the video for WordPress directory structure

131 thoughts on “WordPress directory structure

  1. I am really impressed with your writing skills and also with
    the layout on your weblog. Is this a paid theme or did you
    modify it yourself? Anyway keep up the nice quality writing,
    it is rare to see a great blog like this one nowadays.

  2. I have been exploring for a little for any high-quality articles or weblog posts in this kind of space . Exploring in Yahoo I ultimately stumbled upon this site. Studying this information So i am glad to show that I have an incredibly just right uncanny feeling I came upon just what I needed. I most undoubtedly will make sure to do not forget this site and give it a look on a relentless basis.

  3. Thank you, I’ve just been searching for information approximately this topic for a while and yours is the greatest I’ve came upon so far. However, what about the conclusion? Are you certain concerning the supply?

  4. Hey very nice web site!! Man.. Beautiful.. Wonderful.. I’ll bookmark your web site and take the feeds alsoKI am satisfied to seek out a lot of helpful information here in the publish, we want work out extra techniques in this regard, thank you for sharing bkedbabcdbfk

  5. I just want to mention I’m all new to blogs and certainly savored you’re web site. More than likely I’m want to bookmark your site . You surely have good writings. Appreciate it for sharing your web page.

  6. I have been exploring for a little for any high-quality articles or weblog posts in this kind of space . Exploring in Yahoo I ultimately stumbled upon this site. Studying this information So i am glad to show that I have an incredibly just right uncanny feeling I came upon just what I needed. I most undoubtedly will make sure to do not forget this site and give it a look on a relentless basis.

  7. I just want to say I am very new to blogs and truly savored you’re web site. More than likely I’m likely to bookmark your website . You amazingly come with superb articles and reviews. Regards for sharing your webpage.

  8. I just want to tell you that I am newbie to weblog and definitely savored your page. More than likely I’m likely to bookmark your blog . You really come with awesome writings. Thanks a lot for sharing with us your website.

  9. I just want to mention I’m all new to blogs and certainly savored you’re web site. More than likely I’m want to bookmark your site . You surely have good writings. Appreciate it for sharing your web page.

  10. Nice blog right here! Additionally your website rather a lot up very fast! What host are you using? Can I am getting your associate hyperlink in your host? I want my web site loaded up as fast as yours lol

  11. Oh my goodness! an remarkable article dude. Thank you Nevertheless I am experiencing issue with ur rss . Do not know why Unable to subscribe to it. Is there anybody obtaining identical rss challenge? Any individual who knows kindly respond. Thnkx

  12. It is appropriate time to make some plans for the future and it’s time to be happy. I’ve read this post and if I could I wish to suggest you few interesting things or advice. Maybe you can write next articles referring to this article. I desire to read even more things about it!

  13. Hi there! I am so grateful that I found your blog. I really admire the dedication you put into offering the in depth information for free. I will definitely come back to your website for more. Keep up the good work.

  14. Good post. I be taught something more challenging on totally different blogs everyday. It’ll all the time be stimulating to read content material from other writers and observe a little one thing from their store. I’d desire to use some with the content on my weblog whether or not you don’t mind. Natually I’ll give you a link on your internet blog. Thanks for sharing.

  15. I’m impressed, I need to say. Really hardly ever do I encounter a blog that’s each educative and entertaining, and let me let you know, you could have hit the nail on the head. Your concept is outstanding; the difficulty is something that not enough persons are speaking intelligently about. I’m very glad that I stumbled throughout this in my seek for something regarding this.

  16. The following time I read a weblog, I hope that it doesnt disappoint me as much as this one. I imply, I know it was my option to learn, but I actually thought youd have something attention-grabbing to say. All I hear is a bunch of whining about one thing that you possibly can repair in the event you werent too busy looking for attention.

  17. I’m impressed, I have to say. Actually not often do I encounter a blog that’s both educative and entertaining, and let me tell you, you may have hit the nail on the head. Your concept is outstanding; the problem is one thing that not sufficient individuals are talking intelligently about. I’m very glad that I stumbled across this in my search for one thing referring to this.

  18. What i do not realize is in truth how you’re no longer actually a lot more smartly-favored than you may be now. You are very intelligent. You recognize thus considerably in terms of this topic, made me individually imagine it from numerous various angles. Its like men and women don’t seem to be interested until it’s one thing to accomplish with Girl gaga! Your own stuffs excellent. At all times take care of it up!

  19. What i don’t realize is in truth how you’re no longer actually much more smartly-favored than you might be right now. You are so intelligent. You understand thus considerably on the subject of this subject, produced me individually consider it from a lot of numerous angles. Its like women and men are not involved unless it is something to do with Lady gaga! Your individual stuffs outstanding. Always deal with it up!

  20. Wonderful article! This is the type of info that are supposed to
    be shared around the internet. Shame on the seek engines for not
    positioning this put up higher! Come on over and visit my website .
    Thank you =)

  21. Thank you for sharing excellent informations. Your web site is so cool. I’m impressed by the details that you have on this website. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for extra articles. You, my friend, ROCK! I found simply the info I already searched all over the place and simply couldn’t come across. What a perfect site.

  22. I do consider all of the concepts you’ve presented on your post.
    They’re very convincing and can certainly work. Still,
    the posts are too short for newbies. May just you please extend them a bit from next time?

    Thank you for the post.

  23. Thanks for sharing superb informations. Your website is very cool. I’m impressed by the details that you have on this web site. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for extra articles. You, my pal, ROCK! I found just the information I already searched all over the place and just couldn’t come across. What an ideal web-site.

  24. 1. It’s true that the effectiveness of a tagline can’t really be measured other than anecdotally. This is a blessing and a curse. I can never (or, perhaps, almost never) prove to a client that the tagline helped grow their business. Juxtapose this fact with another fact: great taglines are, by far, the most powerful single expression of a brand. People remember some taglines from before they were born. When all of the other communications from a brand have long been forgotten, the tagline is usually the only remaining artifact.

  25. Hi there, I found your website by means of Google while looking for a comparable subject, your website came up, it appears great.
    I’ve bookmarked it in my google bookmarks.
    Hello there, simply turned into aware of your blog through Google, and
    found that it is truly informative. I am going to watch out for brussels.
    I’ll appreciate in the event you continue this in future.
    Many people can be benefited out of your writing. Cheers!

  26. It’s a shame you don’t have a donate button! I’d most certainly donate to this fantastic
    blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google
    account. I look forward to brand new updates and
    will share this blog with my Facebook group. Talk soon!

  27. Have you ever considered publishing an ebook or guest authoring on other websites?
    I have a blog based on the same information you discuss and would love to have you share some
    stories/information. I know my readers would appreciate your work.

    If you’re even remotely interested, feel free
    to send me an email.

  28. Please let me know if you’re looking for a writer for your blog.
    You have some really good posts and I think I would be a good asset.
    If you ever want to take some of the load off,
    I’d love to write some material for your blog in exchange for a
    link back to mine. Please send me an email if interested.
    Cheers!

  29. Thanks a lot for giving everyone remarkably wonderful opportunity to read in detail from here. It’s always so nice and as well , packed with a lot of fun for me and my office fellow workers to search your web site really three times per week to study the newest things you will have. And indeed, I’m also usually impressed with all the effective advice served by you. Selected 3 tips in this posting are in reality the simplest we have all ever had.

  30. Hello, Neat post. There’s a problem together with your site in internet explorer, would test thisK IE still is the marketplace chief and a large component to people will omit your fantastic writing because of this problem.

  31. Whats up very cool website!! Man .. Excellent .. Superb ..
    I will bookmark your site and take the feeds additionally?
    I am happy to seek out numerous helpful information here within the post, we need develop extra
    strategies in this regard, thanks for sharing. . . . . .

  32. I must thank you for the efforts you’ve put in writing
    this site. I really hope to see the same high-grade blog posts by you later
    on as well. In truth, your creative writing abilities has inspired me to get my own, personal
    site now 😉

Leave a Reply