WordPress.org

Ready to get started?Download WordPress

Forums

Design a Post Template (2 posts)

  1. morfeokmg
    Member
    Posted 5 years ago #

    Hi!.

    Help Me please.

    I need design a Post Template. Iam admin of an site support on my work, with WordPress 2.7, but all post are frecuently problems of support.
    We have a Format of Word to put all the Incidents in a format of Quality, but; it requires to create it as a post all those problems.
    I need you an Post Template, and not work the next tip with a Post only Page. (On WP 2.7 not working too)

    <?php
    /*
    Template Name: Mi pagina personalizada
    */
    ?>
  2. emanoelmelo
    Member
    Posted 5 years ago #

    Try this on the functions.php:
    add_filter('single_template', create_function('$t', 'foreach( (array) get_the_category() as $cat ) { if ( file_exists(TEMPLATEPATH . "/single-{$cat->term_id}.php") ) return TEMPLATEPATH . "/single-{$cat->term_id}.php"; } return $t;' ));

    I grabbed this code from somewhere this forum.

Topic Closed

This topic has been closed to new replies.

About this Topic