title: PHP Showing Post if matches User Detail
body: <p>I have generated this PHP below, so I want to say:-</p>
  <p>If the User Registration Location matches the post location, then show that post to that user.</p>
  <p>So e.g. If 'user_registration_location' equals the post taxonomy 'London' it will show the posts in london. I have created the below</p>
  <pre><code>  &lt;?php if(get_field('user_registration_location') == the_field( 'user_registration_location', 'user_' . $current_user-&gt;ID )): ?&gt;
        &lt;?php foreach ( get_the_terms( get_the_ID(), 'location' ) as $tax ) {
              echo __( $tax-&gt;slug ) . ' ';
        }?&gt;
    &lt;?php endif; ?&gt;
  </code></pre>
  <p>Could someone please advise how I can do this?</p>
  <p>Plugins I am using are 'user registration plugin' and 'CPT UI'</p>