How to disable posts and use pages only

I am new to WordPress theming and I would like to set up a Website that only has static content. Therefore would it make sense to disable posts and only use static pages? If so, is there an easy way to do that?

5 s
5

You can simply hide the posts menu by adding the following to your functions.php file:

function remove_posts_menu() {
    remove_menu_page('edit.php');
}
add_action('admin_menu', 'remove_posts_menu');

Leave a Comment