• MKULTRON

    (@mkultron)


    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

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

    (@alchymyth)

    please paste the code into a 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

    (@lockettpots)

    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

    (@mkultron)

    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.