• Hey,

    i’d like to develop a single page template.
    But i dont know how to include pages ( the content ) in one
    page. ( Index.php/Onepage.php )

    i want this:

    index/onepage.php

    <section id=”home”>Content from Home page here</section>
    <section id=”Info”>Content from Info page here</section>
    <section id=”etc”>etc</section>

    is there a way to include a page id?

    Cya,

Viewing 1 replies (of 1 total)
  • Thread Starter Zynex91

    (@zynex91)

    Ok got it….
    Its the same as for a post… i thought it had to be an page

    <?php
    $id=149;
    $post = get_post($id);
    $content = apply_filters(‘the_content’, $post->post_content);
    echo get_the_title( $ID );
    echo $content;
    ?>

    This is what i found and it works.

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress get page id option?’ is closed to new replies.