WordPress.org

Support

Support » How-To and Troubleshooting » get_page, layout is gone..

get_page, layout is gone..

  • vanhansen
    Member

    @vanhansen

    So, here’s the original page:
    click me!

    and this is the frontpage:
    click me, too!

    So, do you see the difference? Paragraphs and spaces are gone.. Does it mean I have to use php code manually, or is there some other way? Here’s the code getting the content.

    <?php
    				$page_id = 12;
    				$page_data = get_page( $page_id );
    				$content = $page_data->post_content;
    					echo $page_data->post_content;
    			?>

    And while I’m at it.. I would like to get the title of the page as well, would make it a bit easier in the future 🙂

    Thanks in advance, love you all <3

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_page, layout is gone..’ is closed to new replies.