Title: Custom page loop problem
Last modified: August 19, 2016

---

# Custom page loop problem

 *  [MKULTRON](https://wordpress.org/support/users/mkultron/)
 * (@mkultron)
 * [15 years ago](https://wordpress.org/support/topic/custom-page-loop-problem/)
 * Hi guys, I’ve made a custom template page called Gallery. Basically I wanted 
   to pull all of the info from certain posts called gallery. I know there are plugins
   for this sort of thing but they didn’t really offer what I wanted and I feel 
   most comfortable having the pages set up this way. Basically I’m drawing bits
   of info – title, tags etc from only posts in the specific “Gallery” category 
   but I’m having trouble with the loop (page goes blank when I wrap the content
   in it). I’m not actually sure what I want in the loop at this point (some kind
   of pagination I guess), just trying to get the thing working! If you could take
   a look at my code and make any suggestions that’d be really helpful, thanks!
 * EDIT
 * [Here’s the code](http://pastebin.com/kgvMsMZ3)

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years ago](https://wordpress.org/support/topic/custom-page-loop-problem/#post-2046870)
 * please paste the code into a [http://pastebin.com/](http://pastebin.com/) and
   post the link to it here.
 * to illustrate, what the template dose so far, please post a link to your site,
   pointing to the page that uses the template.
 *  [lockettpots](https://wordpress.org/support/users/lockettpots/)
 * (@lockettpots)
 * [15 years ago](https://wordpress.org/support/topic/custom-page-loop-problem/#post-2046877)
 * I notice that you have curly braces in your HTML for example
 * `<div id="gallery-title"><!--<h2 class="entry-title">-->{ <a href="<?php the_permalink()?
   >"><?php the_title(); ?></a> }<!--</h2>-->`
 * Are those there for any reason?
 *  Thread Starter [MKULTRON](https://wordpress.org/support/users/mkultron/)
 * (@mkultron)
 * [15 years ago](https://wordpress.org/support/topic/custom-page-loop-problem/#post-2046895)
 * just stylistic
 * EDIT
 * Seems to be working fine now!

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

The topic ‘Custom page loop problem’ is closed to new replies.

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [MKULTRON](https://wordpress.org/support/users/mkultron/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/custom-page-loop-problem/#post-2046895)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
