• Resolved webbeginer20

    (@webbeginer20)


    Hi Thank you for a great theme.
    I am currently having a problem when try to create a page using wp_insert_post(‘? ‘page_template’ => ‘Single Page”) but I can not find where is the template file to the code?
    May I know where is the file located, usually it should like page-temlate.php but I can not find any
    Thank you for your help

Viewing 1 replies (of 1 total)
  • irinelenache

    (@irinelenache)

    Hello @webbeginer20,

    Thank you for using Raft!

    If you want to edit the templates for Pages or Single posts, you can do them by going to Editor > Templates here. You can also add new ones and edit them by your likes.

    In code, the template files for Page and Single post are root/templates/page.html and root/templates/single.html.

    I hope this helps you.

    Best regards,

    Irinel

Viewing 1 replies (of 1 total)
  • The topic ‘how to choose page template when create page using wp_insert_post’ is closed to new replies.