Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress What Is WordPress? What Is WordPress? How Content Management Systems Work

Stavros Sofroniadis
PLUS
Stavros Sofroniadis
Courses Plus Student 1,503 Points

Reagardind 2nd video tutorial How Content Management Systems Work

It is mentioned that when we build a small simple web site, usualy created with HTML,CSS and with an FTP software (Filezilla) we uploaded on the server. After if we would like to edit the site, we dowloaed the desired file-edit it-again upload the file into the hosting server.

But for dynamic sites that we want same content to appear in multiple places. What is meant by word multiple places? (tablet, smartphone,laptop,desktop) The same doesnt apply for a small HTML/CSS web site - the site appeaead the same in apearance & content in every type of screen or not?

What are the benefits when creating a small site with WordPress comparing creattting a site from scratch?

It is mentioned that when we add a blog to our site , not only do we have the main blog listing page that show the title and excerpts, but we have the individual blog post page that shows the title and full content and our home page we may also show the most recent blog post with a title and an expert again. Dont understand what is the diffrence between main blog listing page with individual blog post page and home page? All these (main blog page,individual blog post page,home page) are parts of the same website ?

Please if you could make it more clear,

It is mentioned that rather than copy and paste our code into these difrrent three places , we would use a database to abstract or take this content out of our files and store it intoa a database. Once a data is stored in a database , we can the programming language like PHP which WordPress is build with to add code to say pull the latest post in here or pull this spesific post here. PHP is used only to interact with WordPress databse? What is meant that use PHP in order to say pull the latest post here or pull a specific post here? If you could mention an example to make it more clear.

It is mentioned with PHP, that we use programming code instead of hard coded content in our actual files that make our website. It is mentioned that we use PHP language insteaded simply using HTML,CSS files that make our site?

It is mentioned that at this point though if you wanted to edit your content, you would still have to interact with database somehow. By using PHP and interacting with WordPress database then we can edit content of our site?

Interaction with WordPress content is not immediate but is done through database interaction with PHP?

What kind of change can be made to the content site using PHP?

It is not easier to interact to the WordPress content through CMS control panel(Theme Configuration) rather than using PHP? For instance you can easily create a new post/page through controlo panel and maybe PHP take more time for doing the same thing.

It is mentioned that in order to interact with the database somehow either use database application or using code once again. Please of you coild mention examples of database applications & what is meant by using code once again?

It is mentioned that the content managment system gives you the interface between your data in the database and yourself. If you could make it more clear, an example would help

It is mentioned that CMS is usually have really well designed admin areas that let you log in and see all of the content from your database,organized in a nice modern clean way. WordPress is used to add data(text,photos,videos etc) that is saved in a database?

Excuse for many quwstions,

Thank You,

1 Answer

Hi Stravos,

I can answer the first two questions for you. If you still need answers, maybe you can post your other questions as individual posts? Questions are good. You should never be afraid of asking questions, but I think you will have a better chance of getting answers if you ask one question in each post.

But for dynamic sites that we want same content to appear in multiple places. What is meant by word multiple places?

This means multiple places on one website.

Imagine you have a website with two pages. The first page has a picture with a title above it. If you click on the title, you see the second page. On the second page, you see the picture and title again, but they are bigger. In this case, the title and the image appear in multiple places.

Now let's say there is a spelling mistake in the title. In a standard website, you would need to update the code in two places (you need to fix the spelling on page 1 and page 2). This isn't so bad if it's only in two places, but what if the spelling mistake is on 100 pages? It would take a very long time to update every page!

However, if you store the title and image in a database, you only need to fix it in one place. Just update the title on the database, and the website will fetch the title when the page loads.

There's only one problem with that. You need to know how to code.

A CMS gives you a nice interface (e.g., an admin page) that you can use to access the database. You can just log into your CMS admin page and update the title there.

It is mentioned that when we add a blog to our site , not only do we have the main blog listing page that show the title and excerpts, but we have the individual blog post page that shows the title and full content and our home page we may also show the most recent blog post with a title and an expert again. Dont understand what is the diffrence between main blog listing page with individual blog post page and home page? All these (main blog page,individual blog post page,home page) are parts of the same website ?

A 'main blog listing' contains a list of blog posts with a brief summary of each post. It may display the title, date, and first paragraph for each blog post. When you click on a post in the list, the website loads the entire blog post (e.g., the title, date, and the entire blog text).

I hope this helps.