• Hi again,

    I’ve come up with a layout for the portfolio section of my site. I was simply going to make it purely static, however I would like to implement it into my WordPress 1.5 theme so I can update it more easily using probably pages

    Im comfortable with PHP, and Ive got a rough idea of templates but Im puzzled as how to implement my design with pages.

    Main page of Portfolio Section showing all projects and feature projects as seen here, and the single Portfolio Project page as seen here as a result of clicking a “Featured Work” or a project from the “Project List”

    If someone could point me in the right direction or give me a starting point I would much appreciate it

Viewing 6 replies - 1 through 6 (of 6 total)
  • hi richard,

    at the bottom of the static page editor, you’ll find custom fields. there is a _wp_page_template option. i’ve never used it so far, but i presume this is what you are looking for.

    Thread Starter richardlee

    (@richardlee)

    Hi Denis,

    thanks for the input, Im soo tired been up all night trying to get this site done, my concentration is lacking…If only there was some good straight forward documentation on this :(.

    Here are my ideas on this, do tell me if you think Im heading down the wrong track.

    • Create the parent template for the Portfolio Section (portfolio.php)
    • Add another coniditonal to sidebar (sidebar.php) template that lists all child pages if the current page is “Port Folio Section”
    • Create a template for the child “Project Details” Pages (portfolio-single.php)
    • Now create the Parent Page “Portfolio Section” using the portfolio.php template
    • And then create Project Detail Pages selecting the “Portfolio Section” as Page Parent…

    Cheers ??

    I guess you are on the right path. I understand you’d create the project detail pages not only selecting portfolio section as a parent, but also using the portfolio-single.php, right?

    Thread Starter richardlee

    (@richardlee)

    Ahh yes mosu ?? Keen eyes you have.

    Surely other people have done this sort of thing before?

    Apart from Codex and this site, anyone got any other good references for making templates?

    Just see the Codex (sections: Pages, Themes and templates etc.). Everything we know is there ??
    Seemingly you got an understanding how themes and templates work… so the rest is easy. Start from an existing template and tweak it to your liking, i.e. adding or deleting the template tags and/or modifying the layout.

    Thread Starter richardlee

    (@richardlee)

    Thanks Mosu,

    This is going to be scary, but im sure i’ll work it out ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Help: Custom template using a Page hierachy’ is closed to new replies.