WordPress Display Page

/ Published in: PHP
Save to your folder(s)

This will put a page directly into your page template.

Copy this code and paste it in your HTML
  1. <?php
  2. $id = 1; // page ID to display
  3. $p = get_page($id);
  4. echo apply_filters('the_content', $p->post_content);
  5. ?>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.