WordPress.org

Ready to get started?Download WordPress

Forums

Displaying content of specific post (6 posts)

  1. eyediver
    Member
    Posted 8 years ago #

    Is there some way to desplay the content of a certain post? I want to use posts as content for one specific page I have created.

    Thanks,
    eyediver

  2. maerk
    Member
    Posted 8 years ago #

    Could you elaborate on that a little?

  3. TonyGeer
    Member
    Posted 8 years ago #

    It sounds like you're looking for the Pages functionality:

    http://codex.wordpress.org/Pages

    I could however be completely wrong as you've been a bit vague. Good luck.

  4. eyediver
    Member
    Posted 8 years ago #

    Thanks for the link. Sorry yes not very descriptive.

    What I want to do is emulate server side includes but do it with posts.

    Let's say I create my custom Page in wordpress and I want to include the content from 3 specific posts. What I'm looking for is some piece of code that looks something like this:

    <div class="header">
    <?php get_post_content('id=9'); ?>
    </div>
    <div class="content">
    <?php get_post_content('id=10'); ?>
    </div>
    <div class="footer">
    <?php get_post_content('id=11'); ?>
    </div>

    Hope that illustrates what I have in mind.

  5. Chris_K
    Member
    Posted 8 years ago #

  6. eyediver
    Member
    Posted 8 years ago #

    Thanks this is exactly what I am looking for, very nice!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags