doubled content

The loop in your code:

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

is saying “if I have posts, display them all – by the declared # per page”

So you need to modify the loop to only display the content you need.

Can you provide some information on where the content such as address details are coming from?

error code: 523