Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>No, you don't have to create separate <code>php</code> files for each page, instead, you can create a <code>page.php</code> file for all of your pages to be used when any page is displayed and to create pages from Wordpress' admin panel from <code>Pages</code> menu. If you have a <code>page.php</code> file in your template folder then <code>WordPress</code> will use this template to show every pages otherwise, the <code>index.php</code> file would be used. You can also create custom page templates for specific pages. An example/structure of a basic page template (without any formatting and <code>HTML</code> tags)</p> <pre><code>get_header(); // adds the header (header.php) if (have_posts()) : while (have_posts()) : the_post(); the_title(); // prints title of the page the_content(); // prints content/body of the page endwhile; endif; get_sidebar(); // adds the sidebar (sidebar.php) get_footer(); // adds the footer (footer.php) </code></pre> <p>These are common structure and functions used for a template file but you should read on Codex for more information about <a href="http://codex.wordpress.org/Page_Templates" rel="nofollow">creating a page template</a> and add <code>formatting/HTML</code> according to your site's layout. Also, check <a href="http://thethemefoundry.com/blog/html-wordpress/" rel="nofollow">Convert HTML to WordPress</a> and <a href="http://codex.wordpress.org/Integrating_WordPress_with_Your_Website" rel="nofollow">Integrating WordPress with Your Website</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

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