Title: Problem with wp_query only on author.php
Last modified: August 20, 2016

---

# Problem with wp_query only on author.php

 *  [Sjobidoo](https://wordpress.org/support/users/sjobidoo/)
 * (@sjobidoo)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/problem-with-wp_query-only-on-authorphp/)
 * Hi guys,
 * I’m having some trouble with a wp_query which for some reson refuses to work 
   only on author.php. It works correctly on any other page/post.
 * Basically I’m requesting the latest post in a custom post type I’ve created. 
   The query is being done in the footer.php.
 * I’ve tried removing all the code from author.php excerpt get_footer(); with no
   result unfortunately.
 * Here’s a pastebin of my wp_query in footer.php : [http://pastebin.com/ESAkQY32](http://pastebin.com/ESAkQY32)

The topic ‘Problem with wp_query only on author.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Sjobidoo](https://wordpress.org/support/users/sjobidoo/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/problem-with-wp_query-only-on-authorphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
