Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I can't see <code>&lt;?php the_content(); ?&gt;</code> in your code. This is needed to display the content. Here you can see the <a href="http://codex.wordpress.org/Function_Reference/the_content" rel="noreferrer">Wordpress page about the_content</a>. So add <code>&lt;?php the_content(); ?&gt;</code> to your <code>index.php</code> or rather to your <code>page.php</code> file or there where you want to display your content.</p> <p><strong>EDIT:</strong></p> <p>You also can look at the other themes in your wordpress folder (twentyten etc.). There you can see how <code>&lt;?php the_content(); ?&gt;</code> is used.</p> <p><strong>EDIT 2:</strong></p> <p>I forgot to say this. You have to add this to your file, too:</p> <pre><code>&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt; &lt;?php the_title(); ?&gt;&lt;/h1&gt; &lt;div class="entry"&gt; &lt;?php the_content(); ?&gt; &lt;/div&gt;&lt;!-- entry --&gt; &lt;?php endwhile; ?&gt; &lt;?php endif; ?&gt; </code></pre> <p>This will check if you got any posts or pages. If yes, it will display it, if no, it won't display anything. Put this to your <code>index.php</code> between <code>&lt;?php get_header(); ?&gt;</code> and <code>&lt;?php get_footer(); ?&gt;</code>.</p> <p><strong>EDIT 3:</strong></p> <p>I've seen your edit in your question. And I've seen the error. You opened the <code>&lt;?php</code> tag twice. You can go this way:</p> <pre><code>&lt;?php /** * The main template file. * * This is the most generic template file in a WordPress theme and one of the * two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * For example, it puts together the home page when no home.php file exists. * * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage Wp_Bootstrap * @since Wp Bootstrap 1.0 */ // Gets header.php get_header(); ?&gt; &lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt; &lt;?php the_title(); ?&gt;&lt;/h1&gt; &lt;div class="entry"&gt; &lt;?php the_content(); ?&gt; &lt;/div&gt;&lt;!-- entry --&gt; &lt;?php endwhile; ?&gt; &lt;?php endif; ?&gt; &lt;?php // Gets footer.php get_footer(); ?&gt; </code></pre> <p>This code should be in your <code>index.php</code> and in your <code>page.php</code>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload