Title: Custom Post Archive Loop
Last modified: August 21, 2016

---

# Custom Post Archive Loop

 *  [BBustamante](https://wordpress.org/support/users/nasgor/)
 * (@nasgor)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/custom-post-archive-loop/)
 * Hi, I’m creating a plugin to display Custom Posts in a Web. Almost everything
   works fine, but I would need to show the archive in alphabetical order and excluded
   Child Pages from the loop. Don’t know if there is any function that allows me
   to modify the query. Any tips?
    Thank you very much.

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/custom-post-archive-loop/#post-4628328)
 * It’s not a function per se, but pretty close. See ‘[pre_get_posts](http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts)‘
   action.

Viewing 1 replies (of 1 total)

The topic ‘Custom Post Archive Loop’ is closed to new replies.

## Tags

 * [custom post](https://wordpress.org/support/topic-tag/custom-post/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [query](https://wordpress.org/support/topic-tag/query/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/custom-post-archive-loop/#post-4628328)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
