• Resolved Quin

    (@quin452)


    Hi

    I know there is a way to display posts externally, but is there a way to display a page externally?

    Quintessentially, my client has a non-WP site, with a WP subdomain. They want to manage all the content in the CMS, but have certain content on the main site.
    The posts works fine, but they want to be able to edit the pages and display them in the same way.

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

    (@quin452)

    Okay, solved it myself – rather easy TBH.

    I’m going to be bold and say this can go in any PHP file.

    <?php
    require('WORDPRESS-INSTALL/wp-blog-header.php');
    
    $page_data = get_page(pageID);
    echo $page_data->post_content;
    ?>

    The first part needs to link to the WordPress file.
    PageID is the ID for the page you want to display.

Viewing 1 replies (of 1 total)
  • The topic ‘Display WordPress Page Externally’ is closed to new replies.