• Resolved htausch

    (@htausch)


    I am trying to pull in <?php the_content(); ?> for the page I have defined as the static front page in WordPress’s back-end but can’t figure out how to target it and pull it in.

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

    (@htausch)

    The id of the static front page saved as an option name page_on_front.

    Once you have it call get_post_field().

    $front_page_id = get_option('page_on_front')
    $content = get_post_field('post_content', $front_page_id );
    echo $content;
Viewing 1 replies (of 1 total)
  • The topic ‘Pull in content from page defined as static front page’ is closed to new replies.