WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] post template options (6 posts)

  1. ronchicago
    Member
    Posted 5 years ago #

    when creating "pages" there is an option to select a custom "template." i'd like to have two 'post" layout options where the sidebars and column widths vary. custom fields is not up to this yet. any way of achieving this short of integrating two themes into one site?

  2. ronchicago
    Member
    Posted 5 years ago #

    after playing around with single.php, etc., is there a workaround?

    the question, while in admin and writing/editing a post, is it possible to add code to single.php that would also call/generate a single2.php ( for example ) that would have a different layout than single.php?

    single.php would appear as usual. single2.php would be found from a link. a simple single-post entry generating two layouts.

    a) yes
    b) no
    c) probably but not sure how to do it.

  3. gavingear
    Member
    Posted 4 years ago #

    I'm in the same boat. Anyone have an answer here?

  4. MichaelH
    Member
    Posted 4 years ago #

    * get_header('myheader') will include header-myheader.php
    * get_footer('myfooter') will include footer-myfooter.php
    * get_sidebar('mysidebar') will include sidebar-mysidebar.php

  5. gavingear
    Member
    Posted 4 years ago #

    I was looking for a way to do this from the "new post" page- like you get (the dropdown) when you create a new page... (I'd like to have product-specific templates that I can choose when authoring a new post.

    Why not use pages instead of posts you may ask? I'm using categories to sort sidebar sections. Pages don't have categories. :)

  6. MichaelH
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic