Title: Wp Query or Loop example needed
Last modified: August 22, 2016

---

# Wp Query or Loop example needed

 *  [atom8bit](https://wordpress.org/support/users/atom8bit/)
 * (@atom8bit)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wp-query-or-loop-example-needed/)
 * I’m having trouble using the loop or wp query, I’m getting PHP errors. There 
   will be two loops on the page I am doing this on.
 * Can someone give me an example of a loop that calls on two categories, and only
   calls on the featured image, URL and Title of the post displayed in an H1 tag?
 * For clarification, just the title displayed in the H1 tag.
 * Thank you!

Viewing 1 replies (of 1 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wp-query-or-loop-example-needed/#post-5284135)
 * Please put your code in a [pastebin](http://pastebin.com) and post a link to 
   it here.

Viewing 1 replies (of 1 total)

The topic ‘Wp Query or Loop example needed’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/wp-query-or-loop-example-needed/#post-5284135)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
