Forums

[resolved] how to load only content from database? (3 posts)

  1. dullmau
    Member
    Posted 3 years ago #

    Hi,

    I'd like to call only the content of a post or a page from the database.

    The method i know is web fetching, then eregi_replace or preg_replace the unnecessary code.

    That'd be silly to do it especially it's my server.

    So do you know which php commands do I use to do it?

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    get_the_content() will get the content for the current post.

  3. dullmau
    Member
    Posted 3 years ago #

    voila! it's so simple. thanks Michael!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.