WordPress posts loop not displaying all posts on blog

if anyone else is having the same problem as me, here is the solution. The problem that was causing this was

<?php echo get_permalink(the_post()); ?>

Honestly, I have no idea why I went with this instead of just the_permalink() , was having a problem with my read more button it was sending me to a different post than the post that was displaying, after removing get_permalink(the_post)) and replacing it with the_permalink() the problem was solved for both the read more button and for my previous problem. I can see all of the posts displayed on the website now.