How to make custom WordPress theme show pages, NOT posts

I have recently created a custom WordPress theme from my static HTML, following a guide I found online.

However, all of these guides seem to set up a blog page and do not explain how to set up a static web page. I am guessing that it is something to do with this code in my index.php and/or page.php:

.

                >.   get_template_part( 'content', get_post_format() );

            >.   endwhile; endif; 
        >.   ?>

When I remove this, it removes the content. I cannot find what to replace it with so that my page content is shown.

Can anyone help please?

Read more here: How to make custom WordPress theme show pages, NOT posts

Leave a Reply

Your email address will not be published. Required fields are marked *