Design a Post Template (2 posts)

  1. morfeokmg
    Posted 7 years ago #


    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)

    Template Name: Mi pagina personalizada
  2. emanoelmelo
    Posted 7 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