Support

Account

Home Forums General Issues Custom Single Post Template Reply To: Custom Single Post Template

  • Well you can do such thing
    single.php :

    <?php
      $single_type = get_field("single_type");
      
      if( $single_type == 'type1' ) {
        get_template_part("type1");
      } else {
        get_template_part("type2");
      }
    ?>

    You should create type1.php and type2.php files in your theme directory.
    I hope it is what you want to create.