WordPress.org

Ready to get started?Download WordPress

Forums

Inserting content from blog to website (2 posts)

  1. billydarkness
    Member
    Posted 6 years ago #

    I have a website

    http://billydarkness.com is the main website
    http://billydarkness.com/wordpress is the wordpress directory

    and before I go any farther with design I need to know how to use php to insert a the latest 3 posts into the main page.

    If its possible I only want it to take posts with the tag "update" on them but that isnt necessary. Thankyou in advance

  2. palamedes
    Member
    Posted 6 years ago #

    Wait, are you creating a theme for wordpress or are you trying to pull information out of wordpress and use on your custom site? If the later then I don't think you understand how wordpress works.

    Yes you can easily pull the latest 3 posts within a wordpress theme, however if you're trying to do it outside of wordpress.. that I'm not sure about..

    Someone else correct me if I'm wrong, but I think you'll have to create a special bit of code to pull from the database..

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.