• Hi, I am trying to figure out how to get a few different page titles and content into the main (index) page.

    I think I have found out how to get the title from a particular page, but not sure how to get the content.

    I am trying to make a page for different people. The title will display the person’s name, and the text will display some short text about the person.

    I am able to get the title by the following code:
    echo get_the_title( 7 );

    I am unable to get the content, any ideas the best way to go about getting the content from a page so that I can display it here? Also, is this the best way to go about getting the title?

    Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get a particular page content’ is closed to new replies.