• Resolved joerg42

    (@joerg42)


    I’m trying to use a special “single-item” template for one of my tainacan collections.
    The docu says
    “A template for single items page in the collection with ID 4: single-tnc_col_4_item.php”
    So I put a copy of single-items.php in the folder
    /wordpress/wp-content/themes/intergalactic-2-wpcom/tainacan/
    and modified it to this collection (I already have my modified single-items.php file there and this works).

    I named the file single-tnc_col_3457_item.php
    But when I look at an item of this collection, I still see the modified single-items.php.

    What have I done wrong or how could I check for my problem?

    Thanks in advance
    Joerg

    • This topic was modified 3 years, 11 months ago by joerg42.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author leogermani

    (@leogermani)

    Hi Joerg!

    Nice to hear you are managing to adapt your theme and use it with Tainacan. Let us know if you need any help.

    “tnc_col_3457_item” is the name of the Custom Post Type tainacan created for this collection. So each item in this collection is a post of that type.

    So the single-tnc_col_3457_item.php custom template is core WordPress template file, and not specific to tainacan. Therefore it must live in the root folder of your theme.

    Have you tried that?

    Thread Starter joerg42

    (@joerg42)

    I’ve tried a lot of renaming the file 😉 but not to put it in another directory!

    But now: IT WORKS!

    I read the documentation but since I’m just a hobby developer, I missed the part about the custom post type.

    Thanks you very, very much!

    Greets from Germany,
    Joerg

    Plugin Author leogermani

    (@leogermani)

    Good to know it worked!

    I’ll check the docs and see if it could be more clear!

    cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to use custom template for one collection?’ is closed to new replies.