• Resolved nkamp

    (@nkamp)


    Hello,

    I’ve tried on the dutch forum but I don’t get any reaction/explanation or my question is not clear.
    I’ve made a blog with only one page! On this page I want first a part of static content (who am I) and then the posts. I don’t want a main page with posts and a page with static content! Is that possible?. How? I’ve seen the plugin inline post and I have add the line <?php 2; ?> to my index.php, but that gives an error. I will search further how to implement this.

    I have made mij own solution by making a page and write there the static content. Then I have added the next lines to my index.php

    <?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>

    This seems to work, but if I change the content of page 2, then I’m losing my presentation. All the enters are gone etc. but if I look the concept of page 2, everything seems oke. So I think I’m not on the right way.

    I’m reading now the wordpres Docs and I hope to find the right way. But is there big mismatch in my brain of understanding blogging/wordpress?

    Thanks in advance.

    Nico

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nkamp

    (@nkamp)

    Sorry, I have made a mistake in my wordpress version It should be 2.8.6

    Nico, don’t make things so difficult. Since version 2.7 or so, there is a sticky post option built into WP. Just make a post introducing yourself, when you go to “posts” -> “edit” and on the right click on “public” next “visibility”, you can “stick this post to the front of the page”.
    I think that’s what you’re looking for?

    Thread Starter nkamp

    (@nkamp)

    Hello Gangleri,

    That’s where I’m looking for that’s right. Thanks I have seen this few weeks ago and I didn’t understand it well now it’s good.

    Thanks.,

    Nico

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I don’t understand the concept of wordpress?’ is closed to new replies.