The guys are displayed only the title of the post and the content does not want

<?php get_header(); include 'nav.php'; echo $nav; ?> <link rel="stylesheet" href="/wp-content/themes/bs/style.css"> <div> <br> <div class="backgroundin"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="card"> <div class="card-header"> <?php the_title(); ?> </div> <div class="card-block"> <blockquote class="card-blockquote"> <p><?php get_the_content(); ?></p> </blockquote> </div> </div> <?php endwhile; endif; ?> </div> </div> 
  • at least 2 errors. 1 - include. 2 get_the_content () - SeVlad
  • Sorry, 3 errors - "connect" styles. and not just the styles but the main theme file. - SeVlad

1 answer 1

get_the_content(); returns content, not output.

Need either

 <?php echo get_the_content(); ?> 

or

 <?php the_content(); ?> 

and do not wrap the content in a paragraph, because inside the text will be broken into them automatically, unless otherwise specified