Hi Folks,
I’m having the devil of a time trying to get this simple page setup, I’d really appreciate some help and advice.
I’m trying to point my tabs and custom app facebook pages to wordpress pages, which I’m told can be done.
My facebook page can then pull in the content from wordpress, and this would save me having to update 2 seperate sites.
Basically, can someone please tell me how I can hardcode the page id into each query, so If I browse to my about.php page in wordpress it displays the title and content from the about page, without all the html from my original wordpress theme.
I’ve tried some code like below
<?php
$page_id = 147; // page id of about page
$page_data = get_page( $page_id );
$content = apply_filters(‘the_content’, $page_data->post_content);
$title = $page_data->post_title;
echo $content; //
?>
but I get the error:
Call to undefined function get_page()
Can anyone please help, this must be possible I’m sure it can be done somehow.
Many thanks in advance, any advice and code samples much appreciated.