Forums

Fetching pure WP data (2 posts)

  1. LEXI69
    Member
    Posted 5 years ago #

    Hello crowd!

    I am totally new to using WordPress, not a PHP newb, though.

    The challenge:

    A friend has asked me to include WordPress as a means of adding/updating certain content into his own project.

    What I would like to do now is just fetch pure DB data from some WP interface, ideally just a plain PHP array of object, and work with it however the existening application prefers.

    Example:
    I just include a couple of WP files and fetch an array with all the data I need, bypassing the entire template functionality WP offers.

    What is basically needed, are a couple of blog categories, maybe a bit of archiving, and a means of displaying individual entries on a single page.

    Are there more appropriate ways than just getting them myself from the database? I don't want to miss out on the RSS / archiving etc. features.

    Thx for any help!
    LEXI

  2. moshu
    Member
    Posted 5 years ago #

    Actually, (based on your post) you need: archives, index, single post view, rss...
    That sounds like a full WP install :)

    But anyway, you can use the Loop for posts and all the template tags.
    http://codex.wordpress.org/The_Loop
    http://codex.wordpress.org/Template_Tags

Topic Closed

This topic has been closed to new replies.

About this Topic