Welcome to the Treehouse Community
Looking to learn something new?
not the same ??
i wrote the same code put it didn't give me the same result
it shows just the header and first paragraph . why ??
Nick Fuller9,027 Points
I suggest you checkout out the Wordpress Codex and read through their documentation for 'The Loop'.
I believe what you're asking is why wordpress is truncating each blog post?
The loop purposefully only shows the first "excerpt" from the post, otherwise you would have a REALLY long page with ALL your blog posts and ALL their content.
For example: http://blog.teamtreehouse.com/
This is Treehouse's blog page. See how this page lists multiple blog posts, and truncates the content? That's exactly what is happening to you! In the next video I believe Zack reviews how to create a single-page for a blog post.
<?php get_header(); ?>
<p> this is the front-page.php file . </p>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h3><?php the_titel(); ?> </h3> <?php the_content(); ?> <hr>
<?php endwhile; else: ?>
<p> there is no postes in this page </p>
<?php get_footer(); ?>
this is the code i wrote its should show mw the home page , when put it in home.php it should show me the postes that i have create .
but non of these result come .
all what i see on my browser
this is the header
this is the front-page.php file