• Resolved ali.dolphin

    (@alidolphin)


    Hi

    I am looking to create a new post type as a blog.

    This is the sort of layout I am wanting to create as a post type archive page

    https://snipboard.io/zYo5gV.jpg

    I can’t locate the post-template file in the theme file editor.

    is this something that can be achieved?

    Thanks

    Ali

    • This topic was modified 11 months, 2 weeks ago by ali.dolphin.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Hi Ali,

    I can help you with this.

    Let’s say your post type’s slug is news_article, you’d want to create a copy of the content.php file in your child theme and rename it to content-news_article.php. That template would then be used whenever someone views a single news article.

    For the blog/archive page, you can copy content-archive.php into your child theme and rename it as content-archive-news_article.php.

    Thread Starter ali.dolphin

    (@alidolphin)

    Hi Ben

    Thanks for this.

    I have added the author child theme now and will contact your support team directly as I have since upgraded to extended support.

    Thanks

    Ali

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Post Type Layout for Blogs’ is closed to new replies.