WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Page Template Extended] Plugin works with latest version of K2 theme (3 posts)

  1. nbseminary
    Member
    Posted 4 years ago #

    This plugin works very nicely with the K2 theme (http://getk2.com/) with the following hack:
    REPLACE every instance of:
    $page_template_ex_path = TEMPLATEPATH . '/page-' . $post->ID . '.php';
    WITH
    $page_template_ex_path = locate_template( array('/page-' . $post->ID . '.php'), true );
    Enjoy!
    Loren

    http://wordpress.org/extend/plugins/page-template-extended/

  2. nbseminary
    Member
    Posted 4 years ago #

    What would be really nice however is if the plugin would evaluate if there is already a template file assigned to a page (via the WP admin) and allow the assigned template to override the page-id.php template. Currently that does not happen.

  3. olyma
    Member
    Posted 3 years ago #

    This looks like a good plugin, but you can use the body_class(), just as well, or even more easily, to style any and all child-pages or categories too. See: http://www.nathanrice.net/blog/wordpress-2-8-and-the-body_class-function/

Topic Closed

This topic has been closed to new replies.

About this Topic