• Hello,

    I have made a new WP blog for the first time. I’m familiar with PHP, MySQL and CSS.
    I want to have one ‘main page’ with first ‘static content’ and there after the different posts.
    I have done on the following way
    I have made a page “About me” (default the “OVER” page”). I have written there some content and with the following code I retrieve the post:

    <div id="content">
    
    <?php $post_id = 2;
      $post_id_2 = get_post($post_id);
      $title = $post_id_2->post_title;
      $content = $post_id_2->post_content;
    ?>
    
    <div class="post" id="post-2">
      <h1 class="title"><?php echo $title; ?></h1>
      <div class="entry">
        <?php  echo $content; ?>
        <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
      </div>
    </div>

    But if someone have a better advise or anything else let me know.

    thanks in advance.,

    Nico

    [Post moderated to fix open A href]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Check my BLOG site with one ‘Main’ page’ is closed to new replies.