WordPress.org

Ready to get started?Download WordPress

Forums

Multiple templates ? (2 posts)

  1. memeticmedia
    Member
    Posted 4 years ago #

    Hi I am working on creating a custom theme, and I want to have a template for the "blog" section of the site that has a sidebar, with all the categories listed in it. How do I specify that a PHP page be available for use as a template ? Also how do I list all the categories on the sidebar ?

    Another question, some of the pages will have sub-pages. For these pages I will also want to use a template with a sidebar that lists all the sub-pages for that particular page. How would I accomplish ? I am new to theme design so any assistance would be most appreciated.

    Thanks,
    Colin

  2. MichaelH
    Member
    Posted 4 years ago #

    You need to get acquainted with the following:
    Template Hierarchy
    Stepping Into Templates
    Category Templates
    Page Template

    Also how do I list all the categories on the sidebar ?

    Use the category widget or the wp_list_categories template tag.

Topic Closed

This topic has been closed to new replies.

About this Topic