WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom post child defaults to index.php (2 posts)

  1. philjohns24
    Member
    Posted 1 year ago #

    Hi all,

    I have created a custom post type and set it as hierarchical=>true and for it to feature page-attributes so that I can specify child and parents.

    The custom post type is called services, I have a single-services.php template set up which is being used correctly for the parent custom posts however if I try and view a child custom post it tries to use the index.php file.

    How can I make the child custom posts use the single-services.php template too?

    Thanks,

    Phil

  2. philjohns24
    Member
    Posted 1 year ago #

    Please delete, issue fixed by clearing cache and updating permalinks.

Topic Closed

This topic has been closed to new replies.

About this Topic