• Hello,
    i would like to display a CPT but i can’t find any single.php file in the theme?

    Which file is used to display single article please?

    Thank you

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    You will see the file under the OceanWP > Partials > Single folder. In OceanWP, you need to add some code to create a CPT single post and archive template. Let me know if you need help with it.

    Thread Starter flushdrew

    (@flushdrew)

    Hello, thank you.

    I would like some help to create the file please…

    Follow the below steps to create custom post type template –

    Let’s assume ‘book’ is the custom post type.

    Step 1 – Create a folder inside the child theme and name it as per your need. ex – book
    Step 2 – Arrange the files and folder inside the child theme as per your need.
    Copy the oceanwp > partials > single folder files inside the child theme’s book folder.
    Edit the copied files as per your need.
    Step 3 – Now copy the singular.php file into the child theme and add the code to display the CPT.

    • This reply was modified 5 years, 11 months ago by Amit Singh.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display CPT and custom Post Meta’ is closed to new replies.