WordPress.org

Ready to get started?Download WordPress

Forums

Where is $posts filled? (2 posts)

  1. RobotHero
    Member
    Posted 10 years ago #

    So, "the Loop" starts with:
    if ($posts) { foreach ($posts as $post)
    Now, where does the content of $posts come from? What function should I look at to understand how this is done?
    (Note: the main reason I want to know is to see how WP decides which posts to show and which to hide. So, if point me to where this decision is made, first.)

  2. davidchait
    Member
    Posted 10 years ago #

    wp-blog-header
    builds up a mySQL query based upon a huge set of potential inputs and situations...
    -d

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.