• Hi,

    i can’t find the right template name for my single custom post type. here’s the post type:

    register_post_type('tehtud_tood',
      array(
        'labels' => array(
          'name' => 'Tehtud tööd',
          'singular_name' => 'Töö'
        ),
        'public' => true,
        'has_archive' => true,
        'rewrite' => array('slug' => 'tehtud', 'with_front' => false),
        'supports' => array('title','editor','thumbnail', 'page-attributes')
      )
    );

    i have tried

    single-tehtud.php
    single-tehtud_tood.php
    archive-tehtud.php
    archive-tehtud_tood.php

    so pretty much everything. where did i go wrong?

Viewing 1 replies (of 1 total)
  • Thread Starter keevitaja

    (@keevitaja)

    resolved. don’t know if it was so, but as soon as i created single.php the single-tehtud_tood.php started working. when i renamed single.php, it still worked. strange…

Viewing 1 replies (of 1 total)

The topic ‘Custom post type single template not working’ is closed to new replies.