I have created a custom theme and my front page is
index.php. Moreover, I have couple of blog posts and I display them with a loop in this page, together with a link for each particular post. The problem is that whenever I click on this link, the browser loads the correct permalink, e.g.
http://localhost/wordpress/index.php/2016/04/20/title-of-clicked-post/, but the content remains the same.
is_front_page() to determine whether I am loading the front page or a single post. When I click on a single post, how to display this post only and not all the others?