Title: How does WP load post data?
Last modified: August 30, 2016

---

# How does WP load post data?

 *  [reptiguy1](https://wordpress.org/support/users/reptiguy1/)
 * (@reptiguy1)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/how-does-wp-load-post-data/)
 * Hi all,
 * I’m new here and on WP. I’m currently building a gaming website.
 * I’ve got a theme that I bought which I’ve been working on. It has a feature where
   you can like a post and it saves it onto the Database. Liked posts can be seen
   via a template file.
 * Inside this file there is code that loops through posts that have previously 
   been loaded into WP somehow which are then called in a loop using “while (have_posts()):
   the_post();”. I’ve tried for over an hour to find where and how these posts are
   added but can’t find the code anywhere in the temlplate.
 * Can someone advise me please? Maybe point me to relevant keywords I could use
   in the search box.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [reptiguy1](https://wordpress.org/support/users/reptiguy1/)
 * (@reptiguy1)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/how-does-wp-load-post-data/#post-6809025)
 * Any help please someone.
 *  Thread Starter [reptiguy1](https://wordpress.org/support/users/reptiguy1/)
 * (@reptiguy1)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/how-does-wp-load-post-data/#post-6809044)
 * bump up
 *  [ancawonka](https://wordpress.org/support/users/ancawonka/)
 * (@ancawonka)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/how-does-wp-load-post-data/#post-6809046)
 * Welcome to WordPress!
 * You might want to start here: [https://codex.wordpress.org/The_Loop](https://codex.wordpress.org/The_Loop)
   
   Or here: [https://developer.wordpress.org/themes/getting-started/](https://developer.wordpress.org/themes/getting-started/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How does WP load post data?’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [ancawonka](https://wordpress.org/support/users/ancawonka/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/how-does-wp-load-post-data/#post-6809046)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
