Forums

Displaying single page content in a <div> (3 posts)

  1. sanvig
    Member
    Posted 2 years ago #

    I'm using WP as a CMS with a static page as frontpage. I'd like to be able to display the content of a single (other) page in a <DIV>-container on that frontpage to be able to replace the "Welcome to ..." message without having to mix static and dynamic content.

    I've been looking high and low but can't seem to find those magical 5 lines af WP-related PHP that'll do the trick: Fetch and display the headline and content of a single page (which will always be the same).

    It's gotta be a walk in the park, right? :-)

    Sincerely.

  2. iridiax
    Member
    Posted 2 years ago #

  3. sanvig
    Member
    Posted 2 years ago #

    Thanx but no :-) ... basically this. Except it doesn't work for me when replacing the right ID for 143, it just breaks the page and WP stops rendering it. (I'm using Exec_PHP for executing PHP inside posts and pages.)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.